msx1: do the vector copy earlier
authorAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 11:47:44 +0000 (12:47 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 7 Apr 2019 11:47:44 +0000 (12:47 +0100)
Kernel/platform-msx1/discard.c

index 95223dd..b8b1c37 100644 (file)
@@ -4,6 +4,7 @@
 #include <printf.h>
 #include <devtty.h>
 #include <blkdev.h>
+#include <msx.h>
 
 extern uint8_t ramtab[], kernel_map[], current_map[], user_map[];
 extern uint8_t subslots;
@@ -74,14 +75,13 @@ void map_init(void)
   bp = user_map;
   kprintf("User map %x %x %x %x %x %x\n",
     *bp, bp[1], bp[2], bp[3], bp[4], bp[5]);
+  copy_vectors();
 }
 
 
 void platform_discard(void)
 {
     /* Until we tackle the buffers */
-    /* Use the old discard space to bounce the vectors to user pages */
-    copy_vectors();
 }
 
 /*