Displaying 2 results from an estimated 2 matches for "cr0_pg_flag".
2015 Aug 23
0
[PATCH] efi: leaving long mode in kernel_jump routine
...and on the archives are unusable. This however is.
diff --git a/efi/x86_64/linux.S b/efi/x86_64/linux.S
index 0a0e996..972c0b2 100644
--- a/efi/x86_64/linux.S
+++ b/efi/x86_64/linux.S
@@ -10,8 +10,9 @@
*
* ----------------------------------------------------------------------- */
-#define CR0_PG_FLAG 0x80000000
-#define MSR_EFER 0xc0000080
+#define CR0_PG_BIT 31
+#define CR4_PAE_BIT 5
+#define MSR_EFER 0xc0000080
.globl kernel_jump
.type kernel_jump, at function
@@ -19,30 +20,50 @@
kernel_jump:
cli
- /*
- * Setup our segment selector (0x10) and return ad...
2015 Aug 04
13
[PATCH] efi: leaving long mode in kernel_jump routine
...---
1 file changed, 41 insertions(+), 20 deletions(-)
diff --git a/efi/x86_64/linux.S b/efi/x86_64/linux.S
index 0a0e996..972c0b2 100644
--- a/efi/x86_64/linux.S
+++ b/efi/x86_64/linux.S
@@ -10,8 +10,9 @@
*
*
----------------------------------------------------------------------- */
-#define CR0_PG_FLAG 0x80000000
-#define MSR_EFER 0xc0000080
+#define CR0_PG_BIT 31
+#define CR4_PAE_BIT 5
+#define MSR_EFER 0xc0000080
.globl kernel_jump
.type kernel_jump, at function
@@ -19,30 +20,50 @@
kernel_jump:
cli
- /*
- * Setup our segment selector (0x10) and return address (%rdi)
- * on...