~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to h/hp300-bsd.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define HP300_BSD
 
2
#include "bsd.h"
 
3
#include "mc68k.h"
 
4
 
 
5
#define ADDITIONAL_FEATURES \
 
6
                     ADD_FEATURE("HP300"); \
 
7
             ADD_FEATURE("MC68020")
 
8
 
 
9
 
 
10
#define MC68020
 
11
#define IEEEFLOAT
 
12
 
 
13
 
 
14
 
 
15
 
 
16
#define DATA_BEGIN (char *)((TXTRELOC+header.a_text+(SEGSIZ-1)) & ~(SEGSIZ-1));
 
17
 
 
18
#undef   FILECPY_HEADER
 
19
#define FILECPY_HEADER \
 
20
        if (header.a_magic == ZMAGIC) \
 
21
                filecpy(save, original, PAGSIZ - sizeof(header)); \
 
22
        filecpy(save, original, header.a_text);
 
23
 
 
24
 
 
25
#define RELOC_FILE "rel_sun3.c"
 
26
 
 
27
 
 
28
#include <machine/machparam.h>
 
29
#undef LITTLE_END
 
30
 
 
31
#define PAGSIZ          (NBPG)
 
32
#define SEGSIZ          (NBPG * CLSIZE)
 
33
#define TXTRELOC        0
 
34
 
 
35
#define USE_DIRENT
 
36
#define GETPATHNAME
 
37
#define PATHNAME_CACHE  10
 
38
 
 
39
#define HZ              60
 
40
/* try out the gnu malloc */
 
41
/* #define GNU_MALLOC */
 
42
 
 
43
#define SIGPROTV SIGBUS
 
44
/* In my implementation I have put the address in code
 
45
   Doubtless this will change in Xinu code.
 
46
   
 
47
 */
 
48
#define GET_FAULT_ADDR(sig,code,sv,a) ((char *) code)
 
49
 
 
50
#define INSTALL_SEGMENTATION_CATCHER \
 
51
         (void) signal(SIGSEGV,segmentation_catcher); \
 
52
         (void) signal(SIGBUS,segmentation_catcher)
 
53
 
 
54
 
 
55
 
 
56
 
 
57
/* Begin for cmpinclude */
 
58
 
 
59
 
 
60
/* NOTE: If you don't have the system call mprotect DON'T
 
61
   define this.
 
62
   I have added it to my own kernel.
 
63
   */
 
64
   
 
65
#define SGC
 
66
 
 
67
/* _setjmp and _longjmp exist on bsd and are more efficient
 
68
   and handle the C stack which is all we need. [I think!]
 
69
   
 
70
 */
 
71
 
 
72
#define setjmp _setjmp
 
73
#define longjmp _longjmp
 
74
 
 
75
/* End for cmpinclude */
 
76
 
 
77