Minor fixes to comments.
[AROS.git] / rom / kernel / freepages.c
blobc4b9be6b255b1f18ff726cd490f8013699865094
1 #include <aros/config.h>
3 #include <kernel_base.h>
4 #include <kernel_mm.h>
6 /*****************************************************************************
8 NAME */
9 #include <proto/kernel.h>
11 AROS_LH2(void, KrnFreePages,
13 /* SYNOPSIS */
14 AROS_LHA(void *, addr, A0),
15 AROS_LHA(uintptr_t, length, D0),
17 /* LOCATION */
18 struct KernelBase *, KernelBase, 28, Kernel)
20 /* FUNCTION
22 INPUTS
24 RESULT
26 NOTES
27 This function works only on systems with MMU support.
29 EXAMPLE
31 BUGS
33 SEE ALSO
35 INTERNALS
37 ******************************************************************************/
39 AROS_LIBFUNC_INIT
41 #if USE_MMU
42 /* Drop access rights */
43 KrnSetProtection(addr, length, 0);
44 /* Actually free pages */
45 mm_FreePages(addr, length, KernelBase);
46 #endif
48 AROS_LIBFUNC_EXIT