MonkOS  v0.1
A simple 64-bit operating system (x86_64)
segments.h File Reference

Memory segment definitions. More...

#include <core.h>

Go to the source code of this file.

Macros

#define SEGMENT_SELECTOR_KERNEL_DATA   0x08
 
#define SEGMENT_SELECTOR_KERNEL_CODE   0x10
 
#define SEGMENT_SELECTOR_USER_DATA   0x18
 
#define SEGMENT_SELECTOR_USER_CODE   0x20
 
#define SEGMENT_SELECTOR_TSS   0x28
 

Detailed Description

Memory segment definitions.

Definition in file segments.h.

Macro Definition Documentation

#define SEGMENT_SELECTOR_KERNEL_DATA   0x08

Definition at line 15 of file segments.h.

#define SEGMENT_SELECTOR_KERNEL_CODE   0x10

Definition at line 16 of file segments.h.

Referenced by syscall_init().

#define SEGMENT_SELECTOR_USER_DATA   0x18

Definition at line 17 of file segments.h.

#define SEGMENT_SELECTOR_USER_CODE   0x20

Definition at line 18 of file segments.h.

Referenced by syscall_init().

#define SEGMENT_SELECTOR_TSS   0x28

Definition at line 19 of file segments.h.