]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/i386/asm64.h
xnu-1699.24.23.tar.gz
[apple/xnu.git] / osfmk / i386 / asm64.h
index bb1a51c0b42dee21976423c9b72e0cc90f1daadf..08afac97a326152831f56688252b968190984c9e 100644 (file)
@@ -54,9 +54,9 @@
  * Long jump to 32-bit compatibility mode from 64-bit space.
  */
 #define ENTER_COMPAT_MODE()                    \
-       ljmp    *4f                             ;\
-4:     .long   5f                              ;\
-       .word   KERNEL_CS                       ;\
+       ljmp    *(%rip)                         ;\
+       .long   4f                              ;\
+       .word   KERNEL32_CS                     ;\
        .code32                                 ;\
-5:
+4: