Mail Archives: djgpp-workers/1996/03/14/17:41:01
On 15/3/96 9:37 am, Mat Hostetter <mat AT ardi DOT com> did thus say >>>
> It can be a real hassle locking down all variables touched at
> interrupt time. To be truly safe, each C variable being locked
> requires a separate DPMI call to lock it down, which is inefficient
> and ends up locking down lots of scattered pages here and there.
>
> Would it be possible to add a special magic linker section for
> "locked" memory, that gets locked down in crt0.S (or somesuch) with
> one DPMI call?
>
> So I could say in gcc:
>
> volatile int timer_ticks __attribute__ ((section ("locked"))) = 0;
>
> and have this variable automatically be in locked memory. I've
> appended the gcc.info information on the section attribute.
>
> -Mat
I think this is a great idea. If possible this should be done for code as well as data.
- Raw text -