• J
    uml: borrow const.h techniques · 4bdf8bc4
    Jeff Dike 提交于
    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: NJeff Dike <jdike@linux.intel.com>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    4bdf8bc4
stub.S 1.1 KB