PKUOS - Pintos
Pintos source browser for PKU Operating System course
src
userprog
gdt.h
Go to the documentation of this file.
1
#ifndef USERPROG_GDT_H
2
#define USERPROG_GDT_H
3
4
#include "
threads/loader.h
"
5
6
/** Segment selectors.
7
More selectors are defined by the loader in loader.h. */
8
#define SEL_UCSEG 0x1B
/**< User code selector. */
9
#define SEL_UDSEG 0x23
/**< User data selector. */
10
#define SEL_TSS 0x28
/**< Task-state segment. */
11
#define SEL_CNT 6
/**< Number of segments. */
12
13
void
gdt_init
(
void
);
14
15
#endif
/**< userprog/gdt.h */
gdt_init
void gdt_init(void)
userprog/gdt.h
Definition:
gdt.c:36
loader.h
Generated on Thu Nov 4 2021 19:31:01 for PKUOS - Pintos by
1.9.2