Skip to content

Commit e13ddb6

Browse files
committed
ref(core/hypercall): rename first argument
This commit renames the first argument of the hypercall to make the code independent of the specific hypercall type. Signed-off-by: João Peixoto <[email protected]>
1 parent 6df80f4 commit e13ddb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/hypercall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ long int hypercall(unsigned long id)
1212
{
1313
long int ret = -HC_E_INVAL_ID;
1414

15-
unsigned long ipc_id = vcpu_readreg(cpu()->vcpu, HYPCALL_ARG_REG(0));
15+
unsigned long arg0 = vcpu_readreg(cpu()->vcpu, HYPCALL_ARG_REG(0));
1616
unsigned long arg1 = vcpu_readreg(cpu()->vcpu, HYPCALL_ARG_REG(1));
1717
unsigned long arg2 = vcpu_readreg(cpu()->vcpu, HYPCALL_ARG_REG(2));
1818

1919
switch (id) {
2020
case HC_IPC:
21-
ret = ipc_hypercall(ipc_id, arg1, arg2);
21+
ret = ipc_hypercall(arg0, arg1, arg2);
2222
break;
2323
default:
2424
WARNING("Unknown hypercall id %d", id);

0 commit comments

Comments
 (0)