diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2017-03-06 00:50:55 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2017-03-06 00:50:55 +0100 |
commit | c3c4a57262ae9a2530598ae79b7c703d68da6abf (patch) | |
tree | 344f3b71281d6c9b7982963906bfe729d3c2daf4 /core | |
parent | 1f0ea8244fb80966280bd8ecee6a797130592d27 (diff) | |
download | garmos-c3c4a57262ae9a2530598ae79b7c703d68da6abf.tar.gz garmos-c3c4a57262ae9a2530598ae79b7c703d68da6abf.tar.bz2 |
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.
Diffstat (limited to 'core')
-rw-r--r-- | core/gdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, }; |