aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorSagar Karandikar <sagark@eecs.berkeley.edu>2016-08-16 10:55:26 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-08-16 10:55:26 -0700
commitf73dee6f2cc37cafc4b6949dac9ac2d71cf84d10 (patch)
treef9bbb8309d2de24167063f40e308b2b358adb70e /bbl
parent0a7862c79ffcf931d5369d50b15774cc1ec8f396 (diff)
downloadriscv-pk-f73dee6f2cc37cafc4b6949dac9ac2d71cf84d10.zip
riscv-pk-f73dee6f2cc37cafc4b6949dac9ac2d71cf84d10.tar.gz
riscv-pk-f73dee6f2cc37cafc4b6949dac9ac2d71cf84d10.tar.bz2
add htif section in linker script, with ALIGNs to prevent MMIO and data from being placed on same page (#32)
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.lds10
1 files changed, 10 insertions, 0 deletions
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 */
/*--------------------------------------------------------------------*/