mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00: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
(cherry picked from commit d2bf8c544a
)
This commit is contained in:
parent
ef7c015020
commit
5a4382ed53
|
@ -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