Changeset f14291b in mainline for kernel/arch/mips32/include
- Timestamp:
- 2010-10-19T20:55:53Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a93d79a
- Parents:
- 1882525 (diff), a7a85d16 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/arch/mips32/include
- Files:
-
- 2 edited
- 1 moved
-
context_offset.h (modified) (1 diff)
-
exception.h (modified) (4 diffs)
-
smp/dorder.h (moved) (moved from uspace/lib/net/include/netif_nil_bundle.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/context_offset.h
r1882525 rf14291b 60 60 # define OFFSET_F30 0x5c 61 61 #endif /* KERNEL */ 62 63 /* istate_t */64 #define EOFFSET_AT 0x065 #define EOFFSET_V0 0x466 #define EOFFSET_V1 0x867 #define EOFFSET_A0 0xc68 #define EOFFSET_A1 0x1069 #define EOFFSET_A2 0x1470 #define EOFFSET_A3 0x1871 #define EOFFSET_T0 0x1c72 #define EOFFSET_T1 0x2073 #define EOFFSET_T2 0x2474 #define EOFFSET_T3 0x2875 #define EOFFSET_T4 0x2c76 #define EOFFSET_T5 0x3077 #define EOFFSET_T6 0x3478 #define EOFFSET_T7 0x3879 #define EOFFSET_T8 0x3c80 #define EOFFSET_T9 0x4081 #define EOFFSET_GP 0x4482 #define EOFFSET_SP 0x4883 #define EOFFSET_RA 0x4c84 #define EOFFSET_LO 0x5085 #define EOFFSET_HI 0x5486 #define EOFFSET_STATUS 0x5887 #define EOFFSET_EPC 0x5c88 #define EOFFSET_K1 0x6089 #define REGISTER_SPACE 104 /* respect stack alignment */90 62 91 63 #ifdef __ASM__ -
kernel/arch/mips32/include/exception.h
r1882525 rf14291b 60 60 61 61 typedef struct istate { 62 /* 63 * The first seven registers are arranged so that the istate structure 64 * can be used both for exception handlers and for the syscall handler. 65 */ 66 uint32_t a0; /* arg1 */ 67 uint32_t a1; /* arg2 */ 68 uint32_t a2; /* arg3 */ 69 uint32_t a3; /* arg4 */ 70 uint32_t t0; /* arg5 */ 71 uint32_t t1; /* arg6 */ 72 uint32_t v0; /* arg7 */ 73 uint32_t v1; 62 74 uint32_t at; 63 uint32_t v0;64 uint32_t v1;65 uint32_t a0;66 uint32_t a1;67 uint32_t a2;68 uint32_t a3;69 uint32_t t0;70 uint32_t t1;71 75 uint32_t t2; 72 76 uint32_t t3; … … 75 79 uint32_t t6; 76 80 uint32_t t7; 81 uint32_t s0; 82 uint32_t s1; 83 uint32_t s2; 84 uint32_t s3; 85 uint32_t s4; 86 uint32_t s5; 87 uint32_t s6; 88 uint32_t s7; 77 89 uint32_t t8; 78 90 uint32_t t9; 91 uint32_t kt0; 92 uint32_t kt1; /* We use it as thread-local pointer */ 79 93 uint32_t gp; 80 94 uint32_t sp; 95 uint32_t s8; 81 96 uint32_t ra; 82 97 … … 84 99 uint32_t hi; 85 100 86 uint32_t status; /* cp0_status */ 87 uint32_t epc; /* cp0_epc */ 88 uint32_t k1; /* We use it as thread-local pointer */ 101 uint32_t status; /* cp0_status */ 102 uint32_t epc; /* cp0_epc */ 103 104 uint32_t alignment; /* to make sizeof(istate_t) a multiple of 8 */ 89 105 } istate_t; 90 106 … … 108 124 NO_TRACE static inline unative_t istate_get_fp(istate_t *istate) 109 125 { 110 /* FIXME */ 111 112 return 0; 126 return istate->sp; 113 127 } 114 128 -
kernel/arch/mips32/include/smp/dorder.h
r1882525 rf14291b 1 1 /* 2 * Copyright (c) 20 10Martin Decky2 * Copyright (c) 2007 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup netif_standalone 30 * @{ 29 /** @addtogroup mips32 30 * @{ 31 */ 32 /** @file 31 33 */ 32 34 33 #ifndef __NETIF_NIL_BUNDLE_H__34 #define __NETIF_NIL_BUNDLE_H__35 #ifndef KERN_mips32_DORDER_H_ 36 #define KERN_mips32_DORDER_H_ 35 37 36 #include <ipc/ipc.h> 37 #include <async.h> 38 #include <typedefs.h> 38 39 39 extern int netif_nil_module_message(const char *, ipc_callid_t, ipc_call_t *, 40 ipc_call_t *, int *); 41 extern int netif_nil_module_start(async_client_conn_t); 40 extern uint32_t dorder_cpuid(void); 41 extern void dorder_ipi_ack(uint32_t); 42 42 43 43 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
