Ignore:
Timestamp:
2023-02-05T14:43:59Z (19 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Move saved interrupt level from context_t to thread_t

Unlike the rest of the context structure, ipl is not
a register, and is (re)stored using a separate mechanism from
context_set()/_restore(). Therefore, it does not belong there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arch/context_struct.h

    rc1b073b7 rc030818  
    4343#define CONTEXT_OFFSET_GP  0x2c
    4444#define CONTEXT_OFFSET_TP  0x30
    45 #define CONTEXT_OFFSET_IPL 0x34
    46 #define CONTEXT_SIZE       0x38
     45#define CONTEXT_SIZE       0x34
    4746
    4847#ifndef __ASSEMBLER__
     
    6665        /* We use the K1 register for userspace thread pointer. */
    6766        uint32_t tp;
    68         ipl_t ipl;
    6967} context_t;
    7068
Note: See TracChangeset for help on using the changeset viewer.