muimaster.library: update minor version
[AROS.git] / arch / m68k-amiga / boot / early.h
blob88e63acb1937fb71252a0dc69097f061f74bc314
1 /*
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
6 */
8 #ifndef EARLY_H
9 #define EARLY_H
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
33 struct BootStruct
35 ULONG magic;
36 struct ExecBase *RealBase;
37 struct ExecBase *RealBase2;
38 struct List *mlist;
39 struct TagItem *kerneltags;
40 struct Resident **reslist;
41 struct ExecBase *FakeBase;
42 APTR bootcode;
43 APTR ss_address;
44 LONG ss_size;
45 APTR magicfastmem;
46 LONG magicfastmemsize;
48 struct BootStruct *GetBootStruct(struct ExecBase *eb);
50 #endif /* EARLY_H */