]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc: add sun4v_mmu_unmap_perm_addr
authorDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 21 May 2014 18:54:10 +0000 (13:54 -0500)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 18 Apr 2016 16:42:46 +0000 (11:42 -0500)
original patch by Bob Picco

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Bob Picco <bob.picco@oracle.com>
arch/sparc/include/asm/hypervisor.h
arch/sparc/kernel/hvcalls.S

index 9e7e203c5e83aefec6e80d5044cdd2c2ee7119d5..e06b58a8d86be80c3ad6c0d5ac2124d1f321c763 100644 (file)
@@ -811,6 +811,10 @@ unsigned long sun4v_mmu_map_perm_addr(unsigned long vaddr,
  * to be kept consistent.
  */
 #define HV_FAST_MMU_UNMAP_PERM_ADDR    0x28
+#ifndef __ASSEMBLY__
+extern unsigned long sun4v_mmu_unmap_perm_addr(unsigned long vaddr,
+                       unsigned long nucleus, unsigned long flags);
+#endif
 
 /* mmu_tsb_ctx0_info()
  * TRAP:       HV_FAST_TRAP
index cae3af12908b4bf2b173f4d5d76b2821666732c3..775aaa4365ffc74bad3a4ed1be904334a3008f1b 100644 (file)
@@ -160,6 +160,18 @@ ENTRY(sun4v_mmu_map_perm_addr)
        retl
         nop
 ENDPROC(sun4v_mmu_map_perm_addr)
+       /* %o0: virtual address
+        * %o1: must be zero
+        * %o2: HV_MMU_* flags
+        *
+        * returns %o0: status
+        */
+ENTRY(sun4v_mmu_unmap_perm_addr)
+       mov     HV_FAST_MMU_UNMAP_PERM_ADDR, %o5
+       ta      HV_FAST_TRAP
+       retl
+        nop
+ENDPROC(sun4v_mmu_unmap_perm_addr)
 
        /* %o0: number of TSB descriptions
         * %o1: TSB descriptions real address