Back to index

cell-binutils  2.17cvs20070401
pc532mach.h
Go to the documentation of this file.
00001 #include <machine/vmparam.h>
00002 #include <sys/param.h>
00003 
00004 /* This is an ugly way to hack around the incorrect
00005  * definition of UPAGES in ns532/machparam.h.
00006  *
00007  * The definition should specify the size reserved
00008  * for "struct user" in core files in PAGES,
00009  * but instead it gives it in 512-byte core-clicks
00010  * for ns532, i386 and i860. UPAGES is used only in trad-core.c.
00011  */
00012 #if UPAGES == 16
00013 #undef  UPAGES
00014 #define UPAGES 2
00015 #endif
00016 
00017 #if UPAGES != 2
00018 #error UPAGES is neither 2 nor 16
00019 #endif
00020 
00021 #define       HOST_PAGE_SIZE              1
00022 #define       HOST_SEGMENT_SIZE    NBPG
00023 #define       HOST_TEXT_START_ADDR USRTEXT
00024 #define       HOST_STACK_END_ADDR  USRSTACK