Wrap GCC-specific asm() code in #ifdef __GNUC__

This commit is contained in:
markm 2002-09-21 18:19:51 +00:00
parent 0456bf6b89
commit e51e2b450a
2 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,7 @@ static void acpi_alloc_wakeup_handler(void);
extern int acpi_savecpu(void);
extern int acpi_restorecpu(void);
#ifdef __GNUC__
__asm__(" \n\
.text \n\
.p2align 2, 0x90 \n\
@ -145,6 +146,7 @@ acpi_savecpu: \n\
movl $1,%eax \n\
ret \n\
");
#endif /* __GNUC__ */
static void
acpi_printcpu(void)

View File

@ -79,6 +79,7 @@ static void acpi_alloc_wakeup_handler(void);
extern int acpi_savecpu(void);
extern int acpi_restorecpu(void);
#ifdef __GNUC__
__asm__(" \n\
.text \n\
.p2align 2, 0x90 \n\
@ -145,6 +146,7 @@ acpi_savecpu: \n\
movl $1,%eax \n\
ret \n\
");
#endif /* __GNUC__ */
static void
acpi_printcpu(void)