Re: [PATCH] ARM: use generic_dump_irq() instead of a custom one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I see...

Thanks,
Lei

On Mon, Dec 20, 2010 at 10:13 PM, Mika Westerberg
<mika.westerberg@xxxxxx> wrote:
> On Mon, Dec 20, 2010 at 09:37:51PM +0900, Lei Wen wrote:
>>
>> I am trying kdump on ARM. But there is one things that very confuse me...
>>
>> The parameter "elfcorehdr" should pass to the second kernel by the first one,
>> but I cannot find anywhere that I could figure out what this offset
>> value I should give
>> to elfcorehdr...
>
> It is set automatically by kexec-tools (once you load the crashkernel
> via '-p' command line option).
>
> See code in kexec/arch/arm/crashdump-arm.c:
>
> int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
> {
> Â Â Â Â...
> Â Â Â Â/*
> Â Â Â Â * We allocate ELF core header from the end of the memory area reserved
> Â Â Â Â * for the crashkernel. We align the header to SECTION_SIZE (which is
> Â Â Â Â * 1MB) so that available memory passed in kernel command line will be
> Â Â Â Â * aligned to 1MB. This is because kernel create_mapping() wants memory
> Â Â Â Â * regions to be aligned to SECTION_SIZE.
> Â Â Â Â */
> Â Â Â Âelfcorehdr = add_buffer_phys_virt(info, buf, bufsz, bufsz, 1 << 20,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âcrash_reserved_mem.start,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âcrash_reserved_mem.end, -1, 0);
>
> Â Â Â Âdbgprintf("elfcorehdr: %#lx\n", elfcorehdr);
> Â Â Â Âcmdline_add_elfcorehdr(mod_cmdline, elfcorehdr);
> Â Â Â Â...
>
> Regards,
> MW
>
> --
> Crash-utility mailing list
> Crash-utility@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/crash-utility
>

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux