Changeset b26396e in mainline for kernel/arch/arm32
- Timestamp:
- 2012-12-29T22:16:16Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 26e550c2
- Parents:
- ce60be1 (diff), b55877d (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/arm32
- Files:
-
- 2 deleted
- 6 edited
-
Makefile.inc (modified) (2 diffs)
-
include/fpu_context.h (modified) (1 diff)
-
include/mach/testarm/testarm.h (deleted)
-
src/exception.c (modified) (2 diffs)
-
src/mach/gta02/gta02.c (modified) (1 diff)
-
src/mach/testarm/testarm.c (deleted)
-
src/machine_func.c (modified) (2 diffs)
-
src/ras.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/Makefile.inc
rce60be1 rb26396e 52 52 arch/$(KARCH)/src/machine_func.c \ 53 53 arch/$(KARCH)/src/context.S \ 54 arch/$(KARCH)/src/fpu_context.c \55 54 arch/$(KARCH)/src/dummy.S \ 56 55 arch/$(KARCH)/src/cpu/cpu.c \ … … 69 68 arch/$(KARCH)/src/ras.c 70 69 70 ifeq ($(CONFIG_FPU),y) 71 ARCH_SOURCES += arch/$(KARCH)/src/fpu_context.c 72 endif 73 71 74 ifeq ($(MACHINE),gta02) 72 75 ARCH_SOURCES += arch/$(KARCH)/src/mach/gta02/gta02.c 73 endif74 75 ifeq ($(MACHINE),testarm)76 ARCH_SOURCES += arch/$(KARCH)/src/mach/testarm/testarm.c77 76 endif 78 77 -
kernel/arch/arm32/include/fpu_context.h
rce60be1 rb26396e 31 31 */ 32 32 /** @file 33 * @brief FPU context (not implemented). 34 * 35 * GXemul doesn't support FPU on its ARM CPU. 33 * @brief FPU context. 36 34 */ 37 35 -
kernel/arch/arm32/src/exception.c
rce60be1 rb26396e 167 167 static void undef_insn_exception(unsigned int exc_no, istate_t *istate) 168 168 { 169 if (!handle_if_fpu_exception()) { 170 fault_if_from_uspace(istate, "Undefined instruction."); 171 panic_badtrap(istate, exc_no, "Undefined instruction."); 172 } else { 169 #ifdef CONFIG_FPU 170 if (handle_if_fpu_exception()) { 173 171 /* 174 172 * Retry the failing instruction, … … 177 175 */ 178 176 istate->pc -= 4; 177 return; 179 178 } 179 #endif 180 fault_if_from_uspace(istate, "Undefined instruction."); 181 panic_badtrap(istate, exc_no, "Undefined instruction."); 180 182 } 181 183 -
kernel/arch/arm32/src/mach/gta02/gta02.c
rce60be1 rb26396e 27 27 */ 28 28 29 /** @addtogroup arm32g xemul29 /** @addtogroup arm32gta02 30 30 * @{ 31 31 */ -
kernel/arch/arm32/src/machine_func.c
rce60be1 rb26396e 41 41 #include <arch/mach/gta02/gta02.h> 42 42 #include <arch/mach/integratorcp/integratorcp.h> 43 #include <arch/mach/testarm/testarm.h>44 43 #include <arch/mach/beagleboardxm/beagleboardxm.h> 45 44 … … 52 51 #if defined(MACHINE_gta02) 53 52 machine_ops = >a02_machine_ops; 54 #elif defined(MACHINE_testarm)55 machine_ops = &gxemul_machine_ops;56 53 #elif defined(MACHINE_integratorcp) 57 54 machine_ops = &icp_machine_ops; -
kernel/arch/arm32/src/ras.c
rce60be1 rb26396e 67 67 void ras_check(unsigned int n, istate_t *istate) 68 68 { 69 bool restart = false; 69 bool restart_needed = false; 70 uintptr_t restart_pc = 0; 70 71 71 72 if (istate_from_uspace(istate)) { … … 73 74 if ((ras_page[RAS_START] < istate->pc) && 74 75 (ras_page[RAS_END] > istate->pc)) { 75 restart = true; 76 restart_needed = true; 77 restart_pc = ras_page[RAS_START]; 76 78 } 77 79 ras_page[RAS_START] = 0; … … 81 83 82 84 exc_dispatch(n, istate); 83 if (restart )84 istate->pc = r as_page[RAS_START];85 if (restart_needed) 86 istate->pc = restart_pc; 85 87 } 86 88
Note:
See TracChangeset
for help on using the changeset viewer.
