2 Copyright © 2011, The AROS Development Team. All rights reserved.
5 Desc: Allocate kernel.resource base.
9 #include <exec/memory.h>
10 #include <proto/exec.h>
12 #include LC_LIBDEFS_FILE
13 #include <kernel_globals.h>
15 struct KernelBase
*AllocKernelBase(struct ExecBase
*SysBase
)
18 ULONG i
= FUNCTIONS_COUNT
* LIB_VECTSIZE
;
20 /* Align vector table size */
21 i
= ((i
- 1) / sizeof(IPTR
) + 1) * sizeof(IPTR
);
23 /* Allocate the memory */
24 mem
= AllocMem(i
+ sizeof(struct KernelBase
), MEMF_PUBLIC
|MEMF_CLEAR
);
28 /* Skip past the vector table */