shithub: loong

ref: 8287e0cd29d9afdb41efa029705644f8427cf53a
dir: /sys/src/boot/efi/loong.s/

View raw version
TEXT start(SB), $-8
	// TODO: Rebase
	JMP	efimain(SB)

TEXT rebase(SB), $-8

TEXT eficall(SB), $-8
	MOVV	R4,	R12
	MOVV	0x08(FP), R4
	MOVV	0x10(FP), R5
	MOVV	0x18(FP), R6
	MOVV	0x20(FP), R7
	MOVV	0x28(FP), R8
	MOVV	0x30(FP), R9
	MOVV	0x38(FP), R10
	MOVV	0x40(FP), R11
	JMP	(R12)

TEXT jump(SB), $-8
	MOVV	R4, R7
	MOVV	0x08(FP), R4
	JMP	(R7)

GLOBL	confaddr(SB), $8
GLOBL	argsbuf<>(SB), $0x1000