[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
tss.c File Reference
#include "userprog/tss.h"
#include <debug.h>
#include <stddef.h>
#include "userprog/gdt.h"
#include "threads/thread.h"
#include "threads/palloc.h"
#include "threads/vaddr.h"
#include "intrinsic.h"
Include dependency graph for tss.c:

Functions

void tss_init (void)
 
struct task_statetss_get (void)
 
void tss_update (struct thread *next)
 

Variables

struct task_statetss
 

Function Documentation

◆ tss_get()

struct task_state * tss_get ( void  )
63 {
64 ASSERT (tss != NULL);
65 return tss;
66}
#define ASSERT(CONDITION)
Definition: debug.h:30
#define NULL
Definition: stddef.h:4
struct task_state * tss
Definition: tss.c:49
Here is the caller graph for this function:

◆ tss_init()

void tss_init ( void  )
53 {
54 /* Our TSS is never used in a call gate or task gate, so only a
55 * few fields of it are ever referenced, and those are the only
56 * ones we initialize. */
59}
@ PAL_ZERO
Definition: palloc.h:10
@ PAL_ASSERT
Definition: palloc.h:9
void * palloc_get_page(enum palloc_flags)
Definition: palloc.c:301
struct thread * thread_current(void)
Definition: thread.c:301
void tss_update(struct thread *next)
Definition: tss.c:71
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tss_update()

void tss_update ( struct thread next)
71 {
72 ASSERT (tss != NULL);
74}
static int next(int pos)
Definition: intq.c:74
unsigned long long int uint64_t
Definition: stdint.h:29
uint64_t rsp0
Definition: tss.h:9
#define PGSIZE
Definition: vaddr.h:20
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ tss

struct task_state* tss