Discussion:
[-mm patch] always enable regparm on i386
(too old to reply)
Adrian Bunk
2005-03-27 20:23:20 UTC
Permalink
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.

Signed-off-by: Adrian Bunk <***@stusta.de>

--- linux-2.6.10-mm2-full/arch/i386/Kconfig.old 2005-01-08 17:41:49.000000000 +0100
+++ linux-2.6.10-mm2-full/arch/i386/Kconfig 2005-01-08 17:42:10.000000000 +0100
@@ -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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Andrew Morton
2005-03-29 01:40:37 UTC
Permalink
Post by 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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Loading...