[U-Boot] Struct SoC access

Reinhard Meyer u-boot at emk-elektronik.de
Sat Aug 14 22:47:33 CEST 2010


> Would the toolchain "gulp" when one defines the whole 4 GB that way?

In fact, a rather novel approach (just theorizing here):

#define SRAM_BASE offsetof(soc.sram)
#define SRAM_SIZE sizeof(soc.sram)

dbu_t *dbu = (dbu_t *)offsetof(soc.dbu);

without ever assigning soc the address 0...

Reinhard


More information about the U-Boot mailing list