Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Kernel/Arch/aarch64/linker.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ENTRY(init)

ASSERT(CONSTANT(MAXPAGESIZE) == 4K, "The aarch64 Kernel linker script assumes a max page size of 4K");

#define PF_X 0x1
#define PF_W 0x2
#define PF_R 0x4
Expand Down
2 changes: 2 additions & 0 deletions Kernel/Arch/riscv64/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

ENTRY(init)

ASSERT(CONSTANT(MAXPAGESIZE) == 4K, "The riscv64 Kernel linker script assumes a max page size of 4K");

#define PF_X 0x1
#define PF_W 0x2
#define PF_R 0x4
Expand Down
2 changes: 2 additions & 0 deletions Kernel/Arch/x86_64/linker.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ENTRY(init)

ASSERT(CONSTANT(MAXPAGESIZE) == 4K, "The x86_64 Kernel linker script assumes a max page size of 4K");

#define PF_X 0x1
#define PF_W 0x2
#define PF_R 0x4
Expand Down
2 changes: 2 additions & 0 deletions Kernel/EFIPrekernel/linker.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ENTRY(init)

ASSERT(CONSTANT(MAXPAGESIZE) == 4K, "The EFIPrekernel linker script only supports a max page size of 4K, as the UEFI spec requires 4K pages.");

SECTIONS
{
/* This is symbol is used to tell the PrekernelPEImageGenerator that the PE base address is 0 */
Expand Down
2 changes: 2 additions & 0 deletions Kernel/Prekernel/linker.ld
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ENTRY(start)

ASSERT(CONSTANT(MAXPAGESIZE) == 4K, "The Prekernel linker script assumes a max page size of 4K");

PHDRS
{
boot_text PT_LOAD ;
Expand Down
Loading