]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blobdiff - arch/arm64/kernel/prem.c
Fix memguard and related syscalls
[hercules2020/nv-tegra/linux-4.4.git] / arch / arm64 / kernel / prem.c
index da6c1952ff238c8d11d8c653053a714d69540618..fdc2693475022d951d526366865f08b3c0ce5c68 100644 (file)
@@ -27,15 +27,15 @@ extern void __flush_dcache_all(void);
 /*
  * Flush and invalidate entire cache (__NR_prem_flush)
  */
-asmlinkage long sys_prem_flush(void)
+SYSCALL_DEFINE0(prem_flush)
 {
        __flush_dcache_all();
        return 0;
 }
 
 /* Invoke prem_guard_set hypercall implemented in Jailhouse hypervisor */
-asmlinkage long sys_premguard(unsigned long phase, unsigned long budget,
-                             unsigned long timeout)
+SYSCALL_DEFINE3(premguard, unsigned long, phase, unsigned long, budget,
+               unsigned long, timeout)
 {
        register uint64_t num_result asm("x0") = 9;
        register uint64_t __arg1 asm("x1") = phase;
@@ -51,9 +51,10 @@ asmlinkage long sys_premguard(unsigned long phase, unsigned long budget,
        return num_result;
 }
 
-/* Invoke prem_memguard_check hypercall implemented in Jailhouse hypervisor */
-asmlinkage long sys_memguard(unsigned long budget_time, unsigned long budget_memory,
-                            unsigned long flags)
+/* Invoke memguard hypercall implemented in the Jailhouse hypervisor */
+SYSCALL_DEFINE3(memguard, unsigned long, budget_time,
+               unsigned long, budget_memory,
+               unsigned long, flags)
 {
        register uint64_t num_result asm("x0") = 10;
        register uint64_t __arg1 asm("x1") = budget_time;