1 typedef struct _osheader 2 { 3 unsigned short os_entry; 4 unsigned short os_version; 5 void *reseth; 6 struct _osheader *os_beg; 7 void *os_end; 8 long os_rsv1; 9 void *os_magic; 10 long os_date; 11 unsigned short os_conf; 12 unsigned short os_dosdate; 13 char **p_root; 14 unsigned char **pkbshift; 15 void **p_run; 16 char *p_rsv2; 17 } OSHEADER; 18 19 #define phystop ((unsigned long *)0x42e) 20 #define _sysbase ((OSHEADER **)0x4f2) 21 #define _p_cookies ((unsigned long **)0x5a0) 22 #define ramtop ((unsigned long *)0x5a4)