From 7d5490ae0cb5a2cd486e7cf8df3056c4595106fe Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 15 Mar 2015 16:23:10 +0000 Subject: [PATCH] ethernet: avoid dumb sdcc emitting of _gs code --- Kernel/platform-socz80/ethernet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-socz80/ethernet.c b/Kernel/platform-socz80/ethernet.c index 58d89f84..771c250c 100644 --- a/Kernel/platform-socz80/ethernet.c +++ b/Kernel/platform-socz80/ethernet.c @@ -315,10 +315,11 @@ static void eth_readpkt(uint8_t * packet, int len) eth_deselect(); } +static uint16_t eth_rxnext = 0; + int eth_read(uint8_t minor, uint8_t rawflag, uint8_t flag) { static struct encrxhdr eth; - static uint16_t eth_rxnext = 0; uint8_t *packet = (uint8_t *)udata.u_offset; uint16_t len = udata.u_count; int r = -EIO; -- 2.34.1