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

Go to the source code of this file.

Classes

struct  task_state
 

Functions

struct task_state __attribute__ ((packed))
 
void tss_init (void)
 
struct task_statetss_get (void)
 
void tss_update (struct thread *next)
 

Variables

uint32_t res1
 
uint64_t rsp0
 
uint64_t rsp1
 
uint64_t rsp2
 
uint64_t res2
 
uint64_t ist1
 
uint64_t ist2
 
uint64_t ist3
 
uint64_t ist4
 
uint64_t ist5
 
uint64_t ist6
 
uint64_t ist7
 
uint64_t res3
 
uint16_t res4
 
uint16_t iomb
 

Function Documentation

◆ __attribute__()

struct task_state __attribute__ ( (packed)  )

◆ 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

◆ iomb

uint16_t iomb

◆ ist1

uint64_t ist1

◆ ist2

uint64_t ist2

◆ ist3

uint64_t ist3

◆ ist4

uint64_t ist4

◆ ist5

uint64_t ist5

◆ ist6

uint64_t ist6

◆ ist7

uint64_t ist7

◆ res1

uint32_t res1

◆ res2

uint64_t res2

◆ res3

uint64_t res3

◆ res4

uint16_t res4

◆ rsp0

uint64_t rsp0

◆ rsp1

uint64_t rsp1

◆ rsp2

uint64_t rsp2