File:  [XINU] / xinu / sys / pssfuncts.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:39 2018 UTC (8 years, 3 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010

DISABLE	=	0x2700
	.data
	.text
	.globl	__disable
__disable:
	movl	a0,	sp@-
	movl	sp@(8),	a0
	movw	sr,	a0@
	movw	#DISABLE,sr
	movl	sp@+,	a0
	rts

	.globl __restore
__restore:
	movl	a0,	sp@-
	movl	sp@(8),	a0
	movw	a0@,	sr
	movl	sp@+,	a0
	rts

|for initial lowering of priority, after device initialization--

LOWPRI	=	0x2000

	.globl	_setlowpri

_setlowpri:
	movw	#LOWPRI,sr	| set CPU SR register to 0x2000
	rts


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.