diff options
author | markm <markm@FreeBSD.org> | 2002-09-21 18:19:51 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-09-21 18:19:51 +0000 |
commit | e51e2b450aae53eb1ef89370d6e0031b01ceb544 (patch) | |
tree | 6940960882ee1997772031ec608a500fefee97e0 /sys | |
parent | 0456bf6b8986ce52d07a5858502e657e285b1a6a (diff) | |
download | FreeBSD-src-e51e2b450aae53eb1ef89370d6e0031b01ceb544.zip FreeBSD-src-e51e2b450aae53eb1ef89370d6e0031b01ceb544.tar.gz |
Wrap GCC-specific asm() code in #ifdef __GNUC__
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/acpica/acpi_wakeup.c | 2 | ||||
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c index d232d0a..d54a68b 100644 --- a/sys/amd64/acpica/acpi_wakeup.c +++ b/sys/amd64/acpica/acpi_wakeup.c @@ -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) diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index d232d0a..d54a68b 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -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) |