mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
riscv: Minor cleanup in startup code
- remove setting of register value which is not used until the next value is set - Use the L2_SHIFT constant when setting up L2 superpages Submitted by: Antonin Houska <ah AT melesmeles DOT cz>
This commit is contained in:
parent
f8ae041a04
commit
eb81dfb3af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367078
|
@ -135,10 +135,9 @@ pagetables:
|
|||
|
||||
/* Level 2 superpages (512 x 2MiB) */
|
||||
lla s1, pagetable_l2
|
||||
srli t4, s9, 21 /* Div physmem base by 2 MiB */
|
||||
srli t4, s9, L2_SHIFT /* Div physmem base by 2 MiB */
|
||||
li t2, 512 /* Build 512 entries */
|
||||
add t3, t4, t2
|
||||
li t5, 0
|
||||
li t0, (PTE_KERN | PTE_X)
|
||||
1:
|
||||
slli t2, t4, PTE_PPN1_S /* << PTE_PPN1_S */
|
||||
|
|
Loading…
Reference in a new issue