2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Private data belonging to exec.library
8 #ifndef __EXEC_INTERN_H__
9 #define __EXEC_INTERN_H__
11 /* Needed for aros_print_not_implemented macro */
12 #include <aros/debug.h>
14 /* This is a short file that contains a few things every Exec function
18 # include <aros/system.h>
20 #ifndef AROS_LIBCALL_H
21 # include <aros/libcall.h>
23 #ifndef EXEC_EXECBASE_H
24 # include <exec/execbase.h>
27 # include <proto/exec.h>
30 #include <exec_platform.h>
32 #define ALERT_BUFFER_SIZE 2048
34 /* Internals of this structure are host-specific, we don't know them here */
37 /* A private portion of ExecBase */
41 struct List ResetHandlers
; /* Reset handlers list */
42 struct MinList AllocMemList
; /* Mungwall allocations list */
43 struct SignalSemaphore MemListSem
; /* Memory list protection semaphore */
44 struct SignalSemaphore LowMemSem
; /* Lock for single-threading low memory handlers */
45 APTR KernelBase
; /* kernel.resource base */
46 struct Library
*DebugBase
; /* debug.library base */
47 ULONG PageSize
; /* Memory page size */
48 ULONG IntFlags
; /* Internal flags, see below */
49 struct MsgPort
*RemTaskPort
; /* port used for RemTask() memory cleanup */
50 struct Exec_PlatformData PlatformData
; /* Platform-specific stuff */
51 char AlertBuffer
[ALERT_BUFFER_SIZE
]; /* Buffer for alert text */
54 #define PrivExecBase(base) ((struct IntExecBase *)base)
55 #define PD(base) PrivExecBase(base)->PlatformData
56 #define KernelBase PrivExecBase(SysBase)->KernelBase
57 #define DebugBase PrivExecBase(SysBase)->DebugBase
60 #define EXECF_MungWall 0x0001 /* This flag can't be changed at runtime */
61 #define EXECF_StackSnoop 0x0002
64 extern void __AROS_InitExecBase (void);
67 APTR
allocBootMem(struct MemHeader
*mh
, ULONG size
);
68 struct ExecBase
*PrepareExecBase(struct MemHeader
*mh
, struct TagItem
*tags
);
69 struct ExecBase
*PrepareExecBaseMove(struct ExecBase
*oldSysBase
);
70 BOOL
Exec_PreparePlatform(struct Exec_PlatformData
*pdata
, struct TagItem
*tags
);
72 void InitKickTags(struct ExecBase
*SysBase
);
73 UWORD
GetSysBaseChkSum(struct ExecBase
*sysbase
);
74 void SetSysBaseChkSum(void);
75 BOOL
IsSysBaseValid(struct ExecBase
*sysbase
);
77 IPTR
cpu_SuperState();
79 #endif /* __EXEC_INTERN_H__ */