--- kernel-bigsur-ref/arch/ia64/ia32/binfmt_elf32.c Tue Sep 25 19:40:29 2001 +++ kernel-bigsur/arch/ia64/ia32/binfmt_elf32.c Sun Oct 14 10:36:59 2001 @@ -135,10 +135,11 @@ /* * Setup GDTD. Note: GDTD is the descrambled version of the pseudo-descriptor * format defined by Figure 3-11 "Pseudo-Descriptor Format" in the IA-32 - * architecture manual. + * architecture manual. Also note that the only fields that are not + * ignored are `base', `limit', 'G', `P' (must be 1) and `S' (must be 0) */ - regs->r31 = IA32_SEG_UNSCRAMBLE(IA32_SEG_DESCRIPTOR(IA32_GDT_OFFSET, IA32_PAGE_SIZE - 1, 0, - 0, 0, 0, 0, 0, 0)); + regs->r31 = IA32_SEG_UNSCRAMBLE(IA32_SEG_DESCRIPTOR(IA32_GDT_OFFSET, + IA32_PAGE_SIZE - 1, 0, 0, 0, 1, 0, 0, 0)); ia64_psr(regs)->ac = 0; /* turn off alignment checking */ regs->loadrs = 0;