Changeset 0c27956 in mainline
- Timestamp:
- 2018-08-02T16:25:48Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7cd7a8d
- Parents:
- 3b10ae36
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-02 16:24:22)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-02 16:25:48)
- Location:
- kernel/arch/sparc64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/arch/context_struct.h
r3b10ae36 r0c27956 48 48 #define CONTEXT_OFFSET_L6 0x80 49 49 #define CONTEXT_OFFSET_L7 0x88 50 #define CONTEXT_OFFSET_IPL 0x90 51 #define CONTEXT_SIZE 0x98 50 #define CONTEXT_OFFSET_TP 0x90 51 #define CONTEXT_OFFSET_IPL 0x98 52 #define CONTEXT_SIZE 0xa0 52 53 53 54 #ifndef __ASSEMBLER__ … … 74 75 uint64_t l6; 75 76 uint64_t l7; 77 uint64_t tp; // %g7 76 78 ipl_t ipl; 77 79 } context_t; -
kernel/arch/sparc64/src/context.S
r3b10ae36 r0c27956 63 63 stx %l6, [%o0 + CONTEXT_OFFSET_L6] 64 64 stx %l7, [%o0 + CONTEXT_OFFSET_L7] 65 stx %g7, [%o0 + CONTEXT_OFFSET_TP] 65 66 retl 66 67 mov 1, %o0 ! context_save_arch returns 1 … … 103 104 ldx [%o0 + CONTEXT_OFFSET_L6], %l6 104 105 ldx [%o0 + CONTEXT_OFFSET_L7], %l7 106 ldx [%o0 + CONTEXT_OFFSET_TP], %g7 105 107 retl 106 108 xor %o0, %o0, %o0 ! context_restore_arch returns 0
Note:
See TracChangeset
for help on using the changeset viewer.