Skip to contentSkip to conversation

why bic sp, sp, #7 /* 8-byte alignment for ABI compliance */

U-Boot janpharm 4 participants 6 messages Feb 17, 2013 – Feb 18, 2013

lore
Share & tools
lore
#1 lore raw

[U-Boot] u-boot recovery mode

Hi, experts:
I found u-boot did not implement a recovery mode in current source code. Such as:
1. detecting usr pressed some dedicated keys , then going into a recovery mode.

Why?
Vendor specific?

Best wishes,

#2 lore raw

[U-Boot] u-boot recovery mode

Hi TigerLiu at viatech.com.cn,

Quoted 8 lines · On Sun, 17 Feb 2013 19:30:17 +0800, <[email protected]> wrote:

Hi, experts:
I found u-boot did not implement a recovery mode in current source code. Such as:
1. detecting usr pressed some dedicated keys , then going into a recovery mode.

Why?
Vendor specific?

Such a mode can be implemented through U-Boot's environment variables without the need for hard-coding anything.

Amicalement,

Signature · 1 line
Albert.
#3 lore raw

[U-Boot] u-boot recovery mode

Hi, Albert:
Thanks for your answer!
So, how to use env variable to implement the recovery mode? Will who set this env variable?
OS? (if OS wants to go into recovery mode, it will set this env variable)

Best wishes,
-----????-----
???: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] ?? Albert ARIBAUD ????: 2013?2?17? 22:34
???: Tiger Liu
??: u-boot at lists.denx.de
??: Re: [U-Boot] u-boot recovery mode

Hi TigerLiu at viatech.com.cn,

Quoted 8 lines · On Sun, 17 Feb 2013 19:30:17 +0800, <[email protected]> wrote:

Hi, experts:
I found u-boot did not implement a recovery mode in current source code. Such as:
1. detecting usr pressed some dedicated keys , then going into a recovery mode.

Why?
Vendor specific?

Such a mode can be implemented through U-Boot's environment variables without the need for hard-coding anything.

Amicalement,

Signature · 5 lines
Albert.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
#4 lore raw

[U-Boot] u-boot recovery mode

Hi TigerLiu at viatech.com.cn,

Quoted 5 lines · On Mon, 18 Feb 2013 09:44:32 +0800, <[email protected]> wrote:

Hi, Albert:
Thanks for your answer!
So, how to use env variable to implement the recovery mode? Will who set this env variable?
OS? (if OS wants to go into recovery mode, it will set this env variable)

All needed info is in the U-Boot documentation on the Denx site.

See <http://www.denx.de/wiki/view/DULG/UBootEnvVariables>.

Quoted 1 line

Best wishes,

Amicalement,

Signature · 1 line
Albert.
#5 lore raw
In reply to janpharm

Hi,

Quoted 5 lines · janpharm

Hi All,

After searching via google,I still can not find the hint for

I understand the function of bic command,

http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf

Simple bit clear with bit-mask.

Quoted 4 lines

but did not understand :

why "bic sp, sp, #7" can be implied for "8-byte alignment for ABI compliance" ?

http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf

5.2.1.2.

SP has to be double-word (64-bit, 8-byte) aligned, so since this is an expand-down stack, its lower 3 bits have to be cleared in order to make it a multiple of 8.

Quoted 1 line

can someone offer some example?

http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=blob;f=arch/arm/lib/crt0.S;h=4f60958b1dbf1782863cebd7ffe884733a452b26;hb=HEAD#l110

Best regards,
Beno?t