It is "REG_S    s5, (s4)" where the pagefault is received, s4 reg stored the 
start address of kernel .text segment. When i add a line of C code to force 
write some thing in the same address before the assembly code, the same thing 
happened. Does is have some mechanism to make the page can't be written in 
hardware level, like x86's readonly flag?

And could you tell me where can i find the suitable pacth for OCTEON?

------------------ 原始邮件 ------------------
>From: "wilbur.chan" <[email protected]>
>Reply-To: 
>To: 申王睿<[email protected]>
>Subject: Re: help for install kexec-tools
>Date: Tue, 17 Nov 2009 22:10:15 +0800
>
>2009/11/17 申王睿
:
>> i modified both kexec-tools and module in kernel to ingnore some validity 
>> checking. but when the code in kernel is going to copy the new kernel to old 
>> kernel, a pagefault exception is receive like this:
>> ~ # kexec -e
>> Starting new kernel
>> Unhandled kernel unaligned access[#1]:
>
>Maybe it was because of your crosstools problem.
>
>watch the 'REG_L       s5, (s2)
>       REG_S   s5, (s4)'
>
>in relocate_kernel.S  to see if it is suitable for 64 bits.
>
>
>BTW, if you are using smp processors , you should check the patch for it
> 
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to