Kevin Lawton wrote:
> 
> Essentially, I want to ensure that a handful of functions are
> placed in their own group of (4k) pages, apart from the other
> code/data pages.
> 
> Is there a ld/as/gcc way to tag this group of functions to be
> loaded in a contiguous 4k page aligned section, and make sure
> there is no overlap with other code/data?  I need to know the
> length of this section of code too.
> 
> The rationale for this is so that in the monitor I can mark
> these pages only as readable from ring3 (user space) - they
> will contain the ring3 branch handlers for the DT code.

FWIW, I've started playing with the gcc __attribute__ directive:

  extern int handler1(int) __attribute__ ((section ("section-name")));

not sure if this is what I need.  Maybe this and the .p2align assembly
directive?

-Kevin


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kevin Lawton                        [EMAIL PROTECTED]
MandrakeSoft, Inc.                  Plex86 developer
http://www.linux-mandrake.com/      http://www.plex86.org/

Reply via email to