|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Remove unused KEXEC_RANGE_VA_XEN.
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Node ID 58284e7494071cfb0388e9de3d35c17409e77d93
# Parent 2dd4569e064041bb222eaa3da6b3d63319511d34
Remove unused KEXEC_RANGE_VA_XEN.
KEXEC_RANGE_VA_XEN is currently unused and there is no point in exporting it.
Signed-Off-By: Magnus Damm <magnus@xxxxxxxxxxxxx>
---
xen/common/kexec.c | 15 ++++-----------
xen/include/public/kexec.h | 3 +--
2 files changed, 5 insertions(+), 13 deletions(-)
diff -r 2dd4569e0640 -r 58284e749407 xen/common/kexec.c
--- a/xen/common/kexec.c Thu Dec 07 11:36:26 2006 +0000
+++ b/xen/common/kexec.c Thu Dec 07 11:43:19 2006 +0000
@@ -160,13 +160,9 @@ static int kexec_get_reserve(xen_kexec_r
extern unsigned long _text;
-static int kexec_get_xen(xen_kexec_range_t *range, int get_ma)
-{
- if ( get_ma )
- range->start = virt_to_maddr(&_text);
- else
- range->start = (unsigned long) &_text;
-
+static int kexec_get_xen(xen_kexec_range_t *range)
+{
+ range->start = virt_to_maddr(&_text);
range->size = (unsigned long)&_end - (unsigned long)&_text;
return 0;
}
@@ -195,10 +191,7 @@ static int kexec_get_range(XEN_GUEST_HAN
ret = kexec_get_reserve(&range);
break;
case KEXEC_RANGE_MA_XEN:
- ret = kexec_get_xen(&range, 1);
- break;
- case KEXEC_RANGE_VA_XEN:
- ret = kexec_get_xen(&range, 0);
+ ret = kexec_get_xen(&range);
break;
case KEXEC_RANGE_MA_CPU:
ret = kexec_get_cpu(&range);
diff -r 2dd4569e0640 -r 58284e749407 xen/include/public/kexec.h
--- a/xen/include/public/kexec.h Thu Dec 07 11:36:26 2006 +0000
+++ b/xen/include/public/kexec.h Thu Dec 07 11:43:19 2006 +0000
@@ -107,8 +107,7 @@ typedef struct xen_kexec_load {
#define KEXEC_RANGE_MA_CRASH 0 /* machine address and size of crash area */
#define KEXEC_RANGE_MA_XEN 1 /* machine address and size of Xen itself */
-#define KEXEC_RANGE_VA_XEN 2 /* virtual adrress and size of Xen itself */
-#define KEXEC_RANGE_MA_CPU 3 /* machine address and size of a CPU note */
+#define KEXEC_RANGE_MA_CPU 2 /* machine address and size of a CPU note */
/*
* Find the address and size of certain memory areas
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Remove unused KEXEC_RANGE_VA_XEN.,
Xen patchbot-unstable <=
|
|
|
|
|