2 Copyright © 2017, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
10 #include <aros/kernel.h>
11 #include <aros/libcall.h>
13 #include "kernel_base.h"
14 #include "kernel_intern.h"
16 AROS_LH0(void *, KrnAllocCPUMask
,
17 struct KernelBase
*, KernelBase
, 42, Kernel
)
22 struct PlatformData
*pdata
= KernelBase
->kb_PlatformData
;
23 struct APICData
*apicData
;
26 if ((pdata
) && (pdata
->kb_APIC
))
28 apicData
= pdata
->kb_APIC
;
30 count
= apicData
->apic_count
/ 32;
32 if ((count
* 32) < apicData
->apic_count
)
35 mask
= AllocMem(count
* sizeof(ULONG
), MEMF_CLEAR
| MEMF_PUBLIC
);