X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fgdt.c;h=3667d465833e5dd45222dcd6f0e6f627a15df215;hb=190b2ef9470c23c275754b74745933d973f8c439;hp=dd0ca5beadd59de602c351f5fb30aeccd84d9b2c;hpb=701de97007c8b6776998eeab78469a4304f6b871;p=palacios.git diff --git a/palacios/src/geekos/gdt.c b/palacios/src/geekos/gdt.c index dd0ca5b..3667d46 100644 --- a/palacios/src/geekos/gdt.c +++ b/palacios/src/geekos/gdt.c @@ -1,7 +1,7 @@ /* * Initialize kernel GDT. * Copyright (c) 2001,2004 David H. Hovemeyer - * $Revision: 1.1 $ + * $Revision: 1.2 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -32,8 +32,7 @@ extern void Load_GDTR(ushort_t* limitAndBase); /* * This is the kernel's global descriptor table. */ -struct Segment_Descriptor *s_GDT=(struct Segment_Descriptor *)GDT_LOCATION; - +struct Segment_Descriptor s_GDT[NUM_GDT_ENTRIES]; /* * Number of allocated GDT entries. */ @@ -139,7 +138,6 @@ void Init_GDT(void) struct Segment_Descriptor* desc; int i; - Print("GDT Placed at %x, %d entries\n",GDT_LOCATION,NUM_GDT_ENTRIES); KASSERT(sizeof(struct Segment_Descriptor) == 8);