Skip to content

Instantly share code, notes, and snippets.

@SilverRainZ
Created August 22, 2015 03:23
Show Gist options
  • Save SilverRainZ/b479f22d691ef6c7cec6 to your computer and use it in GitHub Desktop.
Save SilverRainZ/b479f22d691ef6c7cec6 to your computer and use it in GitHub Desktop.
kernel message
Here are some message about my gdt,idt, tss and page table.
=======TSS==========
tr:s=0x2b, base=0x00000000005d4040, valid=1
ss:esp(0): 0x0010:0x1ffeff9c
ss:esp(1): 0x0000:0x00000000
ss:esp(2): 0x0000:0x00000000
cr3: 0x00000000
eip: 0x00000000
eflags: 0x00000000
cs: 0x0000 ds: 0x0000 ss: 0x0000
es: 0x0000 fs: 0x0000 gs: 0x0000
eax: 0x00000000 ebx: 0x00000000 ecx: 0x00000000 edx: 0x00000000
esi: 0x00000000 edi: 0x00000000 ebp: 0x00000000 esp: 0x00000000
ldt: 0x0000
i/o map: 0x0068
=======GDT=========
Global Descriptor Table (base=0x0000000000117020, limit=2047):
GDT[0x01]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Read, Conforming, Accessed, 32-bit
GDT[0x02]=Data segment, base=0x00000000, limit=0xffffffff, Read/Write, Accessed
GDT[0x03]=Code segment, base=0x00000000, limit=0xffffffff, Execute/Read, Conforming, Accessed, 32-bit
GDT[0x04]=Data segment, base=0x00000000, limit=0xffffffff, Read/Write, Accessed
GDT[0x05]=32-Bit TSS (Busy) at 0x005d4040, length 0x00068
=======SYSCALL=========
Interrupt Descriptor Table (base=0x0000000000117820, limit=2047):
IDT[0x80]=32-Bit Trap Gate target=0x0008:0x00100290, DPL=3
=======USERLAND=========
PDE: 0x000000001ffe9007 ps a pcd pwt U W P
PTE: 0x000000001ffea007 g pat d a pcd pwt U W P
linear page 0x00000000c0000000 maps to physical page 0x00001ffea000
=======PAGETABLE=========
0x00000000-0x005d5fff -> 0x000000000000-0x0000005d5fff // kernel
0x1ffef000-0x1ffeffff -> 0x00001ffef000-0x00001ffeffff // process's kernel stack
0xc0000000-0xc0000fff -> 0x00001ffea000-0x00001ffeafff // userland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment