Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102701501
D37159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
964 B
Referenced Files
None
Subscribers
None
D37159.diff
View Options
diff --git a/sys/amd64/vmm/io/vhpet.h b/sys/amd64/vmm/io/vhpet.h
--- a/sys/amd64/vmm/io/vhpet.h
+++ b/sys/amd64/vmm/io/vhpet.h
@@ -35,6 +35,7 @@
#define VHPET_BASE 0xfed00000
#define VHPET_SIZE 1024
+#ifdef _KERNEL
struct vm_snapshot_meta;
struct vhpet *vhpet_init(struct vm *vm);
@@ -49,4 +50,6 @@
int vhpet_restore_time(struct vhpet *vhpet);
#endif
+#endif /* _KERNEL */
+
#endif /* _VHPET_H_ */
diff --git a/sys/amd64/vmm/io/vioapic.h b/sys/amd64/vmm/io/vioapic.h
--- a/sys/amd64/vmm/io/vioapic.h
+++ b/sys/amd64/vmm/io/vioapic.h
@@ -32,11 +32,12 @@
#ifndef _VIOAPIC_H_
#define _VIOAPIC_H_
-struct vm_snapshot_meta;
-
#define VIOAPIC_BASE 0xFEC00000
#define VIOAPIC_SIZE 4096
+#ifdef _KERNEL
+struct vm_snapshot_meta;
+
struct vioapic *vioapic_init(struct vm *vm);
void vioapic_cleanup(struct vioapic *vioapic);
@@ -56,4 +57,6 @@
struct vm_snapshot_meta *meta);
#endif
-#endif
+#endif /* _KERNEL */
+
+#endif /* _VIOAPIC_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 1:35 AM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14668802
Default Alt Text
D37159.diff (964 B)
Attached To
Mode
D37159: vmm: Add _KERNEL guards for io headers shared with userspace.
Attached
Detach File
Event Timeline
Log In to Comment