Skip to content

Instantly share code, notes, and snippets.

@mopp
Last active December 30, 2015 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mopp/7806716 to your computer and use it in GitHub Desktop.
Save mopp/7806716 to your computer and use it in GitHub Desktop.
Aizu Advent Calendar 2013. 1
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