NJU-ProjectN/nanos-lite 2a141760e31be246a7316942293a97873925bc2f Makefile: use header files in newlib-navy
22 lines
358 B
C
22 lines
358 B
C
#ifndef __PROC_H__
|
|
#define __PROC_H__
|
|
|
|
#include <common.h>
|
|
#include <memory.h>
|
|
|
|
#define STACK_SIZE (8 * PGSIZE)
|
|
|
|
typedef union {
|
|
uint8_t stack[STACK_SIZE] PG_ALIGN;
|
|
struct {
|
|
Context *cp;
|
|
AddrSpace as;
|
|
// we do not free memory, so use `max_brk' to determine when to call _map()
|
|
uintptr_t max_brk;
|
|
};
|
|
} PCB;
|
|
|
|
extern PCB *current;
|
|
|
|
#endif
|