From a893bcf138d6253e367f173c70e54d1903ad376d Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 29 Aug 2017 12:03:52 +0200 Subject: [PATCH] Changed constatns in ruby gdt example (#876) I think those two numbers are wrong, see http://wiki.osdev.org/Global_Descriptor_Table --- bindings/ruby/sample_x86_gdt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sample_x86_gdt.rb b/bindings/ruby/sample_x86_gdt.rb index ea6c9431..cd064452 100644 --- a/bindings/ruby/sample_x86_gdt.rb +++ b/bindings/ruby/sample_x86_gdt.rb @@ -16,8 +16,8 @@ A_PRIV_2 = 0x40 A_PRIV_1 = 0x20 A_PRIV_0 = 0x0 -A_CODE = 0x10 -A_DATA = 0x10 +A_CODE = 0x8 +A_DATA = 0x0 A_TSS = 0x0 A_GATE = 0x0