Skip to contentSkip to conversation

always enable regparm on i386

PATCH In review Adrian Bunk 2 participants 2 messages Mar 27, 2005 – Mar 29, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 always enable regparm on i386

The patch below always enables regparm on i386 (with gcc >= 3.0).

With this patch, it should get a better testing coverage in -mm.

This patch should help to find bugs that show up with regparm enabled.

arch/i386/Kconfig renamed from arch/i386/Kconfig.old +2 -3
@@ -877,9 +877,8 @@
 	default y
 
 config REGPARM
-	bool "Use register arguments (EXPERIMENTAL)"
-	depends on EXPERIMENTAL
-	default n
+	bool
+	default y
 	help
 	Compile the kernel with -mregparm=3. This uses an different ABI
 	and passes the first three arguments of a function call in registers.
#1 lore raw
Quoted 2 lines · Adrian Bunk

The patch below always enables regparm on i386 (with gcc >= 3.0).

I'd prefer to keep the config option so that people can diagnose compiler and kernel bugs by disabling it. This has proved useful in the past.