Skip to content

Commit

Permalink
[PATCH] Make CONFIG_REGPARM enabled by default
Browse files Browse the repository at this point in the history
Make CONFIG_REGPARM enabled by default.  It's a noticable win both for size
and for performance, and gcc[34] handles it correctly.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Mar 23, 2006
1 parent 69ef414 commit b824eb6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions arch/i386/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,17 @@ config BOOT_IOREMAP

config REGPARM
bool "Use register arguments"
default y
help
Compile the kernel with -mregparm=3. This uses a different ABI
and passes the first three arguments of a function call in registers.
Compile the kernel with -mregparm=3. This instructs gcc to use
a more efficient function call ABI which passes the first three
arguments of a function call via registers, which results in denser
and faster code.

If this option is disabled, then the default ABI of passing
arguments via the stack is used.

If unsure, say Y.

config SECCOMP
bool "Enable seccomp to safely compute untrusted bytecode"
Expand Down

0 comments on commit b824eb6

Please sign in to comment.