X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..eee3565979933af707c711411001ba11fe406a3c:/libsyscall/wrappers/__get_cpu_capabilities.s?ds=sidebyside diff --git a/libsyscall/wrappers/__get_cpu_capabilities.s b/libsyscall/wrappers/__get_cpu_capabilities.s index 12e9c7652..de177986a 100644 --- a/libsyscall/wrappers/__get_cpu_capabilities.s +++ b/libsyscall/wrappers/__get_cpu_capabilities.s @@ -33,8 +33,8 @@ .align 2, 0x90 .globl __get_cpu_capabilities __get_cpu_capabilities: - movq $(_COMM_PAGE_CPU_CAPABILITIES), %rax - movl (%rax), %eax + movq $(_COMM_PAGE_CPU_CAPABILITIES64), %rax + movq (%rax), %rax ret #elif defined(__i386__) @@ -43,7 +43,10 @@ __get_cpu_capabilities: .align 2, 0x90 .globl __get_cpu_capabilities __get_cpu_capabilities: - movl _COMM_PAGE_CPU_CAPABILITIES, %eax + movl _COMM_PAGE_CPU_CAPABILITIES64, %eax + movl _COMM_PAGE_CPU_CAPABILITIES64+4, %edx ret +#else +#error Unsupported architecture #endif