[PATCH] fix i386 init initializers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(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


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux