From afc59bef81da0b84e0f771fad886080b4acd7641 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Fri, 8 May 2015 22:23:22 +0200 Subject: [PATCH] dragon: Add missing swap_map define Also define CONFIG_LEGACY_EXEC for now, and add an Applications/util linker script for this target. However, userspace doesn't successfully execute yet. Signed-off-by: Tormod Volden --- Applications/util/dragon.link | 7 +++++++ Kernel/platform-dragon/config.h | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 Applications/util/dragon.link diff --git a/Applications/util/dragon.link b/Applications/util/dragon.link new file mode 100644 index 00000000..b3969aaf --- /dev/null +++ b/Applications/util/dragon.link @@ -0,0 +1,7 @@ +define basesympat __sectionbase_%s__ +define lensympat __sectionlen_%s__ +section .header load 0x0800 +section .text +section .text.startup +section .data +section .bss diff --git a/Kernel/platform-dragon/config.h b/Kernel/platform-dragon/config.h index ba5a0c65..568ce658 100644 --- a/Kernel/platform-dragon/config.h +++ b/Kernel/platform-dragon/config.h @@ -21,6 +21,9 @@ #define SWAPTOP 0x8000 /* uarea so its a round number of sectors */ #define MAX_SWAPS 32 +/* Until the Becker and floppy driver support raw I/O */ +#define CONFIG_LEGACY_EXEC + /* Video terminal, not a serial tty */ #define CONFIG_VT /* Simple text mode */ @@ -60,3 +63,5 @@ extern unsigned char vt_mangle_6847(unsigned char c); #define TTYDEV BOOT_TTY /* Device used by kernel for messages, panics */ #define NBUFS 6 /* Number of block buffers */ #define NMOUNTS 2 /* Number of mounts at a time */ + +#define swap_map(x) ((uint8_t *)(x)) -- 2.34.1