From 92293fafd3877cfbb7bde350a225b2e07e737de1 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 1 Dec 2014 17:04:49 +0000 Subject: [PATCH] e1000: fix unaligned register access This resolves a guru meditation in recent VirtualBox versions. Change-Id: I5034d8af1fe885adda3c027cb23563bffaccf97e --- minix/drivers/net/e1000/e1000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)