[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
inspect.c File Reference
#include "threads/interrupt.h"
#include "threads/thread.h"
#include "threads/mmu.h"
#include "vm/inspect.h"
Include dependency graph for inspect.c:

Functions

static void inspect (struct intr_frame *f)
 
void register_inspect_intr (void)
 

Function Documentation

◆ inspect()

static void inspect ( struct intr_frame f)
static
10 {
11 const void *va = (const void *) f->R.rax;
12 f->R.rax = PTE_ADDR (pml4_get_page (thread_current ()->pml4, va));
13}
void * pml4_get_page(uint64_t *pml4, const void *upage)
Definition: mmu.c:214
#define PTE_ADDR(pte)
Definition: pte.h:29
uint64_t rax
Definition: interrupt.h:34
struct gp_registers R
Definition: interrupt.h:40
struct thread * thread_current(void)
Definition: thread.c:301
Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_inspect_intr()

void register_inspect_intr ( void  )
21 {
22 intr_register_int (0x42, 3, INTR_OFF, inspect, "Inspect Virtual Memory");
23}
static void inspect(struct intr_frame *f)
Definition: inspect.c:10
@ INTR_OFF
Definition: interrupt.h:9
void intr_register_int(uint8_t vec, int dpl, enum intr_level, intr_handler_func *, const char *name)
Definition: interrupt.c:248
Here is the call graph for this function:
Here is the caller graph for this function: