From 5e45893ced38740b01717dc0db3dfe40e46b8502 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 21 Aug 2018 00:04:13 +0100 Subject: [PATCH] sam: add a low 512 byte buffer ready for ramdisk support --- Kernel/platform-sam/crt0.s | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Kernel/platform-sam/crt0.s b/Kernel/platform-sam/crt0.s index 6f9d6f5d..41c47fe1 100644 --- a/Kernel/platform-sam/crt0.s +++ b/Kernel/platform-sam/crt0.s @@ -39,6 +39,9 @@ .globl s__INITIALIZER .globl kstack_top + ; export the buffer + .globl _low_bounce; + ; startup code .area _CODE @@ -63,3 +66,10 @@ start: di stop: halt jr stop + +; +; Low memory bounce buffer/scratch stack space. Define it here so we +; are sure it's below the 32K line. +; +_low_bounce: + .ds 512 -- 2.34.1