From 3af6f76d12d30183fa872c73084a6ce354906a6b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 27 Nov 2014 01:05:28 +0000 Subject: [PATCH] dragon: remove dead bits, add vt mapper function --- Kernel/platform-dragon/main.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/Kernel/platform-dragon/main.c b/Kernel/platform-dragon/main.c index 994c6207..cc85d917 100644 --- a/Kernel/platform-dragon/main.c +++ b/Kernel/platform-dragon/main.c @@ -4,22 +4,6 @@ #include #include -/* The uarea is already synched to the stash which is written with the - process */ -uint8_t *swapout_prepare_uarea(ptptr p) -{ - p; - return NULL; -} - -/* The switchin code will move the uarea into the process itself, we just - need to fix up the u_page pointer */ -uint8_t *swapin_prepare_uarea(ptptr p) -{ - p; - return NULL; -} - void platform_idle(void) { } @@ -40,3 +24,11 @@ void pagemap_init(void) void map_init(void) { } + +unsigned char vt_mangle_6847(unsigned char c) +{ + if (c >= 96) + c -= 32; + c &= 0x3F; + return c; +} -- 2.34.1