[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
init.h File Reference
#include <debug.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for init.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void power_off (void) NO_RETURN
 

Variables

size_t ram_pages
 
uint64_tbase_pml4
 
bool power_off_when_done
 

Function Documentation

◆ power_off()

void power_off ( void  )
340 {
341#ifdef FILESYS
342 filesys_done ();
343#endif
344
345 print_stats ();
346
347 printf ("Powering off...\n");
348 outw (0x604, 0x2000); /* Poweroff command for qemu */
349 for (;;);
350}
void filesys_done(void)
Definition: filesys.c:47
static void print_stats(void)
Definition: init.c:354
static void outw(uint16_t port, uint16_t data)
Definition: io.h:127
int printf(const char *,...) PRINTF_FORMAT(1
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ base_pml4

uint64_t* base_pml4
extern

◆ power_off_when_done

bool power_off_when_done
extern

◆ ram_pages

size_t ram_pages
extern