From 1c57df5a09d39ca372436c34c12671daaaab59e5 Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Wed, 30 Jul 2003 00:00:00 +0200 Subject: 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. --- s3switch.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); } -- cgit v1.2.3