genode/repos/base-okl4/patches/gdt_init.patch
Norman Feske ca971bbfd8 Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory
step for improving the tools for managing 3rd-party source codes.
The rationale is described in the issue referenced below.

Issue #1082
2014-05-14 16:08:00 +02:00

13 lines
659 B
Diff

diff -r ac48ec8ffd86 arch/ia32/pistachio/src/init.cc
--- a/arch/ia32/pistachio/src/init.cc Tue Aug 03 13:10:36 2010 +0200
+++ b/arch/ia32/pistachio/src/init.cc Wed Nov 24 12:01:30 2010 +0100
@@ -230,7 +230,7 @@
/* create a temporary GDT descriptor to load the GDTR from */
/*lint -e529 gdt_desc is only used inside __asm__ blocks */
- ia32_sysdesc_t gdt_desc = {sizeof(gdt), (u32_t)gdt, 0} ;
+ ia32_sysdesc_t gdt_desc = {sizeof(gdt) - 1, (u32_t)gdt, 0} ;
__asm__ __volatile__("lgdt %0 \n" /* load descriptor table */
"ljmp %1,$1f \n" /* refetch code segment descr. */