From f73dee6f2cc37cafc4b6949dac9ac2d71cf84d10 Mon Sep 17 00:00:00 2001 From: Sagar Karandikar Date: Tue, 16 Aug 2016 10:55:26 -0700 Subject: add htif section in linker script, with ALIGNs to prevent MMIO and data from being placed on same page (#32) --- bbl/bbl.lds | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bbl') diff --git a/bbl/bbl.lds b/bbl/bbl.lds index c06aa13..6833e47 100644 --- a/bbl/bbl.lds +++ b/bbl/bbl.lds @@ -41,6 +41,16 @@ SECTIONS _etext = .; /*--------------------------------------------------------------------*/ + /* HTIF, isolated onto separate page */ + /*--------------------------------------------------------------------*/ + . = ALIGN(0x1000); + htif : + { + *(htif) + } + . = ALIGN(0x1000); + + /*--------------------------------------------------------------------*/ /* Initialized data segment */ /*--------------------------------------------------------------------*/ -- cgit v1.1