diff options
author | John Gilmore <gnu@cygnus> | 1991-08-23 08:56:39 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-08-23 08:56:39 +0000 |
commit | d7f8f106b9efaaa99a279070fcdfbac95bad483e (patch) | |
tree | 3e25ae256a4ac818494dfc4f8b9cb7ed9ad225b7 /include/a.out.sun4.h | |
parent | 299eb5f15fdf2488fe7f0268bf4f545baeae1d20 (diff) | |
download | gdb-d7f8f106b9efaaa99a279070fcdfbac95bad483e.zip gdb-d7f8f106b9efaaa99a279070fcdfbac95bad483e.tar.gz gdb-d7f8f106b9efaaa99a279070fcdfbac95bad483e.tar.bz2 |
* a.out.gnu.h, a.out.sun4.h: Make SEGMENT_SIZE able to depend
on the particular a.out being examined.
* a.out.sun4.h: Define segment sizes for Sun-3's and Sun-4's.
* FIXME: a.out.gnu.h is almost obsolete.
* FIXME: a.out.sun4.h should be renamed a.out.sun.h now.
Diffstat (limited to 'include/a.out.sun4.h')
-rwxr-xr-x | include/a.out.sun4.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/a.out.sun4.h b/include/a.out.sun4.h index 4ce569d..6c456d3 100755 --- a/include/a.out.sun4.h +++ b/include/a.out.sun4.h @@ -2,11 +2,20 @@ #define PAGE_SIZE 0x2000 /* 8K. aka NBPG in <sys/param.h> */ /* Note that some SPARCs have 4K pages, some 8K, some others. */ -#define SEGMENT_SIZE PAGE_SIZE + +#define SEG_SIZE_SPARC PAGE_SIZE +#define SEG_SIZE_SUN3 0x80000 /* Resolution of r/w protection hw */ + #define TEXT_START_ADDR PAGE_SIZE /* Location 0 is not accessible */ /* Non-default definitions of the accessor macros... */ +/* Segment size varies on Sun-3 versus Sun-4. */ + +#define N_SEGSIZE(x) (N_MACHTYPE(x) == M_SPARC? SEG_SIZE_SPARC: \ + N_MACHTYPE(x) == M_68020? SEG_SIZE_SUN3: \ + /* Guess? */ PAGE_SIZE) + /* Offset in a.out file of the text section. For ZMAGIC, the text section actually includes the a.out header. */ |