mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
* grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
* grub-core/kern/misc.c: Likewise. * grub-core/loader/i386/xnu.c: Likewise. * include/grub/i386/tsc.h: Likewise. * include/grub/symbol.h: Likewise.
This commit is contained in:
1 parent
4a5a3c4abc
commit
e6ad0555e4
6 files changed
+17
-9
No files matched your search
@@ -29,7 +29,7 @@ grub_get_tsc (void)
|
||||
|
||||
/* The CPUID instruction is a 'serializing' instruction, and
|
||||
avoids out-of-order execution of the RDTSC instruction. */
|
||||
#ifdef APPLE_CC
|
||||
#ifdef __APPLE__
|
||||
__asm__ __volatile__ ("xorl %%eax, %%eax\n\t"
|
||||
#ifdef __x86_64__
|
||||
"push %%rbx\n"
|
||||
@@ -109,7 +109,7 @@ grub_cpu_is_tsc_supported (void)
|
||||
return 0;
|
||||
|
||||
grub_uint32_t features;
|
||||
#ifdef APPLE_CC
|
||||
#ifdef __APPLE__
|
||||
__asm__ ("movl $1, %%eax\n\t"
|
||||
#ifdef __x86_64__
|
||||
"push %%rbx\n"
|
||||
|
||||
Reference in new issue
Block a user