summaryrefslogtreecommitdiff
path: root/include/usb_cdc_acm.h
diff options
context:
space:
mode:
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>2021-05-11 23:39:16 -0600
committerMichal Simek <michal.simek@xilinx.com>2021-05-19 09:44:50 +0200
commit2a6e6c81f454d44c940203051f72991eece5bf51 (patch)
tree80d3b8df92f5c9ec94dd31d910340fffd301a87b /include/usb_cdc_acm.h
parenta502a87bc0e96a6b867cb9ed906c5a1d64444769 (diff)
downloadu-boot-2a6e6c81f454d44c940203051f72991eece5bf51.tar.gz
xilinx: versal: Enable CONFIG_POSITION_INDEPENDENT
U-Boot expects to be linked to a specific hard-coded address and to be loaded to and run from that address. CONFIG_POSITION_INDEPENDENT config lifts that restriction & allowing the code to be loaded to and executed from almost any address. As we enabled CONFIG_POSITION_INDEPENDENT, CONFIG_INIT_SP_RELATIVE is enabled by default, where it will set the early stack pointer at runtime by adding an offset value to &_bss_start. The offset value is taken from SYS_INIT_SP_BSS_OFFSET. SYS_INIT_SP_BSS_OFFSET offset should be large enough so that the early malloc region, global data (gd), and early stack should fit. With commit d8fabcc424bd ("arm64: versal: Increase SYS_MALLOC_F_LEN") SYS_MALLOC_F_LEN is increased from 32KB to 1MB, so we need to accommodate this space with SYS_INIT_SP_BSS_OFFSET. Hence increasing SYS_INIT_SP_BSS_OFFSET to 1.5MB. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Acked-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/usb_cdc_acm.h')
0 files changed, 0 insertions, 0 deletions