X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=lib%2Fasm-offsets.c;h=f4f1bb8ffd5a54fe102a281e718888f6ea6c62d9;hb=546a496ffd72a943a80cc0bfbbdb53fc5eec2a5f;hp=129bc3e2aff7eb18d80a4a10afe9cb5688f33384;hpb=772e173802627a1917a3f5878ad4b9b920089a33;p=oweals%2Fu-boot.git diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index 129bc3e2af..f4f1bb8ffd 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -28,19 +28,17 @@ 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 -#if defined(CONFIG_ARM) - DEFINE(GD_RELOCADDR, offsetof(struct global_data, relocaddr)); DEFINE(GD_RELOC_OFF, offsetof(struct global_data, reloc_off)); DEFINE(GD_START_ADDR_SP, offsetof(struct global_data, start_addr_sp)); -#endif + DEFINE(GD_NEW_GD, offsetof(struct global_data, new_gd)); return 0; }