svn commit: r365926 - in head/sys: arm/include mips/include powerpc/include riscv/include x86/include

Michal Meloun mmel at FreeBSD.org
Sun Sep 20 15:11:54 UTC 2020


Author: mmel
Date: Sun Sep 20 15:11:52 2020
New Revision: 365926
URL: https://svnweb.freebsd.org/changeset/base/365926

Log:
  Add missing assignment forgotten in r365899
  
  Noticed by:	mav
  MFC after:	1 month
  MFC with:	r365899

Modified:
  head/sys/arm/include/bus.h
  head/sys/mips/include/bus.h
  head/sys/powerpc/include/bus.h
  head/sys/riscv/include/bus.h
  head/sys/x86/include/bus.h

Modified: head/sys/arm/include/bus.h
==============================================================================
--- head/sys/arm/include/bus.h	Sun Sep 20 12:31:48 2020	(r365925)
+++ head/sys/arm/include/bus.h	Sun Sep 20 15:11:52 2020	(r365926)
@@ -754,6 +754,7 @@ void generic_bs_unimplemented(void);
 	{								\
 		type tmp;						\
 		tmp = bus_space_read_##width(tag, hnd, offset);		\
+		*value = (type)tmp;					\
 		return (0);						\
 	}
 BUS_PEEK_FUNC(1, uint8_t)

Modified: head/sys/mips/include/bus.h
==============================================================================
--- head/sys/mips/include/bus.h	Sun Sep 20 12:31:48 2020	(r365925)
+++ head/sys/mips/include/bus.h	Sun Sep 20 15:11:52 2020	(r365926)
@@ -696,6 +696,7 @@ void	__bs_c(f,_bs_c_8) (void *t, bus_space_handle_t bs
 	{								\
 		type tmp;						\
 		tmp = bus_space_read_##width(tag, hnd, offset);		\
+		*value = (type)tmp;					\
 		return (0);						\
 	}
 BUS_PEEK_FUNC(1, uint8_t)

Modified: head/sys/powerpc/include/bus.h
==============================================================================
--- head/sys/powerpc/include/bus.h	Sun Sep 20 12:31:48 2020	(r365925)
+++ head/sys/powerpc/include/bus.h	Sun Sep 20 15:11:52 2020	(r365926)
@@ -469,6 +469,7 @@ extern struct bus_space bs_le_tag;
 	{								\
 		type tmp;						\
 		tmp = bus_space_read_##width(tag, hnd, offset);		\
+		*value = (type)tmp;					\
 		return (0);						\
 	}
 BUS_PEEK_FUNC(1, uint8_t)

Modified: head/sys/riscv/include/bus.h
==============================================================================
--- head/sys/riscv/include/bus.h	Sun Sep 20 12:31:48 2020	(r365925)
+++ head/sys/riscv/include/bus.h	Sun Sep 20 15:11:52 2020	(r365926)
@@ -458,6 +458,7 @@ struct bus_space {
 	{								\
 		type tmp;						\
 		tmp = bus_space_read_##width(tag, hnd, offset);		\
+		*value = (type)tmp;					\
 		return (0);						\
 	}
 BUS_PEEK_FUNC(1, uint8_t)

Modified: head/sys/x86/include/bus.h
==============================================================================
--- head/sys/x86/include/bus.h	Sun Sep 20 12:31:48 2020	(r365925)
+++ head/sys/x86/include/bus.h	Sun Sep 20 15:11:52 2020	(r365926)
@@ -1096,6 +1096,7 @@ bus_space_barrier(bus_space_tag_t tag __unused, bus_sp
 	{								\
 		type tmp;						\
 		tmp = bus_space_read_##width(tag, hnd, offset);		\
+		*value = (type)tmp;					\
 		return (0);						\
 	}
 BUS_PEEK_FUNC(1, uint8_t)


More information about the svn-src-all mailing list