kernel: Fix gdt install clobbering symbol table, or whatever else ends up after it

This commit is contained in:
K. Lange 2021-10-24 16:23:56 +09:00
parent ce1e9b4e03
commit ca8fc639db

View File

@ -63,7 +63,7 @@ FullGDT gdt[32] __attribute__((used)) = {{
void gdt_install(void) {
for (int i = 1; i < 32; ++i) {
memcpy(&gdt[i], &gdt[0], sizeof(gdt));
memcpy(&gdt[i], &gdt[0], sizeof(*gdt));
}
for (int i = 0; i < 32; ++i) {