[U-Boot-Users] [PATCH] pxa-interrupt

Robert Schwebel robert at schwebel.de
Sat May 15 16:56:45 CEST 2004


ChangeLog: 

* Patch by Robert Schwebel, 14 May 2004:
  get_timer() is supposed to return the difference 
  between "now" and a "base". 

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hornemannstraße 12,  31137 Hildesheim, Germany
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
-------------- next part --------------
# 
# Author:       Robert Schwebel <r.schwebel at pengutronix.de>
# 
# Description:	ChangeLog: 
#		* Patch by Robert Schwebel, 14 May 2004:
#		  get_timer() is supposed to return the difference 
#		  between "now" and a "base". 
#
# State:        2004-05-15: submitted
#

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- u-boot-patches/cpu/pxa/interrupts.c~pxainterrupt	2003-12-07 23:18:41.000000000 +0100
+++ u-boot-patches/cpu/pxa/interrupts.c	2003-12-09 08:53:02.000000000 +0100
@@ -165,7 +165,7 @@
 
 ulong get_timer (ulong base)
 {
-	return get_timer_masked ();
+	return get_timer_masked () - base;
 }
 
 void set_timer (ulong t)


More information about the U-Boot mailing list