At 02:07 PM 17/05/2001 -0400, you wrote:
>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?

can you edit the ld linker script to write those sections to be alinged
in their own page area?

-stuart george


-Dark Fiber <[EMAIL PROTECTED]>

[FAQ] Write Your Own Operating System
         http://www.mega-tokyo.com/os
Sarien Sierra AGI Emulator
         http://www.mega-tokyo.com/sarien
3x3 Eyes Fanfiction Archive
         http://www.mega-tokyo.com/pai
AD&D UnderDark Roguelike
         http://www.mega-tokyo.com/underdark



Reply via email to