We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485281e commit 336b739Copy full SHA for 336b739
kernel/arch/arm32/include/arch/context.h
@@ -39,6 +39,7 @@
39
#include <align.h>
40
#include <arch/stack.h>
41
#include <arch/context_struct.h>
42
+#include <arch/regutils.h>
43
44
/* Put one item onto the stack to support get_stack_base() and align it up. */
45
#define SP_DELTA (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
@@ -48,6 +49,7 @@
48
49
(c)->pc = (uintptr_t) (_pc); \
50
(c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \
51
(c)->fp = 0; \
52
+ (c)->cpu_mode = SUPERVISOR_MODE; \
53
} while (0)
54
55
#ifndef __ASSEMBLER__
0 commit comments