From 4756a110f90105ef9488b99481743e4c23518d9d Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 19 Aug 2016 14:53:16 -0600 Subject: [PATCH] Setup independent page tables, map heap to a single location --- x86/kernel.ld | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x86/kernel.ld b/x86/kernel.ld index c81df10dc7..8a428d22aa 100644 --- a/x86/kernel.ld +++ b/x86/kernel.ld @@ -28,6 +28,10 @@ SECTIONS { *(.data*) . = ALIGN(4096); __data_end = .; + __tdata_start = .; + *(.tdata*) + . = ALIGN(4096); + __tdata_end = .; } .bss : AT(ADDR(.bss) - KERNEL_OFFSET) { @@ -35,6 +39,10 @@ SECTIONS { *(.bss*) . = ALIGN(4096); __bss_end = .; + __tbss_start = .; + *(.tbss*) + . = ALIGN(4096); + __tbss_end = .; } /DISCARD/ : {