Files
NJU_PA/nanos-lite/include/proc.h
zzy dfc38f6525 NJU-ProjectN/nanos-lite ics2021 initialized
NJU-ProjectN/nanos-lite 2a141760e31be246a7316942293a97873925bc2f Makefile: use header files in newlib-navy
2024-09-21 17:15:02 +08:00

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