Subject: Re: "page alignment" of kernels in the Booter
To: Matt Thomas <matt@3am-software.com>
From: None <nigel@ind.tansu.com.au>
List: port-mac68k
Date: 03/12/2001 16:08:55
> >         OK. The only other problem is - what is the page size?
> >(I need it for alignment of the start of the kernel)
> 
> That's is in the ELF Phdr as well.  Use it.  p_align is what
> you are looking for.  (1 << phdr->p_align).


	Cool, but there are two Phdrs. The first, which contains the
.text and .rodata sections, and it has p_align 0x8 (256). The second
contains the .data and .bss sections, and has a p_align 0x10 (65536).

1) Unless I am grossly misunderstanding something, neither of those
   seem to be a valid page size

2) That doesn't give me a single p_align for the whole kernel buffer


	I could just assume 8K (which would also do 4k), but I would
prefer to look it up some how.

-- 
| Nigel Pearson, nigel@ind.tansu.com.au | "Reality is that which,   |
|   Telstra NW-D, Sydney, Australia.    |  when you stop believing  |
| Office: 9206 3468    Fax:  9212 6329  |  in it, doesn't go away." |
| Mobile: 0408 664435  Home: 9792 6998  | Philip K. Dick - 'Valis.' |