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
This commit is contained in:
gbeauche 2004-12-18 18:10:40 +00:00
parent 854478a048
commit 1406b615c7

View File

@ -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 (;;) {