From 93cabf12d1394e74818c9028789d9fe875147980 Mon Sep 17 00:00:00 2001 From: "arch import user (historical)" Date: Wed, 6 Jul 2005 17:17:39 +0000 Subject: Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-53 Creator: Yinghai Lu more safe stack in ram for cache_as_ram git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1969 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/tyan/s2735/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2881/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2882/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2885/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2891/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2892/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s2895/cache_as_ram_auto.c | 6 +++--- src/mainboard/tyan/s4882/cache_as_ram_auto.c | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/mainboard/tyan/s2735/cache_as_ram_auto.c b/src/mainboard/tyan/s2735/cache_as_ram_auto.c index ebfc647d10..a0c95ab46c 100644 --- a/src/mainboard/tyan/s2735/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s2735/cache_as_ram_auto.c @@ -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 ) ); { diff --git a/src/mainboard/tyan/s2881/cache_as_ram_auto.c b/src/mainboard/tyan/s2881/cache_as_ram_auto.c index b1e3719c72..5ac861d5da 100644 --- a/src/mainboard/tyan/s2881/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s2881/cache_as_ram_auto.c @@ -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 ) ); { diff --git a/src/mainboard/tyan/s2882/cache_as_ram_auto.c b/src/mainboard/tyan/s2882/cache_as_ram_auto.c index 5c92e8420c..1b3d77a206 100644 --- a/src/mainboard/tyan/s2882/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s2882/cache_as_ram_auto.c @@ -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 ) ); { 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 ) ); { diff --git a/src/mainboard/tyan/s2891/cache_as_ram_auto.c b/src/mainboard/tyan/s2891/cache_as_ram_auto.c index b0ddb837a5..ba2dfc1f8c 100644 --- a/src/mainboard/tyan/s2891/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s2891/cache_as_ram_auto.c @@ -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 ) ); { diff --git a/src/mainboard/tyan/s2892/cache_as_ram_auto.c b/src/mainboard/tyan/s2892/cache_as_ram_auto.c index 14b15d4775..30a78f5a96 100644 --- a/src/mainboard/tyan/s2892/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s2892/cache_as_ram_auto.c @@ -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 ) ); { 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 ) ); { diff --git a/src/mainboard/tyan/s4882/cache_as_ram_auto.c b/src/mainboard/tyan/s4882/cache_as_ram_auto.c index 4e1b8483fc..bbcc49a9cf 100644 --- a/src/mainboard/tyan/s4882/cache_as_ram_auto.c +++ b/src/mainboard/tyan/s4882/cache_as_ram_auto.c @@ -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 ) ); { -- cgit v1.2.3