summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2003-07-30 00:00:00 +0200
committerTormod Volden <debian.tormod@gmail.com>2011-11-18 23:50:23 +0100
commit1c57df5a09d39ca372436c34c12671daaaab59e5 (patch)
tree38b89f1a4631e28e55bec32e8a9efa8aa7913848
parentbf2f7579fb9b8dcd5cfc6885dde7940ec0b99610 (diff)
Avoid segfault on TV signal format change with ThinkPad T23
Fix segfaults seen on IBM ThinkPad T23 when changing TV signal format. Thanks to the upstream author, Tim Roberts, for help in creating this patch.
-rw-r--r--s3switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/s3switch.c b/s3switch.c
index 5fca31a..b4c5491 100644
--- a/s3switch.c
+++ b/s3switch.c
@@ -102,8 +102,12 @@ IOAccess( int enable )
/* Allow or disallow access to I/O ports. */
ioperm( 0x40, 4, enable );
+ ioperm( 0x4f, 1, enable );
ioperm( 0x61, 1, enable );
+ ioperm( 0x70, 1, enable );
+ ioperm( 0x71, 1, enable );
ioperm( 0x80, 1, enable );
+ ioperm( 0xb2, 1, enable );
ioperm( 0x3b0, 0x30, enable );
ioperm( 0xeb, 1, enable );
}