1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

forward isle number from Linux to the satellite kernel

This commit is contained in:
Stefan Lankes 2015-09-13 21:52:45 +02:00
parent cde3d9dfba
commit 61d86522d5
2 changed files with 4 additions and 2 deletions

View file

@ -56,6 +56,7 @@ align 4
global possible_cpus
global timer_ticks
global current_boot_id
global isle
base dq 0
limit dq 0
cpu_freq dd 0
@ -64,7 +65,7 @@ align 4
possible_cpus dd 0
timer_ticks dq 0
current_boot_id dd 0
dummy dd 0
isle dd -1
image_size dq 0
; Bootstrap page tables are used during the initialization.

View file

@ -70,6 +70,7 @@ extern atomic_int64_t total_available_pages;
extern atomic_int32_t cpu_online;
extern atomic_int32_t possible_cpus;
extern int32_t isle;
static int foo(void* arg)
{
@ -111,7 +112,7 @@ static void print_status(void)
static spinlock_t status_lock = SPINLOCK_INIT;
spinlock_lock(&status_lock);
kprintf("CPU %d is now online (CR0 0x%zx, CR4 0x%zx)\n", CORE_ID, read_cr0(), read_cr4());
kprintf("CPU %d of isle %d is now online (CR0 0x%zx, CR4 0x%zx)\n", CORE_ID, isle, read_cr0(), read_cr4());
spinlock_unlock(&status_lock);
}