Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152494131
D22961.id66137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
640 B
Referenced Files
None
Subscribers
None
D22961.id66137.diff
View Options
Index: head/sys/riscv/riscv/locore.S
===================================================================
--- head/sys/riscv/riscv/locore.S
+++ head/sys/riscv/riscv/locore.S
@@ -186,8 +186,10 @@
/* Initialize stack pointer */
la s3, initstack_end
mv sp, s3
- addi sp, sp, -PCB_SIZE
+ /* Allocate space for thread0 PCB and riscv_bootparams */
+ addi sp, sp, -(PCB_SIZE + 40) & ~STACKALIGNBYTES
+
/* Clear BSS */
la s0, _C_LABEL(__bss_start)
la s1, _C_LABEL(_end)
@@ -203,8 +205,6 @@
#endif
/* Fill riscv_bootparams */
- addi sp, sp, -40
-
la t0, pagetable_l1
sd t0, 0(sp) /* kern_l1pt */
sd s9, 8(sp) /* kern_phys */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 7:51 AM (17 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31588213
Default Alt Text
D22961.id66137.diff (640 B)
Attached To
Mode
D22961: RISC-V: Ensure kernel stack is aligned
Attached
Detach File
Event Timeline
Log In to Comment