Altera_Forum
Honored Contributor
20 years agoSome Define meanings of PK1C20.h file in u-boot
Hi,
In PK1C20.h, <div class='quotetop'>QUOTE </div> --- Quote Start --- /*------------------------------------------------------------------------ * MEMORY ORGANIZATION * -Monitor at top. * -The heap is placed below the monitor. * -Global data is placed below the heap. * -The stack is placed below global data (&grows down). *----------------------------------------------------------------------*/# define CFG_MONITOR_LEN?(256 * 1024) /* Reserve 128k?*/# define CFG_GBL_DATA_SIZE 128?/* Global data size rsvd*/# define CFG_MALLOC_LEN?(CFG_ENV_SIZE + 128*1024) # define CFG_MONITOR_BASE TEXT_BASE# define CFG_MALLOC_BASE?(CFG_MONITOR_BASE - CFG_MALLOC_LEN)# define CFG_GBL_DATA_OFFSET (CFG_MALLOC_BASE - CFG_GBL_DATA_SIZE)# define CFG_INIT_SP?CFG_GBL_DATA_OFFSET[/b] --- Quote End --- I want to know clearly about the Monitor, heap, Global data, stack means and their functions. And How to set them in nios2 system? Thank you.