e1000: fix unaligned register access

This resolves a guru meditation in recent VirtualBox versions.

Change-Id: I5034d8af1fe885adda3c027cb23563bffaccf97e
This commit is contained in:
David van Moolenbroek 2014-12-01 17:04:49 +00:00
parent 4bf270019a
commit 92293fafd3

View file

@ -400,7 +400,7 @@ e1000_t *e;
/* Clear Multicast Table Array (MTA). */ /* Clear Multicast Table Array (MTA). */
for (i = 0; i < 128; i++) for (i = 0; i < 128; i++)
{ {
e1000_reg_write(e, E1000_REG_MTA + i, 0); e1000_reg_write(e, E1000_REG_MTA + i * 4, 0);
} }
/* Initialize statistics registers. */ /* Initialize statistics registers. */
for (i = 0; i < 64; i++) for (i = 0; i < 64; i++)