Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 09:57:43 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203334 - head/sys/sun4v/include
Message-ID:  <201002010957.o119vhGb009111@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Feb  1 09:57:43 2010
New Revision: 203334
URL: http://svn.freebsd.org/changeset/base/203334

Log:
  Merge r157224 from sparc64:
  
  Sync with the other archs and declare the memory location referenced by
  the address argument of the bus_space_write_multi_*() familiy as const.

Modified:
  head/sys/sun4v/include/bus.h

Modified: head/sys/sun4v/include/bus.h
==============================================================================
--- head/sys/sun4v/include/bus.h	Mon Feb  1 09:29:32 2010	(r203333)
+++ head/sys/sun4v/include/bus.h	Mon Feb  1 09:57:43 2010	(r203334)
@@ -316,7 +316,7 @@ bus_space_write_8(bus_space_tag_t t, bus
 
 static __inline void
 bus_space_write_multi_1(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
-    uint8_t *a, size_t c)
+    const uint8_t *a, size_t c)
 {
 
 	while (c-- > 0)
@@ -325,7 +325,7 @@ bus_space_write_multi_1(bus_space_tag_t 
 
 static __inline void
 bus_space_write_multi_2(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
-    uint16_t *a, size_t c)
+    const uint16_t *a, size_t c)
 {
 
 	while (c-- > 0)
@@ -334,7 +334,7 @@ bus_space_write_multi_2(bus_space_tag_t 
 
 static __inline void
 bus_space_write_multi_4(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
-    uint32_t *a, size_t c)
+    const uint32_t *a, size_t c)
 {
 
 	while (c-- > 0)
@@ -343,7 +343,7 @@ bus_space_write_multi_4(bus_space_tag_t 
 
 static __inline void
 bus_space_write_multi_8(bus_space_tag_t t, bus_space_handle_t h, bus_size_t o,
-    uint64_t *a, size_t c)
+    const uint64_t *a, size_t c)
 {
 
 	while (c-- > 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002010957.o119vhGb009111>