feat: SMP stage 1 (4 harts, per-hart guarded stacks, home-core affinity, IPIs, TLB shootdown, one temporary kernel lock), 4-core storm
This commit is contained in:
@@ -21,9 +21,10 @@ This generates `crates/adapter-<arch>/` with the standard structure. Then:
|
||||
the final kernel table may be mapped in the lower half.
|
||||
Keep text, read-only data and writable data on separate pages and
|
||||
export their page-aligned boundaries (`_text_start`, `_text_end`,
|
||||
`_rodata_end`, `_stack_guard`, `_stack_bottom`): the kernel maps each
|
||||
range with only the access it needs (W^X) and leaves a guard page under
|
||||
the stack.
|
||||
`_rodata_end`, `_stacks_start`, `_stacks_end`): the kernel maps each
|
||||
range with only the access it needs (W^X). The stacks area holds one
|
||||
slot per hart, a guard page (left unmapped) then that hart's kernel
|
||||
stack; the boot stub picks the slot from the hart id.
|
||||
5. Implement the TODOs in `hw/`, `mmu/`, `trap/`, and `platform.rs`
|
||||
|
||||
## Structure
|
||||
|
||||
Reference in New Issue
Block a user