autoinit: Provide version checked autoinit for SysBase
[AROS.git] / rom / kernel / initmemory.c
blob326c9d14b72de5adb6e6dd0d44c576576dc1b2aa
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_LH1(void, KrnInitMemory,
13 /* SYNOPSIS */
14 AROS_LHA(struct MemHeader *, mh, A0),
16 /* LOCATION */
17 struct KernelBase *, KernelBase, 31, Kernel)
19 /* FUNCTION
20 Initialize kernel memory management on a given memory region
22 INPUTS
23 mh - Address of a filled in structure describing the region.
25 RESULT
26 None.
28 NOTES
30 EXAMPLE
32 BUGS
34 SEE ALSO
36 INTERNALS
38 ******************************************************************************/
40 AROS_LIBFUNC_INIT
42 #if USE_MMU
43 if (!KernelBase->kb_PageSize)
44 return;
46 /* Initialize the MemHeader */
47 mm_Init(mh, KernelBase->kb_PageSize);
48 #endif
50 AROS_LIBFUNC_EXIT