From: Jim Kingdon Date: Thu, 23 Sep 1993 02:25:28 +0000 (+0000) Subject: * remote.texi (Bootstrapping): Discuss 386 call gates. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d8c5f398aa8017e799b2349cedd5665e71496ee;p=binutils-gdb.git * remote.texi (Bootstrapping): Discuss 386 call gates. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 522eab81400..0de4733aa2f 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 22 21:22:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * remote.texi (Bootstrapping): Discuss 386 call gates. + Sat Sep 18 17:10:44 1993 Jim Kingdon (kingdon@poseidon.cygnus.com) * stabs.texinfo (Based Variables): New node. diff --git a/gdb/doc/remote.texi b/gdb/doc/remote.texi index e5ddac74e7d..bf04d0ff5eb 100644 --- a/gdb/doc/remote.texi +++ b/gdb/doc/remote.texi @@ -166,6 +166,7 @@ It may be identical to @code{putchar} for your target system; a different name is used to allow you to distinguish the two if you wish. @item void exceptionHandler (int @var{exception_number}, void *@var{exception_address}) +@kindex exceptionHandler Write this function to install @var{exception_address} in the exception handling tables. You need to do this because the stub does not have any way of knowing what the exception handling tables on your target system @@ -180,12 +181,9 @@ etc.) should be just as it is when a processor exception occurs. So if you want to use a jump instruction to reach @var{exception_address}, it should be a simple jump, not a jump to subroutine. -@c For the 386, doesn't the interrupt gate contain a privilege level? -@c If so, what should it be set to? I suspect the answer is the -@c privilege level in effect at the time that exceptionHandler is -@c called, but I'm not sure. FIXME. For the 386, @var{exception_address} should be installed as an interrupt -gate so that interrupts are masked while the handler runs. The +gate so that interrupts are masked while the handler runs. The gate +should be at privilege level 0 (the most privileged level). The @sc{sparc} and 68k stubs are able to mask interrupts themself without help from @code{exceptionHandler}.