Skip to content

Commit

Permalink
updated 32-bit hypercall arguments to 64-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
off-by-1-error committed Dec 15, 2023
1 parent c82264b commit 32ac63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/hypercall.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define HYPERCALL_H
#include "linux/types.h"

static inline void igloo_hypercall(uint32_t num, uint32_t arg1) {
static inline void igloo_hypercall(uint64_t num, uint64_t arg1) {
#ifdef CONFIG_MIPS
register unsigned long a0 asm("a0") = num;
register unsigned long a1 asm("a1") = arg1;
Expand Down Expand Up @@ -31,7 +31,7 @@ static inline void igloo_hypercall(uint32_t num, uint32_t arg1) {
#endif
}

static inline unsigned long igloo_hypercall2(uint32_t num, uint32_t arg1, uint32_t arg2) {
static inline unsigned long igloo_hypercall2(uint64_t num, uint64_t arg1, uint64_t arg2) {
#if defined(CONFIG_ARM)
register unsigned long r0 asm("r0") = num;
register unsigned long r1 asm("r1") = arg1;
Expand Down

0 comments on commit 32ac63e

Please sign in to comment.