Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157114324
D20896.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20896.diff
View Options
Index: head/sys/powerpc/powerpc/exec_machdep.c
===================================================================
--- head/sys/powerpc/powerpc/exec_machdep.c
+++ head/sys/powerpc/powerpc/exec_machdep.c
@@ -144,6 +144,7 @@
#endif
size_t sfpsize;
caddr_t sfp, usfp;
+ register_t sp;
int oonstack, rndfsize;
int sig;
int code;
@@ -155,7 +156,6 @@
psp = p->p_sigacts;
mtx_assert(&psp->ps_mtx, MA_OWNED);
tf = td->td_frame;
- oonstack = sigonstack(tf->fixreg[1]);
/*
* Fill siginfo structure.
@@ -173,6 +173,8 @@
sfp = (caddr_t)&sf32;
sfpsize = sizeof(sf32);
rndfsize = roundup(sizeof(sf32), 16);
+ sp = (uint32_t)tf->fixreg[1];
+ oonstack = sigonstack(sp);
/*
* Save user context
@@ -203,6 +205,8 @@
#else
rndfsize = roundup(sizeof(sf), 16);
#endif
+ sp = tf->fixreg[1];
+ oonstack = sigonstack(sp);
/*
* Save user context
@@ -232,7 +236,7 @@
usfp = (void *)(((uintptr_t)td->td_sigstk.ss_sp +
td->td_sigstk.ss_size - rndfsize) & ~0xFul);
} else {
- usfp = (void *)((tf->fixreg[1] - rndfsize) & ~0xFul);
+ usfp = (void *)((sp - rndfsize) & ~0xFul);
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 1:19 PM (7 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33253948
Default Alt Text
D20896.diff (1 KB)
Attached To
Mode
D20896: powerpc: Only worry about the lower 32 bits of SP in a 32-bit process
Attached
Detach File
Event Timeline
Log In to Comment