Hello community, here is the log from the commit of package crash checked in at Thu Jul 5 19:15:10 CEST 2007. -------- --- crash/crash.changes 2007-06-22 22:08:11.000000000 +0200 +++ /mounts/work_src_done/STABLE/crash/crash.changes 2007-07-05 18:57:39.786968000 +0200 @@ -1,0 +2,6 @@ +Thu Jul 5 18:54:11 CEST 2007 - bwalle@suse.de + +- use the load address of the kernel from the LKCD header on + IA64 instead of the default (#282475) + +------------------------------------------------------------------- New: ---- crash-lkcd-use-kernel-start-address ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ crash.spec ++++++ --- /var/tmp/diff_new_pack.U21443/_old 2007-07-05 19:14:23.000000000 +0200 +++ /var/tmp/diff_new_pack.U21443/_new 2007-07-05 19:14:23.000000000 +0200 @@ -18,7 +18,7 @@ Version: %{crash_version}.%{crash_subversion} Release: 1 %define whitepaper_version 2003 -License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL) +License: GPL v2 or later, LGPL v2 or later Group: Development/Tools/Debuggers Source: %{name}-%{crash_version}-%{crash_subversion}.tar.bz2 Source2: crash_whitepaper-%{whitepaper_version}.tar.bz2 @@ -26,6 +26,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: crash-fix-lkcd-dumps-sles9.patch Patch1: crash-make-emacs-default.diff +Patch2: crash-lkcd-use-kernel-start-address BuildRequires: ncurses-devel zlib-devel %description @@ -63,6 +64,7 @@ %setup -q -n %{name}-%{crash_version}-%{crash_subversion} -a 2 %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp %{S:3} . %build @@ -97,6 +99,9 @@ %{_includedir}/* %changelog +* Thu Jul 05 2007 - bwalle@suse.de +- use the load address of the kernel from the LKCD header on + IA64 instead of the default (#282475) * Fri Jun 22 2007 - bwalle@suse.de - update to crash 4.0-4.3 o Fix for "kmem -f" command on 2.6.17 and later ++++++ crash-lkcd-use-kernel-start-address ++++++ Bug 282475 --- ia64.c | 11 ++++++++++- lkcd_common.c | 21 +++++++++++++++++++++ lkcd_fix_mem.c | 10 ++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) --- a/ia64.c +++ b/ia64.c @@ -3810,7 +3810,16 @@ ia64_calc_phys_start(void) phys_start); } return; - } + } else if (LKCD_DUMPFILE()) { + + if (lkcd_get_kernel_start(&phys_start)) { + machdep->machspec->phys_start = phys_start; + if (CRASHDEBUG(1)) + fprintf(fp, + "LKCD dump: phys_start: %lx\n", + phys_start); + } + } if ((vd = get_kdump_vmcore_data())) { /* --- a/lkcd_common.c +++ b/lkcd_common.c @@ -787,6 +787,27 @@ get_offset(uint64_t paddr) } +#ifdef IA64 + +int +lkcd_get_kernel_start(ulong *addr) +{ + if (!addr) + return 0; + + switch (lkcd->version) + { + case LKCD_DUMP_V8: + case LKCD_DUMP_V9: + return lkcd_get_kernel_start_v8(addr); + + default: + return 0; + } +} + +#endif + int lkcd_lseek(physaddr_t paddr) --- a/lkcd_fix_mem.c +++ b/lkcd_fix_mem.c @@ -237,4 +237,14 @@ get_lkcd_switch_stack(ulong task) return 0; } +int lkcd_get_kernel_start_v8(ulong *addr) +{ + if (!addr) + return 0; + + *addr = ((dump_header_asm_t *)lkcd->dump_header_asm)->dha_kernel_addr; + + return 1; +} + #endif // IA64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de