diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-02-11 12:00:57 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-11 15:05:32 +0100 |
commit | aadb433981b086bfb4e082757fed1154582d5497 (patch) | |
tree | 286c851c30d398c08f2c0d0e5f925ca3ffa2587e /kern/processor.c | |
parent | 0232f733a60af52ff901d9af1bb4006fa1765182 (diff) | |
download | gnumach-aadb433981b086bfb4e082757fed1154582d5497.tar.gz gnumach-aadb433981b086bfb4e082757fed1154582d5497.tar.bz2 gnumach-aadb433981b086bfb4e082757fed1154582d5497.zip |
smp: Create AP processor set and put all APs inside it
This has the effect of running with one cpu only with smp,
but has the ability to enable APs in userspace with the right
processor set RPCs.
Message-ID: <20240211120051.1889789-1-damien@zamaudio.com>
Diffstat (limited to 'kern/processor.c')
-rw-r--r-- | kern/processor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kern/processor.c b/kern/processor.c index 76735381..f06b5d62 100644 --- a/kern/processor.c +++ b/kern/processor.c @@ -51,6 +51,7 @@ #if MACH_HOST #include <kern/slab.h> struct kmem_cache pset_cache; +struct processor_set *slave_pset; #endif /* MACH_HOST */ @@ -124,6 +125,8 @@ void pset_sys_init(void) ipc_processor_init(processor); } } + + processor_set_create(&realhost, &slave_pset, &slave_pset); } #endif /* MACH_HOST */ |