[OpenBIOS] [commit] r977 - trunk/openbios-devel/arch/ppc

repository service svn at openbios.org
Sun Nov 28 14:13:38 CET 2010


Author: afaerber
Date: Sun Nov 28 14:13:38 2010
New Revision: 977
URL: http://tracker.coreboot.org/trac/openbios/changeset/977

Log:
ppc: Create some more function descriptors for ppc64

Fix an error in generic ppc code as well. Reported by Blue.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Acked-by: Blue Swirl <blauwirbel at gmail.com>

Modified:
   trunk/openbios-devel/arch/ppc/timebase.S

Modified: trunk/openbios-devel/arch/ppc/timebase.S
==============================================================================
--- trunk/openbios-devel/arch/ppc/timebase.S	Sun Nov 28 12:40:42 2010	(r976)
+++ trunk/openbios-devel/arch/ppc/timebase.S	Sun Nov 28 14:13:38 2010	(r977)
@@ -4,7 +4,7 @@
 /*
  * unsigned long long _get_ticks(void);
  */
-GLOBL(_get_ticks):
+_GLOBAL(_get_ticks):
 1:      mftbu   r3
         mftb    r4
         mftbu   r5
@@ -15,16 +15,16 @@
 /*
  * Delay for a number of ticks
  */
-GLOBL(_wait_ticks):
+_GLOBAL(_wait_ticks):
         mflr    r8              /* save link register */
         mr      r7, r3          /* save tick count */
-        bl      _get_ticks       /* Get start time */
+        bl      BRANCH_LABEL(_get_ticks)       /* Get start time */
 
         /* Calculate end time */
         addc    r7, r4, r7      /* Compute end time lower */
         addze   r6, r3          /*     and end time upper */
 
-1:      bl      _get_ticks       /* Get current time */
+1:      bl      BRANCH_LABEL(_get_ticks)       /* Get current time */
         subfc   r4, r4, r7      /* Subtract current time from end time */
         subfe.  r3, r3, r6
         bge     1b              /* Loop until time expired */



More information about the OpenBIOS mailing list