]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/x86/cpu/cpu.c
x86: Forward declare gd_t
[karo-tx-uboot.git] / arch / x86 / cpu / cpu.c
index e9bb0d770a379f6c329085da7217a3ba0dccd165..67de6bcb38b47a6ae8e37ccd38e38ba6aa63bbb2 100644 (file)
@@ -92,7 +92,7 @@ static void load_gdt(const u64 *boot_gdt, u16 num_entries)
 
 void init_gd(gd_t *id, u64 *gdt_addr)
 {
-       id->gd_addr = (ulong)id;
+       id->gd_addr = id;
        setup_gdt(id, gdt_addr);
 }