1 #include <aros/config.h>
3 #include <kernel_base.h>
6 /*****************************************************************************
9 #include <proto/kernel.h>
11 AROS_LH2(void, KrnFreePages
,
14 AROS_LHA(void *, addr
, A0
),
15 AROS_LHA(uintptr_t, length
, D0
),
18 struct KernelBase
*, KernelBase
, 28, Kernel
)
27 This function works only on systems with MMU support.
37 ******************************************************************************/
42 /* Drop access rights */
43 KrnSetProtection(addr
, length
, 0);
44 /* Actually free pages */
45 mm_FreePages(addr
, length
, KernelBase
);