Skip to content
Permalink
Browse files

arch/x86: always make BSS section MMU page align if X86_MMU

If MMU is enabled, always make the BSS section MMU page aligned.
According to the comments, it is always aligned anyway.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information...
dcpleung authored and nashif committed Jul 31, 2018
1 parent a51fb78 commit 615703423ef5e2c1129dcba96f52b0198b8041b8
Showing with 1 addition and 9 deletions.
  1. +1 −9 include/arch/x86/linker.ld
@@ -209,16 +209,8 @@ SECTIONS

SECTION_PROLOGUE(_BSS_SECTION_NAME, (NOLOAD OPTIONAL),)
{
/*
* Without Jailhouse, we get the page alignment here for free by
* definition of the beginning of the "RAMable" region on the board
* configurations. With Jailhouse, everything falls in RAM and we
* try to glue sections in sequence, thus we have to realign here so
* that gen_mmu.py does not complain.
*/
#ifdef CONFIG_JAILHOUSE
MMU_PAGE_ALIGN
#endif

/*
* For performance, BSS section is forced to be both 4 byte aligned and
* a multiple of 4 bytes.

0 comments on commit 6157034

Please sign in to comment.
You can’t perform that action at this time.