mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
riscv: Make machine/regs.h self-contained
Make sys/reg.h self-contained by making riscv's machine/reg.h self-contained. Sponsored by: Netflix
This commit is contained in:
parent
8ee8271e22
commit
d2bf8c544a
1 changed files with 13 additions and 11 deletions
|
|
@ -37,21 +37,23 @@
|
|||
#ifndef _MACHINE_REG_H_
|
||||
#define _MACHINE_REG_H_
|
||||
|
||||
#include <sys/_types.h>
|
||||
|
||||
struct reg {
|
||||
uint64_t ra; /* return address */
|
||||
uint64_t sp; /* stack pointer */
|
||||
uint64_t gp; /* global pointer */
|
||||
uint64_t tp; /* thread pointer */
|
||||
uint64_t t[7]; /* temporaries */
|
||||
uint64_t s[12]; /* saved registers */
|
||||
uint64_t a[8]; /* function arguments */
|
||||
uint64_t sepc; /* exception program counter */
|
||||
uint64_t sstatus; /* status register */
|
||||
__uint64_t ra; /* return address */
|
||||
__uint64_t sp; /* stack pointer */
|
||||
__uint64_t gp; /* global pointer */
|
||||
__uint64_t tp; /* thread pointer */
|
||||
__uint64_t t[7]; /* temporaries */
|
||||
__uint64_t s[12]; /* saved registers */
|
||||
__uint64_t a[8]; /* function arguments */
|
||||
__uint64_t sepc; /* exception program counter */
|
||||
__uint64_t sstatus; /* status register */
|
||||
};
|
||||
|
||||
struct fpreg {
|
||||
uint64_t fp_x[32][2]; /* Floating point registers */
|
||||
uint64_t fp_fcsr; /* Floating point control reg */
|
||||
__uint64_t fp_x[32][2]; /* Floating point registers */
|
||||
__uint64_t fp_fcsr; /* Floating point control reg */
|
||||
};
|
||||
|
||||
struct dbreg {
|
||||
|
|
|
|||
Loading…
Reference in a new issue