Changeset c030818 in mainline
- Timestamp:
- 2023-02-05T14:43:59Z (22 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 33a3be8
- Parents:
- c1b073b7
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-20 12:17:49)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 14:43:59)
- Location:
- kernel
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/arch/context.h
rc1b073b7 rc030818 49 49 uintptr_t sp; 50 50 uintptr_t pc; 51 ipl_t ipl;52 51 } context_t; 53 52 -
kernel/arch/abs32le/include/arch/context_offset.h
rc1b073b7 rc030818 37 37 38 38 #define OFFSET_PC 0x00 39 #define OFFSET_IPL 0x0440 39 41 40 #endif -
kernel/arch/amd64/include/arch/context_struct.h
rc1b073b7 rc030818 39 39 #define CONTEXT_OFFSET_R15 0x38 40 40 #define CONTEXT_OFFSET_TP 0x40 41 #define CONTEXT_OFFSET_IPL 0x48 42 #define CONTEXT_SIZE 0x50 41 #define CONTEXT_SIZE 0x48 43 42 44 43 #ifndef __ASSEMBLER__ … … 60 59 uint64_t r15; 61 60 uint64_t tp; 62 ipl_t ipl;63 61 } context_t; 64 62 -
kernel/arch/arm64/include/arch/context_struct.h
rc1b073b7 rc030818 43 43 #define CONTEXT_OFFSET_X28 0x58 44 44 #define CONTEXT_OFFSET_X29 0x60 45 #define CONTEXT_OFFSET_IPL 0x68 46 #define CONTEXT_SIZE 0x70 45 #define CONTEXT_SIZE 0x68 47 46 48 47 #ifndef __ASSEMBLER__ … … 68 67 uint64_t x28; 69 68 uint64_t x29; 70 ipl_t ipl;71 69 } context_t; 72 70 -
kernel/arch/ia32/include/arch/context_struct.h
rc1b073b7 rc030818 37 37 #define CONTEXT_OFFSET_EBP 0x14 38 38 #define CONTEXT_OFFSET_TP 0x18 39 #define CONTEXT_OFFSET_IPL 0x1c 40 #define CONTEXT_SIZE 0x20 39 #define CONTEXT_SIZE 0x1c 41 40 42 41 #ifndef __ASSEMBLER__ … … 53 52 uint32_t ebp; 54 53 uint32_t tp; 55 ipl_t ipl;56 54 } context_t; 57 55 -
kernel/arch/ia64/include/arch/context_struct.h
rc1b073b7 rc030818 72 72 #define CONTEXT_OFFSET_F30 0x1d0 73 73 #define CONTEXT_OFFSET_F31 0x1e0 74 #define CONTEXT_OFFSET_IPL 0x1f0 75 #define CONTEXT_SIZE 0x200 74 #define CONTEXT_SIZE 0x1f0 76 75 77 76 #ifndef __ASSEMBLER__ … … 136 135 uint128_t f30; 137 136 uint128_t f31; 138 139 ipl_t ipl;140 137 } context_t; 141 138 -
kernel/arch/mips32/include/arch/context_struct.h
rc1b073b7 rc030818 43 43 #define CONTEXT_OFFSET_GP 0x2c 44 44 #define CONTEXT_OFFSET_TP 0x30 45 #define CONTEXT_OFFSET_IPL 0x34 46 #define CONTEXT_SIZE 0x38 45 #define CONTEXT_SIZE 0x34 47 46 48 47 #ifndef __ASSEMBLER__ … … 66 65 /* We use the K1 register for userspace thread pointer. */ 67 66 uint32_t tp; 68 ipl_t ipl;69 67 } context_t; 70 68 -
kernel/arch/ppc32/include/arch/context_struct.h
rc1b073b7 rc030818 53 53 #define CONTEXT_OFFSET_R31 0x54 54 54 #define CONTEXT_OFFSET_CR 0x58 55 #define CONTEXT_OFFSET_IPL 0x5c 56 #define CONTEXT_SIZE 0x60 55 #define CONTEXT_SIZE 0x5c 57 56 58 57 #ifndef __ASSEMBLER__ … … 84 83 uint32_t r31; 85 84 uint32_t cr; 86 ipl_t ipl;87 85 } context_t; 88 86 -
kernel/arch/riscv64/include/arch/context_struct.h
rc1b073b7 rc030818 46 46 #define CONTEXT_OFFSET_S10 0x70 47 47 #define CONTEXT_OFFSET_S11 0x78 48 #define CONTEXT_OFFSET_IPL 0x80 49 #define CONTEXT_SIZE 0x88 48 #define CONTEXT_SIZE 0x80 50 49 51 50 #ifndef __ASSEMBLER__ … … 70 69 uint64_t s10; 71 70 uint64_t s11; 72 ipl_t ipl;73 71 } context_t; 74 72 -
kernel/arch/sparc64/include/arch/context_struct.h
rc1b073b7 rc030818 49 49 #define CONTEXT_OFFSET_L7 0x88 50 50 #define CONTEXT_OFFSET_TP 0x90 51 #define CONTEXT_OFFSET_IPL 0x98 52 #define CONTEXT_SIZE 0xa0 51 #define CONTEXT_SIZE 0x98 53 52 54 53 #ifndef __ASSEMBLER__ … … 76 75 uint64_t l7; 77 76 uint64_t tp; // %g7 78 ipl_t ipl;79 77 } context_t; 80 78 -
kernel/generic/include/proc/thread.h
rc1b073b7 rc030818 95 95 */ 96 96 context_t saved_context; 97 ipl_t saved_ipl; 97 98 98 99 /** -
kernel/generic/src/proc/scheduler.c
rc1b073b7 rc030818 336 336 337 337 irq_spinlock_unlock(&THREAD->lock, false); 338 interrupts_restore(THREAD->saved_ context.ipl);338 interrupts_restore(THREAD->saved_ipl); 339 339 340 340 return; … … 347 347 * 348 348 */ 349 THREAD->saved_ context.ipl = ipl;349 THREAD->saved_ipl = ipl; 350 350 } 351 351 -
kernel/generic/src/proc/thread.c
rc1b073b7 rc030818 365 365 366 366 ipl_t ipl = interrupts_disable(); 367 thread->saved_ context.ipl = interrupts_read();367 thread->saved_ipl = interrupts_read(); 368 368 interrupts_restore(ipl); 369 369
Note:
See TracChangeset
for help on using the changeset viewer.