-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
argo-linux: forward port to v8 of the series, and add ARM32 driver
Signed-off-by: Christopher Clark <[email protected]>
- Loading branch information
Showing
5 changed files
with
101 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
obj-m += argo.o | ||
obj-m += xen-argo.o | ||
|
||
xen-argo-y := argo-module.o | ||
xen-argo-$(CONFIG_ARM) += argo-hypercall.o | ||
|
||
ccflags-y := -I$(src)/include | ||
#ccflags-$(CONFIG_X86_32) += -fomit-frame-pointer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include <linux/linkage.h> | ||
#include <asm/assembler.h> | ||
#include <asm/opcodes-virt.h> | ||
#include <xen/interface/xen.h> | ||
|
||
#ifndef HYPERVISOR_argo_op | ||
#define __HYPERVISOR_argo_op 39 | ||
#endif | ||
|
||
#define XEN_IMM 0xEA1 | ||
|
||
#define HYPERCALL_SIMPLE(hypercall) \ | ||
ENTRY(HYPERVISOR_##hypercall) \ | ||
mov r12, #__HYPERVISOR_##hypercall; \ | ||
__HVC(XEN_IMM); \ | ||
ret lr; \ | ||
ENDPROC(HYPERVISOR_##hypercall) | ||
|
||
#define HYPERCALL0 HYPERCALL_SIMPLE | ||
#define HYPERCALL1 HYPERCALL_SIMPLE | ||
#define HYPERCALL2 HYPERCALL_SIMPLE | ||
#define HYPERCALL3 HYPERCALL_SIMPLE | ||
#define HYPERCALL4 HYPERCALL_SIMPLE | ||
|
||
#define HYPERCALL5(hypercall) \ | ||
ENTRY(HYPERVISOR_##hypercall) \ | ||
stmdb sp!, {r4}; \ | ||
ldr r4, [sp, #4]; \ | ||
mov r12, #__HYPERVISOR_##hypercall; \ | ||
__HVC(XEN_IMM); \ | ||
ldm sp!, {r4}; \ | ||
ret lr; \ | ||
ENDPROC(HYPERVISOR_##hypercall) | ||
|
||
HYPERCALL5(argo_op); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters