mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Generalize single instruction CPU local operations by cpu_local_cell
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d04111079c
commit
fe68b4b510
@ -122,13 +122,7 @@ SECTIONS
|
||||
|
||||
# These 4 bytes are used to store the CPU ID.
|
||||
. += 4;
|
||||
|
||||
# These 4 bytes are used to store the number of preemption locks held.
|
||||
# The reason is stated in the Rust documentation of
|
||||
# [`ostd::task::processor::PreemptInfo`].
|
||||
__cpu_local_preempt_lock_count = . - __cpu_local_start;
|
||||
. += 4;
|
||||
|
||||
|
||||
KEEP(*(SORT(.cpu_local)))
|
||||
__cpu_local_end = .;
|
||||
}
|
||||
|
Reference in New Issue
Block a user