-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSRAM_map.s
99 lines (70 loc) · 2.65 KB
/
SRAM_map.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
;****************************************************************
; AVROS: ATmega128 Operating System
; (c) gamykla
;
; SYSTEM MEMORY MAP (ASM version)
;
; $Source: /u/csc02g/gamykla/AVROS-CVS/avros/SRAM_map.s,v $
; $Author: gamykla $
; $Date: 2004/04/17 00:39:44 $
; $Revision: 1.1 $
;
;****************************************************************
;/**********************************************************************
; WARNING: The following memory organization layout is specific
; to ATMEL ATmega128 architecture. This section will need to
; be re-defined if re-compiling for a new architecture.
;***********************************************************************/
; first byte in SRAM
.equ RAMSTART, 0x0100
; Static Kernel Space (512 bytes)
.equ KERNEL_STATIC_DATA_START, RAMSTART
.equ KERNEL_STATIC_DATA_END , 0x04e8
; dynamic heap (1024 bytes)
.equ HEAP_START , 0x04e9
.equ HEAP_END , 0x08d1
; user stack area (2346 bytes)
.equ USER_STACKSPACE_START , 0x08d2
.equ USER_STACKSPACE_END , 0x1036
; Kernel Stack space (210 bytes)
.equ KERNEL_STACKSPACE_START , 0x1037
.equ KERNEL_STACKSPACE_END , RAMEND
; static kernel space:
; ---------------------------
; storage area for kernel stack pointer
.equ KSP_HIGH , 0x0100
.equ KSP_LOW , 0x0101
; index of active process
.equ ACTIVE , 0x0102
; syscal parameters:
.equ OPCODE, 0x0103
.equ P1_L , 0x0104
.equ P1_H , 0x0105
.equ P2_L , 0x0106
.equ P2_H , 0x0107
.equ P3_L , 0x0108
.equ P3_H , 0x0109
.equ P4_L , 0x010a
.equ P4_H , 0x010b
.equ P5_L , 0x010c
.equ P5_H , 0x010d
; process state data
.equ A_SPL , 0x010e
.equ A_SPH , 0x010f
; return code indicator
.equ RETCODEI , 0x0110 ; set to 0x01 if return code present else 0x00
;.equ A_PCH , 0x0111
.equ A_SREG , 0x0112
.equ RETURN_L, 0x0113
.equ RETURN_H, 0x0114
; temporary storage
.equ TMP_1, 0x0115
.equ TMP_2, 0x0116
.equ TMP_3, 0x0117
.equ TMP_4, 0x0118
.equ TMP_5, 0x0119
.equ TMP_6, 0x011A
.equ TMP_7, 0x011B
.equ TMP_8, 0x011C
; process descriptor block
.equ PD_BLOCK_START, 0x011D