[SPARC64]: Fix args to sun4v_ldc_revoke().
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 13 Jun 2007 06:56:52 +0000 (23:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 13 Jun 2007 07:01:27 +0000 (00:01 -0700)
First argument is LDC channel ID, then mapping cookie,
then the MTE revoke cookie.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/entry.S
include/asm-sparc64/hypervisor.h

index 7d1a11822a1e2c5407300ac346792397af9d21cf..8059531bf0ac0ff55d604ef77a06aeddd40e090f 100644 (file)
@@ -2357,8 +2357,9 @@ sun4v_ldc_unmap:
         nop
        .size   sun4v_ldc_unmap, .-sun4v_ldc_unmap
 
-       /* %o0: cookie
-        * %o1: mte_cookie
+       /* %o0: channel
+        * %o1: cookie
+        * %o2: mte_cookie
         *
         * returns %o0: status
         */
index 5c2f9d4b9f06070813dad3cfe907aca906bbe080..db2130a95d68dea4f49e88aca19c9cb0c8a43105 100644 (file)
@@ -2615,8 +2615,9 @@ struct ldc_mtable_entry {
 /* ldc_revoke()
  * TRAP:       HV_FAST_TRAP
  * FUNCTION:   HV_FAST_LDC_REVOKE
- * ARG0:       cookie
- * ARG1:       ldc_mtable_entry cookie
+ * ARG0:       channel ID
+ * ARG1:       cookie
+ * ARG2:       ldc_mtable_entry cookie
  * RET0:       status
  */
 #define HV_FAST_LDC_REVOKE             0xef
@@ -2663,7 +2664,8 @@ extern unsigned long sun4v_ldc_mapin(unsigned long channel,
                                     unsigned long *ra,
                                     unsigned long *perm);
 extern unsigned long sun4v_ldc_unmap(unsigned long ra);
-extern unsigned long sun4v_ldc_revoke(unsigned long cookie,
+extern unsigned long sun4v_ldc_revoke(unsigned long channel,
+                                     unsigned long cookie,
                                      unsigned long mte_cookie);
 #endif