mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Make it possible to include this file in assembler .S sources.
This commit is contained in:
parent
369149e740
commit
5b1402e5e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249882
@ -42,20 +42,7 @@
|
||||
#ifndef _MACHINE_PCB_H_
|
||||
#define _MACHINE_PCB_H_
|
||||
|
||||
#include <machine/frame.h>
|
||||
|
||||
/*
|
||||
* MIPS process control block
|
||||
*/
|
||||
struct pcb
|
||||
{
|
||||
struct trapframe pcb_regs; /* saved CPU and registers */
|
||||
__register_t pcb_context[14]; /* kernel context for resume */
|
||||
void *pcb_onfault; /* for copyin/copyout faults */
|
||||
register_t pcb_tpc;
|
||||
};
|
||||
|
||||
/* these match the regnum's in regnum.h
|
||||
* used by switch.S
|
||||
*/
|
||||
#define PCB_REG_S0 0
|
||||
@ -73,6 +60,19 @@ struct pcb
|
||||
#define PCB_REG_GP 12
|
||||
#define PCB_REG_PC 13
|
||||
|
||||
#ifndef LOCORE
|
||||
#include <machine/frame.h>
|
||||
|
||||
/*
|
||||
* MIPS process control block
|
||||
*/
|
||||
struct pcb
|
||||
{
|
||||
struct trapframe pcb_regs; /* saved CPU and registers */
|
||||
__register_t pcb_context[14]; /* kernel context for resume */
|
||||
void *pcb_onfault; /* for copyin/copyout faults */
|
||||
register_t pcb_tpc;
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
extern struct pcb *curpcb; /* the current running pcb */
|
||||
@ -80,5 +80,6 @@ extern struct pcb *curpcb; /* the current running pcb */
|
||||
void makectx(struct trapframe *, struct pcb *);
|
||||
int savectx(struct pcb *) __returns_twice;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* !_MACHINE_PCB_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user