Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148607901
D25151.id72723.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
D25151.id72723.diff
View Options
Index: sys/riscv/riscv/locore.S
===================================================================
--- sys/riscv/riscv/locore.S
+++ sys/riscv/riscv/locore.S
@@ -139,6 +139,8 @@
lla s1, pagetable_l2_devmap
mv s2, a1
srli s2, s2, PAGE_SHIFT
+ /* Mask off any bits that aren't aligned */
+ andi s2, s2, ~((1 << (PTE_PPN1_S - PTE_PPN0_S)) - 1)
li t0, (PTE_KERN)
slli t2, s2, PTE_PPN0_S /* << PTE_PPN0_S */
@@ -214,6 +216,10 @@
sd t0, RISCV_BOOTPARAMS_KERN_STACK(sp)
li t0, (VM_EARLY_DTB_ADDRESS)
+ /* Add offset of DTB within superpage */
+ li t1, (L2_OFFSET)
+ and t1, a1, t1
+ add t0, t0, t1
sd t0, RISCV_BOOTPARAMS_DTBP_VIRT(sp)
mv a0, sp
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 2:57 AM (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29993936
Default Alt Text
D25151.id72723.diff (663 B)
Attached To
Mode
D25151: RISC-V: handle DTB aligned to less than 2MB
Attached
Detach File
Event Timeline
Log In to Comment