Changeset b8230b9 in mainline for kernel/arch/mips32
- Timestamp:
- 2010-05-22T22:20:37Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d354d57
- Parents:
- 3d6beaa
- Location:
- kernel/arch/mips32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/asm.h
r3d6beaa rb8230b9 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ -
kernel/arch/mips32/include/debug.h
r3d6beaa rb8230b9 36 36 #define KERN_mips23_DEBUG_H_ 37 37 38 /** simulator enters the trace mode */ 39 #define ___traceon() asm volatile ( "\t.word\t0x39\n"); 40 /** simulator leaves the trace mode */ 41 #define ___traceoff() asm volatile ( "\t.word\t0x3d\n"); 42 /** register dump */ 43 #define ___regview() asm volatile ( "\t.word\t0x37\n"); 44 /** halt the simulator */ 45 #define ___halt() asm volatile ( "\t.word\t0x28\n"); 46 /** simulator enters interactive mode */ 47 #define ___intmode() asm volatile ( "\t.word\t0x29\n"); 38 /** Enter the simulator trace mode */ 39 #define ___traceon() asm volatile ( "\t.word\t0x39\n"); 40 41 /** Leave the simulator trace mode */ 42 #define ___traceoff() asm volatile ( "\t.word\t0x3d\n"); 43 44 /** Ask the simulator to dump registers */ 45 #define ___regview() asm volatile ( "\t.word\t0x37\n"); 46 47 /** Halt the simulator */ 48 #define ___halt() asm volatile ( "\t.word\t0x28\n"); 49 50 /** Enter the simulator interactive mode */ 51 #define ___intmode() asm volatile ( "\t.word\t0x29\n"); 48 52 49 53 #endif -
kernel/arch/mips32/src/context.S
r3d6beaa rb8230b9 28 28 29 29 #include <arch/context_offset.h> 30 31 .text 30 31 .text 32 32 33 33 .set noat … … 38 38 .global context_restore_arch 39 39 40 41 40 context_save_arch: 42 41 CONTEXT_SAVE_ARCH_CORE $a0 43 42 44 43 # context_save returns 1 45 44 j $31 46 li $2, 1 47 45 li $2, 1 46 48 47 context_restore_arch: 49 48 CONTEXT_RESTORE_ARCH_CORE $a0 50 49 51 50 # context_restore returns 0 52 51 j $31 53 xor $2, $2 52 xor $2, $2
Note:
See TracChangeset
for help on using the changeset viewer.