]> git.baikalelectronics.ru Git - kernel.git/commit
uml: borrow const.h techniques
authorJeff Dike <jdike@addtoit.com>
Tue, 5 Feb 2008 06:30:44 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:26 +0000 (09:44 -0800)
commitb511f15498726da3763bfeb25dc44cced67d7287
tree9df4b5960104a8143b00af27ae6474145c36c0b1
parentc3d51843cdd0fc97a803affa4ba790c3b6da9395
uml: borrow const.h techniques

Suggested by Geert Uytterhoeven - use const.h to get constants that are usable
in both C and assembly.  I can't include it directly since this code can't
include kernel headers.  const.h is also for numeric constants that can be
typed by tacking a "UL" or similar on the end.  The constants here have to be
typed by casting them.

So, the relevant parts of const.h are copied here and modified in order to
allow the constants to be uncasted in assembly and casted in C.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/as-layout.h
arch/um/sys-i386/stub.S
arch/um/sys-x86_64/stub.S