X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fasm-offsets.c;h=f4f1bb8ffd5a54fe102a281e718888f6ea6c62d9;hb=db851c84c92ba1281082622d38231755356ce644;hp=221ebbf1771e06a9ae0b8f8e312b095e12348ffa;hpb=b79dadf846e5e140e261bbfa4decd024357702d7;p=u-boot diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index 221ebbf177..f4f1bb8ffd 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -28,7 +28,7 @@ int main(void) DEFINE(GD_SIZE, sizeof(struct global_data)); DEFINE(GD_BD, offsetof(struct global_data, bd)); -#ifdef CONFIG_SYS_MALLOC_F_LEN +#if CONFIG_VAL(SYS_MALLOC_F_LEN) DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base)); #endif @@ -38,5 +38,7 @@ int main(void) DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp)); + DEFINE(GD_NEW_GD, offsetof(struct global_data, new_gd)); + return 0; }