lkml.org 
[lkml]   [1996]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: apm_bios calls into BIOS that is not present in the system
Linus, Stephen, and Co.,

Under 1.3.70 and previous versions, the apm_bios.c driver can make calls
into the APM BIOS even though the APM BIOS is not present in the system.
This happens in apm_do_busy() if ALWAYS_CALL_BUSY is defined (which it is).
The result is a GP 0 fault in the swapper task. This patch will repair the
problem.

Thanks

Bruce Perens

--- drivers/char/apm_bios.c.old Sun Feb 11 04:45:55 1996
+++ drivers/char/apm_bios.c Sun Mar 3 15:02:30 1996
@@ -742,6 +742,9 @@
#ifndef ALWAYS_CALL_BUSY
if (!clock_slowed)
return;
+#else
+ if (!apm_enabled)
+ return;
#endif

APM_SET_CPU_BUSY(error);
--
Bruce Perens <Bruce@Pixar.com> A campaigner for Clinton and against Censorship.
Toy Story: $183M and counting. At $184M it will beat the #1 movie of 1995.

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.022 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site