We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fceac commit 4c94117Copy full SHA for 4c94117
arch/x86/boot/compressed/eboot.c
@@ -1059,8 +1059,13 @@ struct boot_params *efi_main(struct efi_config *c,
1059
desc->p = 1;
1060
desc->limit = 0xf;
1061
desc->avl = 0;
1062
- desc->l = 0;
1063
- desc->d = SEG_OP_SIZE_32BIT;
+ if (IS_ENABLED(CONFIG_X86_64)) {
+ desc->l = 1;
1064
+ desc->d = 0;
1065
+ } else {
1066
+ desc->l = 0;
1067
+ desc->d = SEG_OP_SIZE_32BIT;
1068
+ }
1069
desc->g = SEG_GRANULARITY_4KB;
1070
desc->base2 = 0x00;
1071
desc++;
0 commit comments