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:
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
@@ -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 )
|
||||
);
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user