the following patch was just integrated into master:
commit 315dec48ea6ae4f06dc3a0751dfa2ddf9ff55fba
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Feb 6 11:37:08 2013 +0100
bootblock: Reduce register load
The common part of the bootblock resets the nvram data if it's found
to be invalid. Since that code is compiled with romcc in i386 mode,
there's a shortage on registers.
Try to reduce the strain by doing things smarter: cmos_write_inner
is the same as cmos_write, just that it doesn't check if the RTC is
disabled. Since we just disabled it before, we can assume that it is so.
Change-Id: Ic85eb2a5df949d1c1aff654bc1b40d6f2ff71756
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
Reviewed-on: http://review.coreboot.org/2296
Tested-by: build bot (Jenkins)
Reviewed-by: Christian Gmeiner <christian.gmeiner(a)gmail.com>
See http://review.coreboot.org/2296 for details.
-gerrit
Hung-Te Lin (hungte(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2298
-gerrit
commit 4d41ed83d18dfd8593a5e637ef3a1d2b6970be8c
Author: Hung-Te Lin <hungte(a)chromium.org>
Date: Wed Feb 6 18:03:40 2013 +0800
armv7: Clean up: replace hang() by hlt().
hang() is the legacy function from U-boot and should be replaced by hlt() in
coreboot.
Change-Id: I0f390b1b6f9ff71487ea36cf16c462724b66d8ca
Signed-off-by: Hung-Te Lin <hungte(a)chromium.org>
---
src/arch/armv7/include/common.h | 2 --
src/arch/armv7/include/hang.h | 20 --------------------
src/arch/armv7/lib/Makefile.inc | 2 --
src/arch/armv7/lib/hang_spl.c | 16 ----------------
src/cpu/samsung/exynos5-common/spl_boot.c | 2 +-
5 files changed, 1 insertion(+), 41 deletions(-)
diff --git a/src/arch/armv7/include/common.h b/src/arch/armv7/include/common.h
index 1b69e84..d95a74d 100644
--- a/src/arch/armv7/include/common.h
+++ b/src/arch/armv7/include/common.h
@@ -129,8 +129,6 @@ ulong timer_get_us(void);
* Function Prototypes
*/
-void hang (void) __attribute__ ((noreturn));
-
int init_timer(void); /* FIXME(dhendrix): used to be timer_init() */
int cpu_init(void);
diff --git a/src/arch/armv7/include/hang.h b/src/arch/armv7/include/hang.h
deleted file mode 100644
index f57fc28..0000000
--- a/src/arch/armv7/include/hang.h
+++ /dev/null
@@ -1,20 +0,0 @@
- /*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2012 The ChromiumOS Authors. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-void hang(void);
diff --git a/src/arch/armv7/lib/Makefile.inc b/src/arch/armv7/lib/Makefile.inc
index 4fd15a6..343e9f8 100644
--- a/src/arch/armv7/lib/Makefile.inc
+++ b/src/arch/armv7/lib/Makefile.inc
@@ -5,7 +5,6 @@ romstage-y += cache_v7.c
romstage-y += cache-cp15.c
romstage-y += div0.c
romstage-y += div64.S
-romstage-y += hang_spl.c
romstage-y += romstage_console.c
romstage-y += syslib.c
@@ -13,7 +12,6 @@ romstage-y += syslib.c
ramstage-y += div0.c
ramstage-y += div64.S
-ramstage-y += hang_spl.c
#ramstage-y += interrupts.c
#ramstage-y += memcpy.S
#ramstage-y += memset.S
diff --git a/src/arch/armv7/lib/hang_spl.c b/src/arch/armv7/lib/hang_spl.c
deleted file mode 100644
index 630a57a..0000000
--- a/src/arch/armv7/lib/hang_spl.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- *
- * Alternatively, this software may be distributed under the terms of the
- * GNU General Public License ("GPL") version 2 as published by the Free
- * Software Foundation.
- */
-
-#include <hang.h>
-
-void hang(void)
-{
- for (;;);
-}
diff --git a/src/cpu/samsung/exynos5-common/spl_boot.c b/src/cpu/samsung/exynos5-common/spl_boot.c
index ddf6937..101afeb 100644
--- a/src/cpu/samsung/exynos5-common/spl_boot.c
+++ b/src/cpu/samsung/exynos5-common/spl_boot.c
@@ -410,7 +410,7 @@ void panic(const char *fmt, ...)
putc('\n');
va_end(args);
#if defined(CONFIG_PANIC_HANG)
- hang();
+ hlt();
#else
udelay(100000); /* allow messages to go out */
do_reset(NULL, 0, 0, NULL);
Patrick Georgi (patrick(a)georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2296
-gerrit
commit 69d861a6fbb689193cfcbafef8597fc655315df3
Author: Patrick Georgi <patrick(a)georgi-clan.de>
Date: Wed Feb 6 11:37:08 2013 +0100
bootblock: Reduce register load
The common part of the bootblock resets the nvram data if it's found
to be invalid. Since that code is compiled with romcc in i386 mode,
there's a shortage on registers.
Try to reduce the strain by doing things smarter: cmos_write_inner
is the same as cmos_write, just that it doesn't check if the RTC is
disabled. Since we just disabled it before, we can assume that it is so.
Change-Id: Ic85eb2a5df949d1c1aff654bc1b40d6f2ff71756
Signed-off-by: Patrick Georgi <patrick(a)georgi-clan.de>
---
src/arch/x86/include/bootblock_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/x86/include/bootblock_common.h b/src/arch/x86/include/bootblock_common.h
index c24b5b0..11fb230 100644
--- a/src/arch/x86/include/bootblock_common.h
+++ b/src/arch/x86/include/bootblock_common.h
@@ -39,7 +39,7 @@ static void sanitize_cmos(void)
int i;
cmos_disable_rtc();
for (i = 14; i < 128; i++) {
- cmos_write(cmos_default[i], i);
+ cmos_write_inner(cmos_default[i], i);
}
cmos_enable_rtc();
}
Zheng Bao (zheng.bao(a)amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2247
-gerrit
commit d45ad503db3f03b16b3ab56fc44aed410396db9b
Author: Zheng Bao <fishbaozi(a)gmail.com>
Date: Wed Feb 6 18:04:40 2013 +0800
crossgcc: Save the script itself when cross build is over.
In case that the new toolchains don't work well, we can trace back
and reproduce the old tools by checking the xgcc folder. It is useful
when my team members need to get my old toolchains on their own host
machines.
Change-Id: I54e4bc6afcfbbf622165af6eae27bbb6efc2e8cc
Signed-off-by: Zheng Bao <zheng.bao(a)amd.com>
Signed-off-by: zbao <fishbaozi(a)gmail.com>
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
util/crossgcc/buildgcc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index c69e7cd..eaff24d 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -595,6 +595,9 @@ test -r $IASL_DIR/generate/unix/.failed && printf "${RED}failed${NC}\n" || \
test -r $IASL_DIR/generate/unix/.failed && exit 1
fi
+rm -f $DESTDIR$TARGETDIR/$0.commit.*
+cp $0 $DESTDIR$TARGETDIR/"$0.commit.`git describe`"
+
if [ $SAVETEMPS -eq 0 ]; then
printf "Cleaning up... "
rm -rf ${GMP_DIR} build-gmp
the following patch was just integrated into master:
commit c5ff6487e65294aac4dccbf6b2a56ac518f982e2
Author: Hung-Te Lin <hungte(a)chromium.org>
Date: Wed Feb 6 12:41:49 2013 +0800
armv7: Prevent CBFS data overlapping bootblock.
For arm/snow, current bootblock is larger than previously assigned CBFS offset
and will fail to boot. To prevent this happening again in future, cbfstool now
checks if CBFS will overlap bootblock.
A sample error message:
E: Bootblock (0x0+0x71d4) overlap CBFS data (0x5000)
E: Failed to create build/coreboot.pre1.tmp.
arm/snow offset is also enlarged and moved to Kconfig variable.
Change-Id: I4556aef27ff716556040312ae8ccb78078abc82d
Signed-off-by: Hung-Te Lin <hungte(a)chromium.org>
Reviewed-on: http://review.coreboot.org/2295
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix(a)chromium.org>
Build-Tested: build bot (Jenkins) at Wed Feb 6 06:05:43 2013, giving +1
Reviewed-By: David Hendricks <dhendrix(a)chromium.org> at Wed Feb 6 10:53:18 2013, giving +2
See http://review.coreboot.org/2295 for details.
-gerrit
the following patch was just integrated into master:
commit 966e2dbb6537e9368514dfb3dfba24a8345c49bf
Author: Hung-Te Lin <hungte(a)chromium.org>
Date: Wed Feb 6 12:25:27 2013 +0800
cbfs: Revise debug messages.
Some variables are using incorrect data type in debug messages.
Also corrects a typo (extra 'x').
Change-Id: Ia3014ea018f8c1e4733c54a7d9ee196d0437cfbb
Signed-off-by: Hung-Te Lin <hungte(a)chromium.org>
Reviewed-on: http://review.coreboot.org/2294
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix(a)chromium.org>
Build-Tested: build bot (Jenkins) at Wed Feb 6 05:53:08 2013, giving +1
Reviewed-By: David Hendricks <dhendrix(a)chromium.org> at Wed Feb 6 10:52:12 2013, giving +2
See http://review.coreboot.org/2294 for details.
-gerrit