From: David van Moolenbroek Date: Mon, 1 Dec 2014 17:04:49 +0000 (+0000) Subject: e1000: fix unaligned register access X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=92293fafd3877cfbb7bde350a225b2e07e737de1;p=minix.git e1000: fix unaligned register access This resolves a guru meditation in recent VirtualBox versions. Change-Id: I5034d8af1fe885adda3c027cb23563bffaccf97e --- diff --git a/minix/drivers/net/e1000/e1000.c b/minix/drivers/net/e1000/e1000.c index 64cbf1720..8ec80313c 100644 --- a/minix/drivers/net/e1000/e1000.c +++ b/minix/drivers/net/e1000/e1000.c @@ -400,7 +400,7 @@ e1000_t *e; /* Clear Multicast Table Array (MTA). */ 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. */ for (i = 0; i < 64; i++)