allow kernel to tell VM extra physical addresses it wants mapped in.
used in the future for mapping in local APIC memory.
This commit is contained in:
@@ -608,6 +608,14 @@
|
||||
#define SVMCTL_MRG_WRITE m1_i2 /* MEMREQ_GET reply: writeflag */
|
||||
#define SVMCTL_MRG_EP m1_i3 /* MEMREQ_GET reply: process */
|
||||
#define SVMCTL_MRG_REQUESTOR m1_p2 /* MEMREQ_GET reply: requestor */
|
||||
#define SVMCTL_MAP_VIR_ADDR m1_p1
|
||||
|
||||
/* Reply message for VMCTL_KERN_PHYSMAP */
|
||||
#define SVMCTL_MAP_FLAGS m2_i1 /* VMMF_* */
|
||||
#define SVMCTL_MAP_PHYS_ADDR m2_l1
|
||||
#define SVMCTL_MAP_PHYS_LEN m2_l2
|
||||
|
||||
#define VMMF_UNCACHED (1L << 0)
|
||||
|
||||
/* Codes and field names for SYS_SYSCTL. */
|
||||
#define SYSCTL_CODE m1_i1 /* SYSCTL_CODE_* below */
|
||||
@@ -632,6 +640,8 @@
|
||||
#define VMCTL_ENABLE_PAGING 24
|
||||
#define VMCTL_I386_INVLPG 25
|
||||
#define VMCTL_FLUSHTLB 26
|
||||
#define VMCTL_KERN_PHYSMAP 27
|
||||
#define VMCTL_KERN_MAP_REPLY 28
|
||||
|
||||
/* Field names for SYS_VTIMER. */
|
||||
#define VT_WHICH m2_i1 /* which timer to set/retrieve */
|
||||
|
||||
@@ -68,6 +68,9 @@ _PROTOTYPE( int sys_readbios, (phys_bytes address, void *buf, size_t size));
|
||||
_PROTOTYPE( int sys_stime, (time_t boottime));
|
||||
_PROTOTYPE( int sys_sysctl, (int ctl, char *arg1, int arg2));
|
||||
_PROTOTYPE( int sys_sysctl_stacktrace, (endpoint_t who));
|
||||
_PROTOTYPE( int sys_vmctl_get_mapping, (int index, phys_bytes *addr,
|
||||
phys_bytes *len, int *flags));
|
||||
_PROTOTYPE( int sys_vmctl_reply_mapping, (int index, vir_bytes addr));
|
||||
|
||||
/* Shorthands for sys_sdevio() system call. */
|
||||
#define sys_insb(port, proc_ep, buffer, count) \
|
||||
|
||||
Reference in New Issue
Block a user