From bc85fd5a6df8753543ba55c98a588e255471752b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Jul 2000 19:31:04 +0000 Subject: Reworked score/cpu/i960 so it can be safely compiled multilib. All routines and structures that require CPU model specific information are now in libcpu. This required significant rework of the score/cpu header files and the creation of multiple header files and subdirectories in libcpu/i960. --- cpukit/score/cpu/i960/cpu_asm.S | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) (limited to 'cpukit/score/cpu/i960/cpu_asm.S') diff --git a/cpukit/score/cpu/i960/cpu_asm.S b/cpukit/score/cpu/i960/cpu_asm.S index 88b07a5b45..f78c1ac15d 100644 --- a/cpukit/score/cpu/i960/cpu_asm.S +++ b/cpukit/score/cpu/i960/cpu_asm.S @@ -1,7 +1,5 @@ -/* cpu_asm.s - * - * This file contains all assembly code for the i960CA implementation - * of RTEMS. +/* + * This file contains all assembly code for the i960 port of RTEMS. * * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). @@ -13,12 +11,6 @@ * $Id$ */ .data - .align 4 -_soft_reset_reg_save: - .word 0 - .word 0 - .word 0 - .word 0 _ISR_reg_save: .word 0 .word 0 @@ -217,30 +209,3 @@ __ISR_Dispatch: movq r12,g4 ret - -#if !defined(__i960KA__) -/*PAGE - * - * void __i960_soft_reset_asm - * - * Flush the register cache and save the important (fp, pfp, sp) registers, - * which are clobbered by the reinit operation. (Not documented, but it happens). - */ - - .globl __i960_soft_reset_asm -__i960_soft_reset_asm: - flushreg # flush register cache - mov fp, r4 - mov pfp, r5 - mov sp, r6 - stt r4, _soft_reset_reg_save # save fp, pfp, sp - lda __i960_reset_done, r4 - ldconst 0x300, r5 - sysctl r5, r4, g0 # reinit: clobbers almost all registers -__i960_reset_done: - ldt _soft_reset_reg_save, r4 # restore fp, pfp, sp - mov r4, fp - mov r5, pfp - mov r6, sp - ret -#endif -- cgit v1.2.3