diff packages/hal/powerpc/arch/current/src/vectors.S @ 16:4f2df4ab82c8 ecos-sw-1999-06-18

Merge from eCos master repository on 1999-06-18-15:25:04-BST
author jlarmour
date Fri, 18 Jun 1999 07:59:09 +0000
parents 01ce82f3e11a
children 7253dcc42a09
line wrap: on
line diff
--- a/packages/hal/powerpc/arch/current/src/vectors.S
+++ b/packages/hal/powerpc/arch/current/src/vectors.S
@@ -52,11 +52,6 @@
 #include "cyg/hal/ppc_regs.h"        
 #include "cyg/hal/ppc.inc"
 
-#define FUNC_START(name)        \
-        .type name,@function;   \
-        .globl name;            \
-name:   
-
 #===========================================================================
                 
         .file   "vectors.S"
@@ -81,7 +76,11 @@ name:
 
 #define CYG_MSR_COMMON (MSR_FP | MSR_ME | MSR_IR | MSR_DR | MSR_RI)
 #if defined(CYG_HAL_STARTUP_ROM) || defined(CYG_HAL_STARTUP_STUBS)
-#define CYG_MSR (CYG_MSR_COMMON | MSR_IP)
+# ifdef CYG_HAL_POWERPC_COPY_VECTORS
+#  define CYG_MSR CYG_MSR_COMMON
+# else
+#  define CYG_MSR (CYG_MSR_COMMON | MSR_IP)
+# endif
 #endif
 #ifdef CYG_HAL_STARTUP_RAM      
 #define CYG_MSR CYG_MSR_COMMON
@@ -93,7 +92,6 @@ name:
 #define CYG_MSR (CYG_MSR_COMMON & ~(MSR_IR | MSR_DR))
 #endif
 
-
 #===========================================================================
 # If the following option is enabled, we only save registers up to R12.
 # The PowerPC ABI defines registers 13..31 as callee saved and thus we do
@@ -244,6 +242,10 @@ rom_vectors_end:
         # Disable special MPC8xx "development support" which
 	# suppresses trace exceptions. The CPU seems to hang, not 
         # executing from offset 0x1e00(?) as expected.
+
+        lwi	r3,0x00000007
+        mtspr	ICTRL,r3
+
         li      r3,0
         mtspr   DER, r3
 #endif
@@ -260,7 +262,7 @@ rom_vectors_end:
         # Call platform specific hardware initialization
         # This may include memory controller initialization. It is not
         # safe to access RAM until after this point.
-        bl      hal_hardware_init
+        bl      hal_hardware_init	# this is platform dependent
 
         # set up stack
         lwi     sp,__interrupt_stack
@@ -368,7 +370,6 @@ 2:
         bl      initialize_stub
 #endif
 
-	
         .extern cyg_start
         bl      cyg_start                       # call cyg_start
 9: