From 390ab32864ad3fcbe58096a2e2fdcf6465f173fe Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 2 Jun 2009 17:09:41 -0700 Subject: core: move xfer_buf_seg to segment 3, and add a collision assert Move the xfer_buf_seg to segment 3 (0x30000) for now; this is more generous than I hope we will use but makes development easier. Add an assert to the linker script that the .auxseg/.lowmem segments don't collide with xfer_buf_seg. Signed-off-by: H. Peter Anvin --- core/syslinux.ld | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/syslinux.ld') diff --git a/core/syslinux.ld b/core/syslinux.ld index 44d3b548..d97cde54 100644 --- a/core/syslinux.ld +++ b/core/syslinux.ld @@ -204,6 +204,10 @@ SECTIONS __high_clear_len = __high_clear_end - __high_clear_start; __high_clear_dwords = (__high_clear_len + 3) >> 2; + + __assert_high = ASSERT(__high_clear_end <= core_xfer_buf, + "auxseg/lowmem region collides with xfer_buf_seg"); + /* * 32-bit code. This is a hack for the moment due to the * real-mode segments also allocated. -- cgit v1.2.1