Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/stand/common GC cpu_number() and turn alpha_p...



details:   https://anonhg.NetBSD.org/src/rev/9eae43b04448
branches:  trunk
changeset: 467920:9eae43b04448
user:      cgd <cgd%NetBSD.org@localhost>
date:      Wed Mar 31 03:04:21 1999 +0000

description:
GC cpu_number() and turn alpha_pal_imb() into inline assembler.

diffstat:

 sys/arch/alpha/stand/common/common.h |   5 +++--
 sys/arch/alpha/stand/common/start.S  |  19 +------------------
 2 files changed, 4 insertions(+), 20 deletions(-)

diffs (46 lines):

diff -r 8655560d6d11 -r 9eae43b04448 sys/arch/alpha/stand/common/common.h
--- a/sys/arch/alpha/stand/common/common.h      Wed Mar 31 03:03:01 1999 +0000
+++ b/sys/arch/alpha/stand/common/common.h      Wed Mar 31 03:04:21 1999 +0000
@@ -1,9 +1,10 @@
-/*     $NetBSD: common.h,v 1.4 1999/03/27 09:01:28 ross Exp $  */
+/*     $NetBSD: common.h,v 1.5 1999/03/31 03:04:21 cgd Exp $   */
+
+#define        alpha_pal_imb() __asm__("imb")
 
 void init_prom_calls __P((void));
 void OSFpal __P((void));
 void halt __P((void));
 u_int64_t prom_dispatch __P((int, ...));
-int cpu_number __P((void));
 void switch_palcode __P((void));
 void close_primary_device __P((int));
diff -r 8655560d6d11 -r 9eae43b04448 sys/arch/alpha/stand/common/start.S
--- a/sys/arch/alpha/stand/common/start.S       Wed Mar 31 03:03:01 1999 +0000
+++ b/sys/arch/alpha/stand/common/start.S       Wed Mar 31 03:04:21 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: start.S,v 1.6 1999/03/31 03:03:01 cgd Exp $ */
+/* $NetBSD: start.S,v 1.7 1999/03/31 03:04:21 cgd Exp $ */
 
 /*  
  * Mach Operating System
@@ -68,20 +68,3 @@
 XLEAF(halt, 0)
        call_pal PAL_halt               /* halt if we ever return */
 END(start)
-
-/*
- * cpu_number
- *     Return the cpu number, using the whami instruction.
- */
-LEAF(cpu_number, 0)
-       call_pal PAL_VMS_mfpr_whami
-       RET
-END(cpu_number)
-/*
- * Execute Instruction Memory Barrier operation from the Common
- * Palcode Architecture. Establishes I-Cache coherency point.
- */
-LEAF(alpha_pal_imb, 0)
-       imb
-       RET
-END(alpha_pal_imb);



Home | Main Index | Thread Index | Old Index