]>
Commit | Line | Data |
---|---|---|
2494eaf6 SC |
1 | /* armos.h -- ARMulator OS definitions: ARM6 Instruction Emulator. |
2 | Copyright (C) 1994 Advanced RISC Machines Ltd. | |
3 | ||
4 | This program is free software; you can redistribute it and/or modify | |
5 | it under the terms of the GNU General Public License as published by | |
6 | the Free Software Foundation; either version 2 of the License, or | |
7 | (at your option) any later version. | |
8 | ||
9 | This program is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | GNU General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU General Public License | |
15 | along with this program; if not, write to the Free Software | |
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
17 | ||
18 | /***************************************************************************\ | |
19 | * Define the initial layout of memory * | |
20 | \***************************************************************************/ | |
21 | ||
22 | #define ADDRSUPERSTACK 0x800L /* supervisor stack space */ | |
23 | #define ADDRUSERSTACK 0x80000L /* default user stack start */ | |
24 | #define ADDRSOFTVECTORS 0x840L /* soft vectors are here */ | |
25 | #define ADDRCMDLINE 0xf00L /* command line is here after a SWI GetEnv */ | |
26 | #define ADDRSOFHANDLERS 0xad0L /* address and workspace for installed handlers */ | |
27 | #define SOFTVECTORCODE 0xb80L /* default handlers */ | |
28 | ||
29 | /***************************************************************************\ | |
30 | * SWI numbers * | |
31 | \***************************************************************************/ | |
32 | ||
33 | #define SWI_WriteC 0x0 | |
34 | #define SWI_Write0 0x2 | |
35 | #define SWI_ReadC 0x4 | |
36 | #define SWI_CLI 0x5 | |
37 | #define SWI_GetEnv 0x10 | |
38 | #define SWI_Exit 0x11 | |
39 | #define SWI_EnterOS 0x16 | |
40 | ||
41 | #define SWI_GetErrno 0x60 | |
42 | #define SWI_Clock 0x61 | |
43 | #define SWI_Time 0x63 | |
44 | #define SWI_Remove 0x64 | |
45 | #define SWI_Rename 0x65 | |
46 | #define SWI_Open 0x66 | |
47 | ||
48 | #define SWI_Close 0x68 | |
49 | #define SWI_Write 0x69 | |
50 | #define SWI_Read 0x6a | |
51 | #define SWI_Seek 0x6b | |
52 | #define SWI_Flen 0x6c | |
53 | ||
54 | #define SWI_IsTTY 0x6e | |
55 | #define SWI_TmpNam 0x6f | |
56 | #define SWI_InstallHandler 0x70 | |
57 | #define SWI_GenerateError 0x71 | |
58 | ||
59 | #define FPESTART 0x2000L | |
60 | #define FPEEND 0x8000L | |
61 | #define FPEOLDVECT FPESTART + 0x100L + 8L * 16L + 4L /* stack + 8 regs + fpsr */ | |
62 | #define FPENEWVECT(addr) 0xea000000L + ((addr) >> 2) - 3L /* branch from 4 to 0x2400 */ | |
63 | extern unsigned long fpecode[] ; | |
64 | extern unsigned long fpesize ; |