Add a wishful comment
[AROS.git] / rom / kernel / initmemory.c
blobd37bfff32dae152cd33062f5560c9b4882729a08
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_LH1(void, KrnInitMemory,
20 /* SYNOPSIS */
21 AROS_LHA(struct MemHeader *, mh, A0),
23 /* LOCATION */
24 struct KernelBase *, KernelBase, 31, Kernel)
26 /* FUNCTION
27 Initialize kernel memory management on a given memory region
29 INPUTS
30 mh - Address of a filled in structure describing the region.
32 RESULT
33 None.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 ******************************************************************************/
47 AROS_LIBFUNC_INIT
49 #if USE_MMU
50 if (!KernelBase->kb_PageSize)
51 return;
53 /* Initialize the MemHeader */
54 mm_Init(mh, KernelBase->kb_PageSize);
55 #endif
57 AROS_LIBFUNC_EXIT