From: Brett Gordon Date: Thu, 8 Oct 2015 15:55:22 +0000 (-0400) Subject: add .videodata section, add defines for video sections in devtty.c X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=990027882551a622da1155790b1f78cb022e93c7;p=FUZIX.git add .videodata section, add defines for video sections in devtty.c --- diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 7ed11a5f..0c66f3af 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -12,6 +12,8 @@ #undef DEBUG /* UNdefine to delete debug code sequences */ +#define VSECT __attribute__((section(".video"))) +#define VSECTD __attribute__((section(".videodata"))) uint8_t vtattr_cap; diff --git a/Kernel/platform-coco3/fuzix.link b/Kernel/platform-coco3/fuzix.link index d818ff21..1de5531d 100644 --- a/Kernel/platform-coco3/fuzix.link +++ b/Kernel/platform-coco3/fuzix.link @@ -2,6 +2,7 @@ define basesympat __sectionbase_%s__ define lensympat __sectionlen_%s__ section .start load 0x0200 section .video +section .videodata section .text2 section .text section .text.hot