public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* i386 cleanups
@ 2001-04-17 21:26 Pavel Machek
  2001-04-17 21:46 ` Linus Torvalds
  2001-04-17 22:57 ` Jeff Garzik
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Machek @ 2001-04-17 21:26 UTC (permalink / raw)
  To: torvalds, kernel list

Hi!

These are tiny cleanups you might like. sizes are "logically"
long. No, it does not matter on i386.

processor.h makes INIT_TSS look much more readable. [Please tell me
applied or rejected]

							Pavel

Index: include/asm-i386/posix_types.h
===================================================================
RCS file: /home/cvs/Repository/linux/include/asm-i386/posix_types.h,v
retrieving revision 1.1.1.1
diff -u -u -r1.1.1.1 posix_types.h
--- include/asm-i386/posix_types.h	2000/09/04 16:50:33	1.1.1.1
+++ include/asm-i386/posix_types.h	2001/02/13 13:49:18
@@ -16,9 +16,9 @@
 typedef unsigned short	__kernel_ipc_pid_t;
 typedef unsigned short	__kernel_uid_t;
 typedef unsigned short	__kernel_gid_t;
-typedef unsigned int	__kernel_size_t;
-typedef int		__kernel_ssize_t;
-typedef int		__kernel_ptrdiff_t;
+typedef unsigned long	__kernel_size_t;
+typedef long		__kernel_ssize_t;
+typedef long		__kernel_ptrdiff_t;
 typedef long		__kernel_time_t;
 typedef long		__kernel_suseconds_t;
 typedef long		__kernel_clock_t;
Index: include/asm-i386/processor.h
===================================================================
RCS file: /home/cvs/Repository/linux/include/asm-i386/processor.h,v
retrieving revision 1.2
diff -u -u -r1.2 processor.h
--- include/asm-i386/processor.h	2000/09/12 21:27:18	1.2
+++ include/asm-i386/processor.h	2001/02/13 13:49:22
@@ -365,19 +365,11 @@
 { &init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, NULL, NULL }
 
 #define INIT_TSS  {						\
-	0,0, /* back_link, __blh */				\
-	sizeof(init_stack) + (long) &init_stack, /* esp0 */	\
-	__KERNEL_DS, 0, /* ss0 */				\
-	0,0,0,0,0,0, /* stack1, stack2 */			\
-	0, /* cr3 */						\
-	0,0, /* eip,eflags */					\
-	0,0,0,0, /* eax,ecx,edx,ebx */				\
-	0,0,0,0, /* esp,ebp,esi,edi */				\
-	0,0,0,0,0,0, /* es,cs,ss */				\
-	0,0,0,0,0,0, /* ds,fs,gs */				\
-	__LDT(0),0, /* ldt */					\
-	0, INVALID_IO_BITMAP_OFFSET, /* tace, bitmap */		\
-	{~0, } /* ioperm */					\
+	esp0: sizeof(init_stack) + (long) &init_stack,		\
+	ss0: __KERNEL_DS,					\
+	ldt: __LDT(0),						\
+	bitmap: INVALID_IO_BITMAP_OFFSET,			\
+	ioperm: {~0, }						\
 }
 
 #define start_thread(regs, new_eip, new_esp) do {		\
 

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-04-18 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-17 21:26 i386 cleanups Pavel Machek
2001-04-17 21:46 ` Linus Torvalds
2001-04-18 22:02   ` Michael Meissner
2001-04-17 22:57 ` Jeff Garzik
2001-04-18  9:10   ` Abramo Bagnara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox