[Skiboot] [PATCH 08/36] sparse: opal_register() is CPU native endian arguments

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:02 AEDT 2015


token is CPU native endian rather than BE as this function is only
ever called from within skiboot itself to maintain internal tables
of what OPAL calls are registered.

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 include/opal-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opal-internal.h b/include/opal-internal.h
index 1410481d6777..5e41e102d33b 100644
--- a/include/opal-internal.h
+++ b/include/opal-internal.h
@@ -59,7 +59,7 @@ extern void add_opal_node(void);
 #define opal_register(token, func, nargs)				\
 	__opal_register((token) + 0*sizeof(func(__test_args##nargs)),	\
 			(func), (nargs))
-extern void __opal_register(__be64 token, void *func, unsigned num_args);
+extern void __opal_register(uint64_t token, void *func, unsigned num_args);
 
 /* Warning: no locking at the moment, do at init time only
  *
-- 
2.1.4



More information about the Skiboot mailing list