Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/mips/octeon_cop2_swtch.S
Show All 24 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
#include <machine/cpuregs.h> | #include <machine/cpuregs.h> | ||||
#include <machine/octeon_cop2.h> | #include <machine/octeon_cop2.h> | ||||
#include "assym.s" | #include "assym.inc" | ||||
.set noreorder | .set noreorder | ||||
#define SAVE_COP2_REGISTER(reg) \ | #define SAVE_COP2_REGISTER(reg) \ | ||||
dmfc2 t1, reg; sd t1, reg##_OFFSET(a0) | dmfc2 t1, reg; sd t1, reg##_OFFSET(a0) | ||||
#define RESTORE_COP2_REGISTER(reg) \ | #define RESTORE_COP2_REGISTER(reg) \ | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |