Re: [RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread yalin wang
2015-05-18 17:40 GMT+08:00 Russell King - ARM Linux : > On Mon, May 18, 2015 at 03:36:10PM +0800, yalin wang wrote: >> this patch fix the function in kernel_thread(), >> when kernel is build as THUMB2 or BE8 endian, we should >> also set the correct bit in CPSR, so that kernel can return to >> the

Re: [RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread Russell King - ARM Linux
On Mon, May 18, 2015 at 03:36:10PM +0800, yalin wang wrote: > this patch fix the function in kernel_thread(), > when kernel is build as THUMB2 or BE8 endian, we should > also set the correct bit in CPSR, so that kernel can return to > the correct state to execute. Why do you think any of this is

[RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread yalin wang
this patch fix the function in kernel_thread(), when kernel is build as THUMB2 or BE8 endian, we should also set the correct bit in CPSR, so that kernel can return to the correct state to execute. Signed-off-by: yalin wang --- arch/arm/kernel/process.c | 6 ++ 1 file changed, 6

[RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread yalin wang
this patch fix the function in kernel_thread(), when kernel is build as THUMB2 or BE8 endian, we should also set the correct bit in CPSR, so that kernel can return to the correct state to execute. Signed-off-by: yalin wang yalin.wang2...@gmail.com --- arch/arm/kernel/process.c | 6 ++ 1

Re: [RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread yalin wang
2015-05-18 17:40 GMT+08:00 Russell King - ARM Linux li...@arm.linux.org.uk: On Mon, May 18, 2015 at 03:36:10PM +0800, yalin wang wrote: this patch fix the function in kernel_thread(), when kernel is build as THUMB2 or BE8 endian, we should also set the correct bit in CPSR, so that kernel can

Re: [RFC V2] arm:consider THUMB and BE endian kernel build

2015-05-18 Thread Russell King - ARM Linux
On Mon, May 18, 2015 at 03:36:10PM +0800, yalin wang wrote: this patch fix the function in kernel_thread(), when kernel is build as THUMB2 or BE8 endian, we should also set the correct bit in CPSR, so that kernel can return to the correct state to execute. Why do you think any of this is