X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib%2Fasm-offsets.c;h=b04f7c6297598b51372eeb586a112b1db83cfae5;hb=f00c36a01e774dea1ed2a1171da9e372610ee8eb;hp=129bc3e2aff7eb18d80a4a10afe9cb5688f33384;hpb=b1cdd8baa14f518288ceddb391d6587c1ecb3174;p=u-boot diff --git a/lib/asm-offsets.c b/lib/asm-offsets.c index 129bc3e2af..b04f7c6297 100644 --- a/lib/asm-offsets.c +++ b/lib/asm-offsets.c @@ -28,19 +28,15 @@ 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 - return 0; }