patch-2.4.0-test2 linux/arch/ia64/lib/flush.S

Next file: linux/arch/ia64/lib/idiv.S
Previous file: linux/arch/ia64/lib/do_csum.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/arch/ia64/lib/flush.S linux/arch/ia64/lib/flush.S
@@ -1,9 +1,10 @@
 /*
  * Cache flushing routines.
  *
- * Copyright (C) 1999 Hewlett-Packard Co
- * Copyright (C) 1999 David Mosberger-Tang <davidm@hpl.hp.com>
+ * Copyright (C) 1999-2000 Hewlett-Packard Co
+ * Copyright (C) 1999-2000 David Mosberger-Tang <davidm@hpl.hp.com>
  */
+#include <asm/asmmacro.h>
 #include <asm/page.h>
 
 	.text
@@ -11,12 +12,14 @@
 	.psr lsb
 	.lsb
 
-	.align 16
-	.global ia64_flush_icache_page
-	.proc ia64_flush_icache_page
-ia64_flush_icache_page:
+GLOBAL_ENTRY(ia64_flush_icache_page)
+	UNW(.prologue)
 	alloc r2=ar.pfs,1,0,0,0
+	UNW(.save ar.lc, r3)
 	mov r3=ar.lc			// save ar.lc	
+
+	.body
+
 	mov r8=PAGE_SIZE/64-1		// repeat/until loop
 	;;
 	mov ar.lc=r8
@@ -34,4 +37,4 @@
 	;;	
 	mov ar.lc=r3			// restore ar.lc
 	br.ret.sptk.few rp
-	.endp ia64_flush_icache_page
+END(ia64_flush_icache_page)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)