Mail Archives: djgpp/1996/07/27/22:04:25
alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) writes:
> While we're at it, if we can put things easily into different
> sections, wouldn't that provide a nice easy method of locking memory
> for hardware interrupt handlers? Stick everything in a '.lock'
> section, with sentinel labels in it so that a "lock_everything()" call
> could lock the entire (guaranteed contiguous) section?
>
If I understand right, the linking part of what you suggest should
not only be possible but easy, since constructors and destructors are
already handled similarly. They put pointers to themselves in special
sections (.ctor, .dtor), which djgpp.lnk and some code in crt0 handle
specially. ".lock" would want entire functions and every variable they
touched.
Tom
- Raw text -