summaryrefslogtreecommitdiff
path: root/src/mainboard/tyan/s2895
diff options
context:
space:
mode:
authorarch import user (historical) <svn@openbios.org>2005-07-06 17:17:39 +0000
committerarch import user (historical) <svn@openbios.org>2005-07-06 17:17:39 +0000
commit93cabf12d1394e74818c9028789d9fe875147980 (patch)
tree0828d7f66cb07b59b87d92ee341d97816bc10369 /src/mainboard/tyan/s2895
parentc5d9e3b6dd2956a8864ab11ed89ddcff671b72c3 (diff)
downloadcoreboot-93cabf12d1394e74818c9028789d9fe875147980.tar.xz
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
Diffstat (limited to 'src/mainboard/tyan/s2895')
-rw-r--r--src/mainboard/tyan/s2895/cache_as_ram_auto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/tyan/s2895/cache_as_ram_auto.c b/src/mainboard/tyan/s2895/cache_as_ram_auto.c
index dfe11ae546..fde94cc780 100644
--- a/src/mainboard/tyan/s2895/cache_as_ram_auto.c
+++ b/src/mainboard/tyan/s2895/cache_as_ram_auto.c
@@ -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 )
);
{