2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/config.h>
10 #include <kernel_base.h>
11 #include <kernel_mm.h>
13 /*****************************************************************************
16 #include <proto/kernel.h>
18 AROS_LH2(void, KrnFreePages
,
21 AROS_LHA(void *, addr
, A0
),
22 AROS_LHA(uintptr_t, length
, D0
),
25 struct KernelBase
*, KernelBase
, 28, Kernel
)
34 This function works only on systems with MMU support.
44 ******************************************************************************/
49 /* Drop access rights */
50 KrnSetProtection(addr
, length
, 0);
51 /* Actually free pages */
52 mm_FreePages(addr
, length
, KernelBase
);