From d083a104b60bdb392b43283d85c04592fce17463 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 16 Sep 2018 00:21:01 +0100 Subject: [PATCH] sam: fix a typo and add a macro we'll need to generalize the thunked code Systems without common RAM need to handle the HIGH area diferently so we use a macro to decide what HIGH means --- Kernel/platform-sam/README | 2 +- Kernel/platform-sam/kernel.def | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-sam/README b/Kernel/platform-sam/README index c300ef8c..cb01022e 100644 --- a/Kernel/platform-sam/README +++ b/Kernel/platform-sam/README @@ -19,7 +19,7 @@ User Space 0000-00FF Thunking code 0100-7FFF User page -8000-FCFFF User page +8000-FCFF User page FD00-FEFF UDATA stash FF00-FFFF Thunking code diff --git a/Kernel/platform-sam/kernel.def b/Kernel/platform-sam/kernel.def index 403e1051..50f075fa 100644 --- a/Kernel/platform-sam/kernel.def +++ b/Kernel/platform-sam/kernel.def @@ -12,3 +12,11 @@ PROGLOAD .equ 0x0100 Z80_TYPE .equ 1 + +; +; Select where to put the high code - in our case an _HIGH area but +; other platforms want this in commonmem +; +.macro HIGH + .area _HIGH +.endm -- 2.34.1