kernel: Fix gdt install clobbering symbol table, or whatever else ends up after it
This commit is contained in:
parent
ce1e9b4e03
commit
ca8fc639db
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user