2 * Copyright (C) 2011, The AROS Development Team. All rights reserved.
3 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
5 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
11 #include <exec/memory.h>
12 #include <exec/alerts.h>
14 #define RGB(r,g,b) ((((r) & 0xf) << 8) | (((g) & 0xf) << 4) | (((b) & 0xf) << 0))
15 #define RGB_MASK RGB(15, 15, 15)
17 #define CODE_ROM_CHECK RGB( 4, 4, 4)
18 #define CODE_RAM_CHECK RGB( 9, 9, 9)
19 #define CODE_EXEC_CHECK RGB( 1, 1, 1)
20 #define CODE_ALLOC_FAIL (RGB( 0, 12, 0) | AT_DeadEnd)
21 #define CODE_TRAP_FAIL (RGB(12, 12, 0) | AT_DeadEnd)
22 #define CODE_EXEC_FAIL (RGB( 0, 12,12) | AT_DeadEnd)
24 void Early_ScreenCode(ULONG code
);
25 void Early_Alert(ULONG alert
);
26 void __attribute__((interrupt
)) Early_TrapHandler(void);
27 void __attribute__((interrupt
)) Early_Exception(void);
29 APTR
Early_AllocAbs(struct MemHeader
*mh
, APTR location
, IPTR byteSize
);
31 /* Must match with AROSBootstrap.c! */
32 #define ABS_BOOT_MAGIC 0x4d363802
36 struct ExecBase
*RealBase
;
37 struct ExecBase
*RealBase2
;
39 struct TagItem
*kerneltags
;
40 struct Resident
**reslist
;
41 struct ExecBase
*FakeBase
;
46 LONG magicfastmemsize
;
48 struct BootStruct
*GetBootStruct(struct ExecBase
*eb
);