From 1406b615c70e25552c8c5428a8cde852c54400df Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 18 Dec 2004 18:10:40 +0000 Subject: [PATCH] Make EtherInterrupt/packet[] "static" so that it is allocated in the .data section, which is likely accessible under 32-bit address on 64-bit platforms --- BasiliskII/src/Unix/ether_unix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/ether_unix.cpp b/BasiliskII/src/Unix/ether_unix.cpp index b0709e53..d1bba9b8 100644 --- a/BasiliskII/src/Unix/ether_unix.cpp +++ b/BasiliskII/src/Unix/ether_unix.cpp @@ -466,7 +466,8 @@ void EtherInterrupt(void) D(bug("EtherIRQ\n")); // Call protocol handler for received packets - uint8 packet[1516]; + // NOTE: "static" so that packet[] has a 32-bit address (.data section, not stack) + static uint8 packet[1516]; ssize_t length; for (;;) {