lkml.org 
[lkml]   [1999]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] small and not very important
Date
From
Hi Linus,

Could you please apply the patch below (againt 2.3.33). It just
removes the "cld" instructions added to apm.c in 2.3.33 as these
sections of code have __save_flags/__restore_flags around them
which will presever the direction flag anyway.

Cheers,
Stephen
--
Stephen Rothwell sfr@linuxcare.com
http://linuxcare.com.au/sfr/

diff -ruN 2.3.33/arch/i386/kernel/apm.c 2.3.33-nocld/arch/i386/kernel/apm.c
--- 2.3.33/arch/i386/kernel/apm.c Tue Dec 14 22:19:25 1999
+++ 2.3.33-nocld/arch/i386/kernel/apm.c Mon Dec 20 12:19:40 1999
@@ -380,7 +380,7 @@
__asm__ __volatile__(APM_DO_ZERO_SEGS
"pushl %%edi\n\t"
"pushl %%ebp\n\t"
- "lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry) "; cld\n\t"
+ "lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
"setc %%al\n\t"
"popl %%ebp\n\t"
"popl %%edi\n\t"
@@ -413,7 +413,7 @@
__asm__ __volatile__(APM_DO_ZERO_SEGS
"pushl %%edi\n\t"
"pushl %%ebp\n\t"
- "lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry)"; cld\n\t"
+ "lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
"setc %%bl\n\t"
"popl %%ebp\n\t"
"popl %%edi\n\t"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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