From c3c4a57262ae9a2530598ae79b7c703d68da6abf Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 6 Mar 2017 00:50:55 +0100 Subject: gdt: remove static annotation from gdt and gdtp The static annotation for gdt and gdtp causes problems when registering the global and interrupt description table. It is now omitted. --- core/gdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/gdt.c b/core/gdt.c index 0085e2f..819262e 100644 --- a/core/gdt.c +++ b/core/gdt.c @@ -31,14 +31,14 @@ enum gdt_sgmts { GDT_SGMT_COUNT }; -static struct gdt_sgmt gdt[GDT_SGMT_COUNT]; +struct gdt_sgmt gdt[GDT_SGMT_COUNT]; struct gdtp { uint16_t limit; void *pointer; } __attribute__((packed)); -static struct gdtp gdtp = { +struct gdtp gdtp = { .limit = GDT_SGMT_COUNT * sizeof(*gdt) - 1, .pointer = gdt, }; -- cgit v1.2.1