fix a typo in the execsmp set_this_task macro. alter the exec spinlock macros slightl...
[AROS.git] / rom / kernel / deletecontext.c
blob4b4a22f3c1c3294ee8432a5d1f778f2316f9e200
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <proto/exec.h>
11 #include <kernel_base.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH1(void, KrnDeleteContext,
20 /* SYNOPSIS */
21 AROS_LHA(void *, context, A0),
23 /* LOCATION */
24 struct KernelBase *, KernelBase, 19, Kernel)
26 /* FUNCTION
27 Free CPU context storage area
29 INPUTS
30 context - a pointer to a CPU context storage previously allocated using
31 KrnCreateContext()
33 RESULT
34 None.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 KrnCreateContext()
45 INTERNALS
47 ******************************************************************************/
49 AROS_LIBFUNC_INIT
52 * This is actually a pair to krnAllocCPUContext().
53 * Needs to be reimplemented on a per-architecture basis if needed.
55 FreeMem(context, KernelBase->kb_ContextSize);
57 AROS_LIBFUNC_EXIT