dragon: Add missing swap_map define
authorTormod Volden <debian.tormod@gmail.com>
Fri, 8 May 2015 20:23:22 +0000 (22:23 +0200)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 May 2015 17:14:09 +0000 (18:14 +0100)
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 <debian.tormod@gmail.com>
Applications/util/dragon.link [new file with mode: 0644]
Kernel/platform-dragon/config.h

diff --git a/Applications/util/dragon.link b/Applications/util/dragon.link
new file mode 100644 (file)
index 0000000..b3969aa
--- /dev/null
@@ -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
index ba5a0c6..568ce65 100644 (file)
@@ -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))