diff packages/hal/powerpc/arch/current/src/vectors.S @ 423:d175f4be3ab6

Support for application profiling.
author gthomas
date Thu, 14 Nov 2002 23:36:48 +0000
parents d2c90368aeef
children 87f3e026b015
line wrap: on
line diff
--- a/packages/hal/powerpc/arch/current/src/vectors.S
+++ b/packages/hal/powerpc/arch/current/src/vectors.S
@@ -9,6 +9,7 @@
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2002 Gary Thomas
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -744,6 +745,7 @@ 2:      stwu    r14,-4(sp)              
         lwi     r4,hal_interrupt_data           # get interrupt data table
         lwzx    r4,r4,r15                       # load data pointer
                                                 # R4 = data argument
+        mr      r5,r14                          # R5 = saved registers        
         
         mtctr   r6                              # put isr address in ctr