aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2012-08-08 17:59:49 +0100
committerRichard Brooksby2012-08-08 17:59:49 +0100
commite4d51297717dd6cf4326989507409df5005feef4 (patch)
tree06fb483ec686a0b9464c6b6630fee828b286b2da /mps/code
parent5d113a244290173e7f3427fcc40d67e4b7e23e5b (diff)
parent3e9f8108a414297a2932dd5973db1e3902e53d20 (diff)
downloademacs-e4d51297717dd6cf4326989507409df5005feef4.tar.gz
emacs-e4d51297717dd6cf4326989507409df5005feef4.zip
Second merge of branch/2012-07-26/linux-catchup.
Copied from Perforce Change: 178871 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/prmci3li.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mps/code/prmci3li.c b/mps/code/prmci3li.c
index 3bae764c203..5ceaeb338cc 100644
--- a/mps/code/prmci3li.c
+++ b/mps/code/prmci3li.c
@@ -31,26 +31,26 @@ SRCID(prmci3li, "$Id$");
31 31
32MRef Prmci3AddressHoldingReg(MutatorFaultContext mfc, unsigned int regnum) 32MRef Prmci3AddressHoldingReg(MutatorFaultContext mfc, unsigned int regnum)
33{ 33{
34 gregset_t *gregs; 34 Word *gregs;
35 35
36 AVER(regnum <= 7); 36 AVER(regnum <= 7);
37 AVER(regnum >= 0); 37 AVER(regnum >= 0);
38 38
39 gregs = &mfc->ucontext->uc_mcontext.gregs; 39 gregs = (Word *)&mfc->ucontext->uc_mcontext.gregs;
40 40
41 /* .source.i486 */ 41 /* .source.i486 */
42 /* .assume.regref */ 42 /* .assume.regref */
43 /* The REG_EAX etc. symbols are only present if _GNU_SOURCE is defined. 43 /* The REG_EAX etc. symbols are only present if _GNU_SOURCE is defined.
44 Currently this is in lii4gc.gmk in PFMDEFS. */ 44 Currently this is in lii4gc.gmk in PFMDEFS. */
45 switch (regnum) { 45 switch (regnum) {
46 case 0: return (MRef)&gregs[REG_EAX]; 46 case 0: return &gregs[REG_EAX];
47 case 1: return (MRef)&gregs[REG_ECX]; 47 case 1: return &gregs[REG_ECX];
48 case 2: return (MRef)&gregs[REG_EDX]; 48 case 2: return &gregs[REG_EDX];
49 case 3: return (MRef)&gregs[REG_EBX]; 49 case 3: return &gregs[REG_EBX];
50 case 4: return (MRef)&gregs[REG_ESP]; 50 case 4: return &gregs[REG_ESP];
51 case 5: return (MRef)&gregs[REG_EBP]; 51 case 5: return &gregs[REG_EBP];
52 case 6: return (MRef)&gregs[REG_ESI]; 52 case 6: return &gregs[REG_ESI];
53 case 7: return (MRef)&gregs[REG_EDI]; 53 case 7: return &gregs[REG_EDI];
54 } 54 }
55 NOTREACHED; 55 NOTREACHED;
56 return (MRef)NULL; /* Avoids compiler warning. */ 56 return (MRef)NULL; /* Avoids compiler warning. */