5
#define ADDITIONAL_FEATURES \
6
ADD_FEATURE("HP300"); \
16
#define DATA_BEGIN (char *)((TXTRELOC+header.a_text+(SEGSIZ-1)) & ~(SEGSIZ-1));
19
#define FILECPY_HEADER \
20
if (header.a_magic == ZMAGIC) \
21
filecpy(save, original, PAGSIZ - sizeof(header)); \
22
filecpy(save, original, header.a_text);
25
#define RELOC_FILE "rel_sun3.c"
28
#include <machine/machparam.h>
32
#define SEGSIZ (NBPG * CLSIZE)
37
#define PATHNAME_CACHE 10
40
/* try out the gnu malloc */
41
/* #define GNU_MALLOC */
43
#define SIGPROTV SIGBUS
44
/* In my implementation I have put the address in code
45
Doubtless this will change in Xinu code.
48
#define GET_FAULT_ADDR(sig,code,sv,a) ((char *) code)
50
#define INSTALL_SEGMENTATION_CATCHER \
51
(void) signal(SIGSEGV,segmentation_catcher); \
52
(void) signal(SIGBUS,segmentation_catcher)
57
/* Begin for cmpinclude */
60
/* NOTE: If you don't have the system call mprotect DON'T
62
I have added it to my own kernel.
67
/* _setjmp and _longjmp exist on bsd and are more efficient
68
and handle the C stack which is all we need. [I think!]
72
#define setjmp _setjmp
73
#define longjmp _longjmp
75
/* End for cmpinclude */