Skip to contentSkip to conversation

2.4.20pre5 trivial assembler warning fix for apm.c

PATCH Andreas Steinmetz 1 participant 1 message Sep 5, 2002

lore
Share & tools
lore
#0 lore raw

trivial fix for "Warning: indirect lcall without `*'" assembler warnings attached.

Signature · 2 lines
Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH
i386/kernel/apm.c renamed from i386/kernel/apm.c.orig +2 -2
@@ -577,7 +577,7 @@
 	__asm__ __volatile__(APM_DO_ZERO_SEGS
 		"pushl %%edi\n\t"
 		"pushl %%ebp\n\t"
-		"lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
+		"lcall *%%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
 		"setc %%al\n\t"
 		"popl %%ebp\n\t"
 		"popl %%edi\n\t"
@@ -624,7 +624,7 @@
 		__asm__ __volatile__(APM_DO_ZERO_SEGS
 			"pushl %%edi\n\t"
 			"pushl %%ebp\n\t"
-			"lcall %%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
+			"lcall *%%cs:" SYMBOL_NAME_STR(apm_bios_entry) "\n\t"
 			"setc %%bl\n\t"
 			"popl %%ebp\n\t"
 			"popl %%edi\n\t"