[coreboot] the eternal pre-post car debate in v3

Stefan Reinauer stepan at coresystems.de
Fri Sep 12 21:26:24 CEST 2008


Carl-Daniel Hailfinger wrote:
> On 12.09.2008 18:19, ron minnich wrote:
>   
>> W.r.t. Kevin's question: if we wrote stage1 as follows:
>>
>> stage1(){
>> .
>> .
>> .
>>   disable_car();
>>   stage1_after_car();
>> }
>>
>> How would people feel about that?
>>
>> There are still real concerns in my mind about lingering addresses in
>> registers that gcc might leave hanging around. The call nicely removes
>> the worries.
>>   
>>     
>
> In theory, gcc is free to reload esp from a cached register after
> disable_car. That would cause pretty explosions due to the stack pointer
> being in a now invalid location.
>   
gcc is changing esp to absolute values? Why would it do that?



-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the coreboot mailing list