Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
crash
crash-xen-vm-2.6.27.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crash-xen-vm-2.6.27.diff of Package crash
From: Bernhard Walle <bwalle@suse.de> Subject: Implement end_pfn -> max_pfn change for Xen dumps This patch reflects the change from end_pfn to max_pfn in x86_64 mainline between 2.6.26 and 2.6.27 that already has been partitially implemented in x86_64_init(PRE_GDB): ... if (kernel_symbol_exists("end_pfn")) /* 2.6.11 layout */ machdep->machspec->page_offset = PAGE_OFFSET_2_6_11; else /* 2.6.27 layout */ machdep->machspec->page_offset = PAGE_OFFSET_2_6_27; ... also for Xen Dom0 dumps (not in HV mode). Signed-off-by: Bernhard Walle <bwalle@suse.de> --- kernel.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/kernel.c +++ b/kernel.c @@ -102,8 +102,14 @@ kernel_init() } if (machine_type("X86")) get_symbol_data("max_pfn", sizeof(ulong), &kt->p2m_table_size); - if (machine_type("X86_64")) - get_symbol_data("end_pfn", sizeof(ulong), &kt->p2m_table_size); + if (machine_type("X86_64")) { + /* + * kernel version < 2.6.27 => end_pfn + * kernel version > 2.6.27 => max_pfn + */ + if (!try_get_symbol_data("end_pfn", sizeof(ulong), &kt->p2m_table_size)) + get_symbol_data("max_pfn", sizeof(ulong), &kt->p2m_table_size); + } if ((kt->m2p_page = (char *)malloc(PAGESIZE())) == NULL) error(FATAL, "cannot malloc m2p page."); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor