sam: add a low 512 byte buffer ready for ramdisk support
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Aug 2018 23:04:13 +0000 (00:04 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 20 Aug 2018 23:04:13 +0000 (00:04 +0100)
Kernel/platform-sam/crt0.s

index 6f9d6f5..41c47fe 100644 (file)
@@ -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