Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142816604
D54839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
866 B
Referenced Files
None
Subscribers
None
D54839.diff
View Options
diff --git a/sys/powerpc/powerpc/exec_machdep.c b/sys/powerpc/powerpc/exec_machdep.c
--- a/sys/powerpc/powerpc/exec_machdep.c
+++ b/sys/powerpc/powerpc/exec_machdep.c
@@ -1083,7 +1083,7 @@
struct pcb *pcb;
pcb = (struct pcb *)((td->td_kstack + td->td_kstack_pages * PAGE_SIZE -
- sizeof(struct pcb)) & ~0x2fUL);
+ sizeof(struct pcb)) & ~0x3fUL);
td->td_pcb = pcb;
td->td_frame = (struct trapframe *)pcb - 1;
}
diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c
--- a/sys/powerpc/powerpc/vm_machdep.c
+++ b/sys/powerpc/powerpc/vm_machdep.c
@@ -124,7 +124,7 @@
cpu_update_pcb(td1);
pcb = (struct pcb *)((td2->td_kstack +
- td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x2fUL);
+ td2->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb)) & ~0x3fUL);
td2->td_pcb = pcb;
/* Copy the pcb */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 24, 9:24 PM (12 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27910950
Default Alt Text
D54839.diff (866 B)
Attached To
Mode
D54839: powerpc: Fix alignment of initial PCB on kstack
Attached
Detach File
Event Timeline
Log In to Comment