summaryrefslogtreecommitdiff
path: root/src/mainboard/tyan/s2885
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/tyan/s2885')
-rw-r--r--src/mainboard/tyan/s2885/cache_as_ram_auto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/tyan/s2885/cache_as_ram_auto.c b/src/mainboard/tyan/s2885/cache_as_ram_auto.c
index 4bbbdf0e5a..9ca2c4dc7f 100644
--- a/src/mainboard/tyan/s2885/cache_as_ram_auto.c
+++ b/src/mainboard/tyan/s2885/cache_as_ram_auto.c
@@ -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 )
);
{