summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/include/asm.h
blob: 23aea15691184f19b60376a2850d92609a56b830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*	$OpenBSD: asm.h,v 1.2 2009/09/30 06:22:00 syuu Exp $ */

/* Use Mips generic include file */

#ifdef MULTIPROCESSOR
#define HW_CPU_NUMBER(reg)			\
	LA reg, HW_CPU_NUMBER_REG;		\
	PTR_L reg, 0(reg)
#else  /* MULTIPROCESSOR */
#define HW_CPU_NUMBER(reg)			\
	LI reg, 0
#endif /* MULTIPROCESSOR */

#include <mips64/asm.h>