Re: out-of-line x86 "put_user()" implementation

From: Ingo Molnar
Date: Mon Feb 07 2005 - 06:46:53 EST



* Linus Torvalds <torvalds@xxxxxxxx> wrote:

> I no longer use x86 as my main machine, so this patch is totally
> untested. I've compiled it to see that things look somewhat sane, but
> that doesn't mean much. If I forgot some register or screwed something
> else up, this will result in a totally nonworking kernel, but I
> thought that maybe somebody else would be interested in looking at
> whether this (a) works, (b) migth even shrink the kernel and (c) might
> make us able to DTRT wrt the page table following crud (old i386 cores
> may be hard to find these days, so maybe people don't care).

boots fine and shrinks the image size quite noticeably:

[Nr] Name Type Addr Off Size
[ 1] .text PROGBITS c0100000 001000 2771a9 [vmlinux-orig]
[ 1] .text PROGBITS c0100000 001000 2742dd [vmlinux-patched]

that's 11980 bytes off a 2585001 bytes .text, a 0.5% size reduction.
This patch we want ...

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