Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Mar 24-27, 2025, special US time zones
Register
Loading...
v3.1
 1/*
 2 * locore.S
 3 */
 4#include <asm/asm.h>
 5#include <asm/regdef.h>
 6#include <asm/mipsregs.h>
 7
 8	.text
 9
10/*
11 * Simple general exception handling routine. This one is used for the
12 * Memory sizing routine for pmax machines. HK
13 */
14
15NESTED(genexcept_early, 0, sp)
16	.set	noat
17	.set	noreorder
18
19	mfc0	k0, CP0_STATUS
20	la	k1, mem_err
21
22	sw	k0, 0(k1)
23
24	mfc0	k0, CP0_EPC
25	nop
26	addiu	k0, 4		# skip the causing instruction
27	jr	k0
28	 rfe
29END(genexcept_early)
v3.15
 1/*
 2 * locore.S
 3 */
 4#include <asm/asm.h>
 5#include <asm/regdef.h>
 6#include <asm/mipsregs.h>
 7
 8	.text
 9
10/*
11 * Simple general exception handling routine. This one is used for the
12 * Memory sizing routine for pmax machines. HK
13 */
14
15NESTED(genexcept_early, 0, sp)
16	.set	noat
17	.set	noreorder
18
19	mfc0	k0, CP0_STATUS
20	la	k1, mem_err
21
22	sw	k0, 0(k1)
23
24	mfc0	k0, CP0_EPC
25	nop
26	addiu	k0, 4		# skip the causing instruction
27	jr	k0
28	 rfe
29END(genexcept_early)