mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: only rebuild required files based on mtime
Move multcore test up with bootloader.
This commit is contained in:
10
README.adoc
10
README.adoc
@@ -1589,7 +1589,9 @@ See also: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/19
|
||||
|
||||
The implementation is described at: https://stackoverflow.com/questions/46415059/how-to-observe-aarch64-system-registers-in-qemu/53043044#53043044
|
||||
|
||||
=== GDB step debug multicore
|
||||
=== GDB step debug multicore userland
|
||||
|
||||
For a more minimal baremetal multicore setup, see: <<arm-multicore>>.
|
||||
|
||||
We can set and get which cores the Linux kernel allows a program to run on with `sched_getaffinity` and `sched_setaffinity`:
|
||||
|
||||
@@ -10510,13 +10512,13 @@ output:
|
||||
|
||||
==== ARM multicore
|
||||
|
||||
TODO get working: CPU1 not waking up:
|
||||
TODO get working: CPU 1 not waking up:
|
||||
|
||||
....
|
||||
./run --arch aarch64 --baremetal arch/aarch64/no_bootloader/multicore
|
||||
./run --arch aarch64 --baremetal arch/aarch64/multicore --cpus 2
|
||||
....
|
||||
|
||||
Source: link:baremetal/arch/aarch64/no_bootloader/multicore.S[]
|
||||
Source: link:baremetal/arch/aarch64/multicore.S[]
|
||||
|
||||
CPU 0 of this program enters a spinlock loop: it repeatedly checks if a given memory address is `1`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user