z80pack: make this a level2 platform so we can begin test/debug
authorAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 16:46:00 +0000 (16:46 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 9 Jan 2016 16:46:00 +0000 (16:46 +0000)
Kernel/platform-z80pack/config.h
Kernel/platform-z80pack/fuzix.lnk
Kernel/platform-z80pack/main.c

index 8ce080c..d952e86 100644 (file)
@@ -17,6 +17,8 @@
 /* 8 60K banks, 1 is kernel */
 #define MAX_MAPS       7
 #define MAP_SIZE       0xF000U
+/* Level 2 feature set */
+#define CONFIG_LEVEL_2
 
 /* Banks as reported to user space */
 #define CONFIG_BANKS   1
index 41961f6..bd950cb 100644 (file)
@@ -36,4 +36,7 @@ devsys.rel
 platform-z80pack/devlpr.rel
 platform-z80pack/devtty.rel
 platform-z80pack/devrtc.rel
+level2.rel
+syscall_level2.rel
+select.rel
 -e
index eb6b778..b364a8d 100644 (file)
@@ -34,3 +34,19 @@ void platform_interrupt(void)
 void map_init(void)
 {
 }
+
+#ifdef CONFIG_LEVEL_2
+
+/* We always use 512 byte paths so no special pathbuf needed */
+
+char *pathbuf(void)
+{
+ return tmpbuf();
+}
+
+void pathfree(char *tb)
+{
+ brelse(tb);
+}
+
+#endif