GC cpu_number() and turn alpha_pal_imb() into inline assembler.
This commit is contained in:
parent
51a85dabbb
commit
3665d82d1a
|
@ -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));
|
||||
|
|
|
@ -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(_rtt, 0)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue