Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/locore.S
Show First 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | LENTRY(link_l0_pagetable) | ||||
* Link an L0 -> L1 table entry. | * Link an L0 -> L1 table entry. | ||||
*/ | */ | ||||
/* Find the table index */ | /* Find the table index */ | ||||
lsr x11, x8, #L0_SHIFT | lsr x11, x8, #L0_SHIFT | ||||
and x11, x11, #L0_ADDR_MASK | and x11, x11, #L0_ADDR_MASK | ||||
/* Build the L0 block entry */ | /* Build the L0 block entry */ | ||||
mov x12, #L0_TABLE | mov x12, #L0_TABLE | ||||
orr x12, x12, #(TATTR_UXN_TABLE | TATTR_AP_TABLE_NO_EL0) | |||||
/* Only use the output address bits */ | /* Only use the output address bits */ | ||||
lsr x9, x9, #PAGE_SHIFT | lsr x9, x9, #PAGE_SHIFT | ||||
1: orr x13, x12, x9, lsl #PAGE_SHIFT | 1: orr x13, x12, x9, lsl #PAGE_SHIFT | ||||
/* Store the entry */ | /* Store the entry */ | ||||
str x13, [x6, x11, lsl #3] | str x13, [x6, x11, lsl #3] | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |