Skip to contentSkip to conversation

move ia64_sal_retval and ia64_sal_handler above __SAL_CALL

PATCH In review Horms 1 participant 1 message Oct 23, 2006

lore
Share & tools
lore

Horms

author
#0 lore raw

PATCH 1/5 move ia64_sal_retval and ia64_sal_handler above __SAL_CALL

This moves the definition of ia64_sal_retval and ia64_sal_handler above __SAL_CALL in preparation for a typed function, which returns ia64_sal_retval and takes a ia64_sal_handler as one of its argument and is called by __SAL_CALL.

 include/asm-ia64/sal.h |   32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

Index: kexec-ia64-2.6/include/asm-ia64/sal.h
=================================--- kexec-ia64-2.6.orig/include/asm-ia64/sal.h 2006-10-05 12:33:37.000000000 +0900
+++ kexec-ia64-2.6/include/asm-ia64/sal.h 2006-10-05 12:33:41.000000000 +0900
@@ -45,6 +45,22 @@

extern spinlock_t sal_lock;

+struct ia64_sal_retval {
+ /*
+ * A zero status value indicates call completed without error.
+ * A negative status value indicates reason of call failure.
+ * A positive status value indicates success but an
+ * informational value should be printed (e.g., "reboot for
+ * change to take effect").
+ */
+ s64 status;
+ u64 v0;
+ u64 v1;
+ u64 v2;
+};
+
+typedef struct ia64_sal_retval (*ia64_sal_handler) (u64, ...); +
/* SAL spec _requires_ eight args for each call. */
#define __SAL_CALL(result,a0,a1,a2,a3,a4,a5,a6,a7) \
result = (*ia64_sal)(a0,a1,a2,a3,a4,a5,a6,a7)
@@ -95,22 +111,6 @@

#define SAL_UPDATE_PAL 0x01000020

-struct ia64_sal_retval {
- /*
- * A zero status value indicates call completed without error.
- * A negative status value indicates reason of call failure.
- * A positive status value indicates success but an
- * informational value should be printed (e.g., "reboot for
- * change to take effect").
- */
- s64 status;
- u64 v0;
- u64 v1;
- u64 v2;
-};
-
-typedef struct ia64_sal_retval (*ia64_sal_handler) (u64, ...); -
enum {
SAL_FREQ_BASE_PLATFORM = 0, SAL_FREQ_BASE_INTERVAL_TIMER = 1,

--

Signature · 3 lines
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/