Changeset 5f2926a in mainline
- Timestamp:
- 2017-08-21T18:41:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c16479e
- Parents:
- 05b3640
- Location:
- kernel/arch/riscv64
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/include/arch/context.h
r05b3640 r5f2926a 40 40 #define SP_DELTA 16 41 41 42 // FIXME43 44 42 #define context_set(context, pc, stack, size) \ 45 43 context_set_generic(context, pc, stack, size) -
kernel/arch/riscv64/include/arch/context_struct.ag
r05b3640 r5f2926a 38 38 members : [ 39 39 # 40 # There is a room for optimization (we can store just those41 # registers that must be preserved during ABI function call).40 # Only save registers that must be preserved across function 41 # calls. 42 42 # 43 43 … … 52 52 53 53 { 54 name : zero,54 name : gp, 55 55 type : uint64_t 56 56 }, 57 57 { 58 name : ra, 59 type : uint64_t 60 }, 61 62 { 63 name : x3, 58 name : tp, 64 59 type : uint64_t 65 60 }, 66 61 { 67 name : x4,62 name : s0, 68 63 type : uint64_t 69 64 }, 70 65 { 71 name : x5,66 name : s1, 72 67 type : uint64_t 73 68 }, 74 69 { 75 name : x6,70 name : s2, 76 71 type : uint64_t 77 72 }, 78 73 { 79 name : x7,74 name : s3, 80 75 type : uint64_t 81 76 }, 82 77 { 83 name : x8,78 name : s4, 84 79 type : uint64_t 85 80 }, 86 81 { 87 name : x9,82 name : s5, 88 83 type : uint64_t 89 84 }, 90 85 { 91 name : x10,86 name : s6, 92 87 type : uint64_t 93 88 }, 94 89 { 95 name : x11,90 name : s7, 96 91 type : uint64_t 97 92 }, 98 93 { 99 name : x12,94 name : s8, 100 95 type : uint64_t 101 96 }, 102 97 { 103 name : x13,98 name : s9, 104 99 type : uint64_t 105 100 }, 106 101 { 107 name : x14,102 name : s10, 108 103 type : uint64_t 109 104 }, 110 105 { 111 name : x15, 112 type : uint64_t 113 }, 114 { 115 name : x16, 116 type : uint64_t 117 }, 118 { 119 name : x17, 120 type : uint64_t 121 }, 122 { 123 name : x18, 124 type : uint64_t 125 }, 126 { 127 name : x19, 128 type : uint64_t 129 }, 130 { 131 name : x20, 132 type : uint64_t 133 }, 134 { 135 name : x21, 136 type : uint64_t 137 }, 138 { 139 name : x22, 140 type : uint64_t 141 }, 142 { 143 name : x23, 144 type : uint64_t 145 }, 146 { 147 name : x24, 148 type : uint64_t 149 }, 150 { 151 name : x25, 152 type : uint64_t 153 }, 154 { 155 name : x26, 156 type : uint64_t 157 }, 158 { 159 name : x27, 160 type : uint64_t 161 }, 162 { 163 name : x28, 164 type : uint64_t 165 }, 166 { 167 name : x29, 168 type : uint64_t 169 }, 170 { 171 name : x30, 172 type : uint64_t 173 }, 174 { 175 name : x31, 106 name : s11, 176 107 type : uint64_t 177 108 },
Note:
See TracChangeset
for help on using the changeset viewer.