[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
init.h
Go to the documentation of this file.
1#ifndef THREADS_INIT_H
2#define THREADS_INIT_H
3
4#include <debug.h>
5#include <stdbool.h>
6#include <stddef.h>
7#include <stdint.h>
8
9/* Physical memory size, in 4 kB pages. */
10extern size_t ram_pages;
11
12/* Page map level 4 with kernel mappings only. */
13extern uint64_t *base_pml4;
14
15/* -q: Power off when kernel tasks complete? */
16extern bool power_off_when_done;
17
18void power_off (void) NO_RETURN;
19
20#endif /* threads/init.h */
#define NO_RETURN
Definition: debug.h:8
size_t ram_pages
bool power_off_when_done
Definition: init.c:50
uint64_t * base_pml4
Definition: init.c:42
void power_off(void) NO_RETURN
Definition: init.c:340
unsigned long long int uint64_t
Definition: stdint.h:29