2 Copyright © 2017, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include "kernel_base.h"
12 #include "kernel_intern.h"
14 AROS_LH1(void, KrnClearCPUMask
,
15 AROS_LHA(void *, mask
, A0
),
16 struct KernelBase
*, KernelBase
, 44, Kernel
)
21 struct PlatformData
*pdata
= KernelBase
->kb_PlatformData
;
22 struct APICData
*apicData
;
25 if ((IPTR
)mask
== TASKAFFINITY_ANY
)
28 if ((pdata
) && (pdata
->kb_APIC
) && ((apicMask
= (ULONG
*)mask
) != NULL
))
30 apicData
= pdata
->kb_APIC
;
32 count
= apicData
->apic_count
/ 32;
34 if ((count
* 32) < apicData
->apic_count
)
37 for (i
= 0; i
< count
; i
++)