• Jeff Dike's avatar
    uml: borrow const.h techniques · 4bdf8bc4
    Jeff Dike authored
    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: default avatarJeff Dike <jdike@linux.intel.com>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    4bdf8bc4
stub.S 1.08 KB