Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sandpoint/stand/netboot make sure to have 32B align...



details:   https://anonhg.NetBSD.org/src/rev/ae98888def34
branches:  trunk
changeset: 760698:ae98888def34
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Tue Jan 11 10:10:48 2011 +0000

description:
make sure to have 32B aligned descriptor array.

diffstat:

 sys/arch/sandpoint/stand/netboot/kse.c |  4 ++--
 sys/arch/sandpoint/stand/netboot/nvt.c |  4 ++--
 sys/arch/sandpoint/stand/netboot/pcn.c |  4 ++--
 sys/arch/sandpoint/stand/netboot/sip.c |  4 ++--
 sys/arch/sandpoint/stand/netboot/sme.c |  4 ++--
 sys/arch/sandpoint/stand/netboot/wm.c  |  4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)

diffs (108 lines):

diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/kse.c
--- a/sys/arch/sandpoint/stand/netboot/kse.c    Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/kse.c    Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kse.c,v 1.5 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: kse.c,v 1.6 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
        unsigned i, val, fdx;
        uint8_t *en;
 
-       l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = DEVTOV(pcicfgread(tag, 0x10));
 
diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/nvt.c
--- a/sys/arch/sandpoint/stand/netboot/nvt.c    Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/nvt.c    Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvt.c,v 1.19 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: nvt.c,v 1.20 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -175,7 +175,7 @@
        struct desc *txd, *rxd;
        uint8_t *en;
 
-       l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = ~01 & DEVTOV(pcicfgread(tag, 0x10)); /* use IO space */
 
diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/pcn.c
--- a/sys/arch/sandpoint/stand/netboot/pcn.c    Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/pcn.c    Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcn.c,v 1.18 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: pcn.c,v 1.19 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
        uint8_t *en;
        struct pcninit initblock, *ib;
 
-       l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
 
diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/sip.c
--- a/sys/arch/sandpoint/stand/netboot/sip.c    Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/sip.c    Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sip.c,v 1.18 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: sip.c,v 1.19 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
        if (PCI_DEVICE(0x100b, 0x0020) != val)
                return NULL;
 
-       l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = DEVTOV(pcicfgread(tag, 0x14)); /* use mem space */
 
diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/sme.c
--- a/sys/arch/sandpoint/stand/netboot/sme.c    Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/sme.c    Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sme.c,v 1.4 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: sme.c,v 1.5 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
        unsigned mac32, mac16, val, fdx;
        uint8_t *en;
 
-       l = ALLOC(struct local, sizeof(struct desc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = DEVTOV(pcicfgread(tag, 0x1c)); /* BAR3 mem space, LE */
        l->phy = 1; /* 9420 internal PHY */
diff -r b941928b4074 -r ae98888def34 sys/arch/sandpoint/stand/netboot/wm.c
--- a/sys/arch/sandpoint/stand/netboot/wm.c     Tue Jan 11 09:45:25 2011 +0000
+++ b/sys/arch/sandpoint/stand/netboot/wm.c     Tue Jan 11 10:10:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wm.c,v 1.12 2011/01/11 09:45:25 nisimura Exp $ */
+/* $NetBSD: wm.c,v 1.13 2011/01/11 10:10:48 nisimura Exp $ */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -141,7 +141,7 @@
        struct rdesc *rxd;
        uint8_t *en;
 
-       l = ALLOC(struct local, sizeof(struct tdesc)); /* desc alignment */
+       l = ALLOC(struct local, 32); /* desc alignment */
        memset(l, 0, sizeof(struct local));
        l->csr = pcicfgread(tag, 0x10); /* use mem space */
 



Home | Main Index | Thread Index | Old Index