Added a test for MUIA_Listview_SelectChange.
[AROS.git] / rom / kernel / freepages.c
blob9b0d398a6d9eb6da872efe62e038537734882181
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/config.h>
10 #include <kernel_base.h>
11 #include <kernel_mm.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH2(void, KrnFreePages,
20 /* SYNOPSIS */
21 AROS_LHA(void *, addr, A0),
22 AROS_LHA(uintptr_t, length, D0),
24 /* LOCATION */
25 struct KernelBase *, KernelBase, 28, Kernel)
27 /* FUNCTION
29 INPUTS
31 RESULT
33 NOTES
34 This function works only on systems with MMU support.
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 ******************************************************************************/
46 AROS_LIBFUNC_INIT
48 #if USE_MMU
49 /* Drop access rights */
50 KrnSetProtection(addr, length, 0);
51 /* Actually free pages */
52 mm_FreePages(addr, length, KernelBase);
53 #endif
55 AROS_LIBFUNC_EXIT