Mail Archives: djgpp/2000/01/13/21:27:10
On Thu, 13 Jan 100, Martin Stromberg wrote:
> > This will most probably crash, for several good reasons:
> >
> > - stack is allocated off the DS selector whose access rights forbid
> > executing any address accessed via that selector;
> >
> > - the only segment register that is guaranteed to be loaded with the
> > application's selector is CS, so you cannot trust SS.
>
> If no, it should work (note that at entry to the interrupt hander CS
> _is_ valid and that is what counts). Please explain more clearly why
> not.
I guess you're thinking that it's only the offset of the handler which
matters. This is not true. Both the selector and the offset combination is
necessary.
- Raw text -