trs80m1: make buffers.c a bit more readable
authorAlan Cox <alan@linux.intel.com>
Fri, 13 Jul 2018 23:09:00 +0000 (00:09 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 13 Jul 2018 23:09:00 +0000 (00:09 +0100)
Depends on the tool chain fix

Kernel/platform-trs80m1/buffers.c
Kernel/platform-trs80m1/trs80.s

index ca1439f..dc2f672 100644 (file)
@@ -55,10 +55,10 @@ extern uint8_t bufdata[];
    again to assign data to the extra allocated buffers */
 
 static bufptr bnext = bufpool;
+static uint8_t *bdnext = bufdata;
 
 void bufsetup(void)
 {
-    extern uint8_t *bdnext;
     bufptr bp;
 
     for(bp = bnext; bp < bufpool_end; ++bp) {
index 1db0bcb..66aa61b 100644 (file)
@@ -237,11 +237,7 @@ _hd_xfer_out:
            .area _BUFFERS2
            .globl _bufdata
            .globl _bufdata_end
-           .globl _bdnext
 _bufdata:
            .ds 512 * 5
 _bufdata_end:
 
-           .area _COMMONMEM
-_bdnext:
-           .dw _bufdata