mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Change.dylan.kinglet.160270: added sources and conform to coding conventions.
Copied from Perforce Change: 20891 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
4b78fe3ab4
commit
c995c3261c
1 changed files with 8 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* impl.c.prmci3li: PROTECTION MUTATOR CONTEXT INTEL 386 (Linux)
|
||||
*
|
||||
* $HopeName: $
|
||||
* $HopeName: MMsrc!prmci3li.c(trunk.1) $
|
||||
* Copyright (C) 1998, 1999. Harlequin Group plc. All rights reserved.
|
||||
*
|
||||
* READERSHIP
|
||||
|
|
@ -17,6 +17,8 @@
|
|||
* .source.i486: Intel486 Microprocessor Family Programmer's
|
||||
* Reference Manual
|
||||
*
|
||||
* .source.linux.kernel: Linux kernel source files.
|
||||
*
|
||||
* ASSUMPTIONS
|
||||
*
|
||||
* .assume.regref: The resisters in the context can be modified by
|
||||
|
|
@ -67,10 +69,13 @@ void Prmci3DecodeFaultContext(MRef *faultmemReturn,
|
|||
|
||||
scp = context->scp;
|
||||
|
||||
/* Assert that this is an access violation. The computation of */
|
||||
/* faultmem depends on this. */
|
||||
/* Assert that this is a page fault exception. The computation of */
|
||||
/* faultmem depends on this. See .source.i486 (14.9.14). */
|
||||
AVER(scp->trapno == 14);
|
||||
|
||||
/* cr2 contains the address which caused the fault. */
|
||||
/* See .source.i486 (14.9.14) and */
|
||||
/* .source.linux.kernel (linux/arch/i386/mm/fault.c). */
|
||||
*faultmemReturn = (MRef)scp->cr2;
|
||||
*insvecReturn = (Byte*)scp->eip;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue