Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148083615
D41485.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
551 B
Referenced Files
None
Subscribers
None
D41485.diff
View Options
diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c
--- a/sys/arm64/arm64/machdep.c
+++ b/sys/arm64/arm64/machdep.c
@@ -359,11 +359,14 @@
{
int i;
- for (i = 0; i < nitems(pcb->pcb_x); i++)
- pcb->pcb_x[i] = tf->tf_x[i + PCB_X_START];
-
/* NB: pcb_x[PCB_LR] is the PC, see PC_REGS() in db_machdep.h */
- pcb->pcb_x[PCB_LR] = tf->tf_elr;
+ for (i = 0; i < nitems(pcb->pcb_x); i++) {
+ if (i == PCB_LR)
+ pcb->pcb_x[i] = tf->tf_elr;
+ else
+ pcb->pcb_x[i] = tf->tf_x[i + PCB_X_START];
+ }
+
pcb->pcb_sp = tf->tf_sp;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 3:52 PM (4 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29776509
Default Alt Text
D41485.diff (551 B)
Attached To
Mode
D41485: arm64 makectx: Fix overflow of tf_x array
Attached
Detach File
Event Timeline
Log In to Comment