Last active
December 30, 2015 08:59
-
-
Save mopp/7806716 to your computer and use it in GitHub Desktop.
Aizu Advent Calendar 2013.
1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Segment_descriptor *gdt = (Segment_descriptor*)0x270000; | |
/* 全セグメントを初期化 */ | |
for (int i = 0; i < GDT_MAX_NUM; ++i) { | |
set_segment_descriptor(gdt + i, 0, 0, 0, 0, 0, 0, 0, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment