[ros-dev] Re: [ros-diffs] [weiden] 20864: make the initial kernel_stack large enough to have enough space for the fx savings area

Thomas Weidenmueller w3seek at reactos.com
Sun Jan 15 12:12:01 CET 2006


Hartmut Birr wrote:
> I think the change in all 3 files is wrong. There was a bug in
> main_asm.S. The code to align the stack must be:
> 
> .m1:
>         lea _kernel_stack, %eax
>         test $0xFFF, %eax
>         jz .m2
>         and $0xFFFFF000, %eax
>         add $0x1000, %eax
> .m2:
>         add $(0x3000 - SIZEOF_FX_SAVE_AREA),  %eax       
>         movl %eax, %esp

Yes, that looks better and should do the job aswell. Can you please fix it?

- Thomas


More information about the Ros-dev mailing list