X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..eee3565979933af707c711411001ba11fe406a3c:/libsyscall/wrappers/__get_cpu_capabilities.s diff --git a/libsyscall/wrappers/__get_cpu_capabilities.s b/libsyscall/wrappers/__get_cpu_capabilities.s index f03e44420..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,8 @@ __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