- API changes:
get_local_thread_pointer()
->read_percpu_reg()
set_local_thread_pointer()
->write_percpu_reg()
init(max_cpu_num: usize)
->init() -> usize
- Add
init_percpu_reg()
. - Add
percpu_area_num()
.
- Make sure the percpu data area is initialized only once.
- Automatically detect number of CPUs in
percpu::init
. - x86_64:
- Use
mov
instruction instead ofmovabs
to get the per-CPU variable offset.
- Use
- Add LoongArch64 support (#10).
- Export dummy
percpu_area_base
for thesp-naive
feature. (#9)
- Add accessors to remote CPUs. (#7)
Initial release.