(Note: Patch also attached because the inline version is certain to get line wrapped.) An addition and a fix to the static i386 initializers. Signed-off-by: Jan Beulich <[email protected]> diff -Npru 2.6.13/include/asm-i386/processor.h 2.6.13-i386-init/include/asm-i386/processor.h --- 2.6.13/include/asm-i386/processor.h 2005-08-29 01:41:01.000000000 +0200 +++ 2.6.13-i386-init/include/asm-i386/processor.h 2005-09-01 13:14:48.000000000 +0200 @@ -460,6 +460,7 @@ struct thread_struct { #define INIT_THREAD { \ .vm86_info = NULL, \ + .esp0 = sizeof(init_stack) + (long)&init_stack, \ .sysenter_cs = __KERNEL_CS, \ .io_bitmap_ptr = NULL, \ } @@ -474,7 +475,7 @@ struct thread_struct { .esp0 = sizeof(init_stack) + (long)&init_stack, \ .ss0 = __KERNEL_DS, \ .ss1 = __KERNEL_CS, \ - .ldt = GDT_ENTRY_LDT, \ + .ldt = GDT_ENTRY_LDT * 8, \ .io_bitmap_base = INVALID_IO_BITMAP_OFFSET, \ .io_bitmap = { [ 0 ... IO_BITMAP_LONGS] = ~0 }, \ }
Attachment:
linux-2.6.13-i386-init.patch
Description: Binary data
- Prev by Date: Re: kbuild: libraries and subdirectories
- Next by Date: [PATCH] abstraction of i386 machine check handlers
- Previous by thread: [PATCH] move i386's enabling of fxsr and xmmxcpt
- Next by thread: [PATCH] abstraction of i386 machine check handlers
- Index(es):