We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d64ecf commit 3bf742dCopy full SHA for 3bf742d
1 file changed
src/cpu/aarch64/cpu.c
@@ -36,8 +36,8 @@ cpu_stack_init(uint64_t *stack, void *entry,
36
stack[32] = 0x60000344;
37
stack[0] = (intptr_t)thread_exit;
38
39
- // x0 at [30], x1 at [31], x2 at [29], x3 at [28], ...
40
- static const int arg_idx[] = { 30, 31, 29, 28 };
+ // x0 at [30], x1 at [31], x2 at [28], x3 at [29], ...
+ static const uint8_t arg_idx[] = { 30, 31, 28, 29 };
41
for(int i = 0; i < nargs; i++)
42
stack[arg_idx[i]] = va_arg(ap, uintptr_t);
43
return stack;
0 commit comments