Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/ape/lib/ap/mips/setjmp.s

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


TEXT	setjmp(SB), 1, $-4
	MOVW	R29, (R1)
	MOVW	R31, 4(R1)
	MOVW	$0, R1
	RET

TEXT	sigsetjmp(SB), 1, $-4
	MOVW	savemask+4(FP), R2
	MOVW	R2, 0(R1)
	MOVW	$_psigblocked(SB), R2
	MOVW	R2, 4(R1)
	MOVW	R29, 8(R1)
	MOVW	R31, 12(R1)
	MOVW	$0, R1
	RET

TEXT	longjmp(SB), 1, $-4
	MOVW	r+4(FP), R3
	BNE	R3, ok		/* ansi: "longjmp(0) => longjmp(1)" */
	MOVW	$1, R3		/* bless their pointed heads */
ok:	MOVW	(R1), R29
	MOVW	4(R1), R31
	MOVW	R3, R1
	RET

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].