Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-53

Creator:  Yinghai Lu <yhlu@tyan.com>

more safe stack in ram for cache_as_ram


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1969 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
arch import user (historical) 2005-07-06 17:17:39 +00:00
parent c5d9e3b6dd
commit 93cabf12d1
8 changed files with 24 additions and 24 deletions

View File

@ -304,9 +304,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -355,9 +355,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -351,9 +351,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -433,9 +433,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -373,9 +373,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -377,9 +377,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -455,9 +455,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{

View File

@ -419,9 +419,9 @@ cpu_reset_x:
__asm__ volatile (
/* set new esp */ /* before _RAMBASE */
"movl %0, %%ebp\n\t"
"movl %0, %%esp\n\t"
::"a"( _RAMBASE - 4 )
"subl %0, %%ebp\n\t"
"subl %0, %%esp\n\t"
::"a"( (DCACHE_RAM_BASE + DCACHE_RAM_SIZE)- _RAMBASE )
);
{