add idnestcnt and tdnestcnt overrides. use atomic operations when appropriate
[AROS.git] / rom / kernel / getcpumask.c
blobd358d6129e9f51bfb27fd590c10be814c5e4c4bf
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <kernel_base.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH1(uint32_t, KrnGetCPUMask,
20 /* SYNOPSIS */
21 AROS_LHA(uint32_t, id, D0),
23 /* LOCATION */
24 struct KernelBase *, KernelBase, 38, Kernel)
26 /* FUNCTION
27 Return the affinity mask for the specified CPU number
29 INPUTS
30 CPU number (as returned by KrnGetCPUNumber())
32 RESULT
33 CPU's affinity mask
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 KrnGetCPUNumber()
44 INTERNALS
46 ******************************************************************************/
48 AROS_LIBFUNC_INIT
50 /* The actual implementation is entirely architecture-specific */
51 return (1 << 0);
53 AROS_LIBFUNC_EXIT