Changes in kernel/arch/amd64/include/context.h [7397c73:dc0b964] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/context.h
r7397c73 rdc0b964 27 27 */ 28 28 29 /** @addtogroup amd64 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 38 38 #ifdef KERNEL 39 39 40 #include < arch/types.h>40 #include <typedefs.h> 41 41 42 42 /* According to ABI the stack MUST be aligned on … … 44 44 * panic sooner or later 45 45 */ 46 #define SP_DELTA 16 46 #define SP_DELTA 16 47 48 #define context_set(c, _pc, stack, size) \ 49 do { \ 50 (c)->pc = (uintptr_t) (_pc); \ 51 (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \ 52 (c)->rbp = 0; \ 53 } while (0) 47 54 48 55 #endif /* KERNEL */ … … 52 59 */ 53 60 typedef struct { 54 55 56 57 58 59 60 61 62 63 64 65 61 uintptr_t sp; 62 uintptr_t pc; 63 64 uint64_t rbx; 65 uint64_t rbp; 66 67 uint64_t r12; 68 uint64_t r13; 69 uint64_t r14; 70 uint64_t r15; 71 72 ipl_t ipl; 66 73 } __attribute__ ((packed)) context_t; 67 74
Note:
See TracChangeset
for help on using the changeset viewer.