mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: riscv and power8: Convert printk/while(1) to die
BUG=None BRANCH=None TEST=None Signed-off-by: Jonathan Neuschfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/16984 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Change-Id: I277cc9ae22cd33f2cd9ded808960349d09e8670d Reviewed-on: https://chromium-review.googlesource.com/400101 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
d2718efcac
commit
dc407feb2c
4 changed files with 5 additions and 11 deletions
|
@ -193,8 +193,7 @@ void handle_misaligned_load(trapframe *tf) {
|
|||
tf->gpr[destRegister] = value;
|
||||
} else {
|
||||
// panic, this should not have happened
|
||||
printk(BIOS_DEBUG, "Code should not reach this path, misaligned on a non-64 bit store/load\n");
|
||||
while(1);
|
||||
die("Code should not reach this path, misaligned on a non-64 bit store/load\n");
|
||||
}
|
||||
|
||||
// return to where we came from
|
||||
|
@ -223,8 +222,7 @@ void handle_misaligned_store(trapframe *tf) {
|
|||
}
|
||||
} else {
|
||||
// panic, this should not have happened
|
||||
printk(BIOS_DEBUG, "Code should not reach this path, misaligned on a non-64 bit store/load\n");
|
||||
while(1);
|
||||
die("Code should not reach this path, misaligned on a non-64 bit store/load\n");
|
||||
}
|
||||
|
||||
// return to where we came from
|
||||
|
|
|
@ -21,9 +21,7 @@ static void mainboard_enable(device_t dev)
|
|||
{
|
||||
|
||||
if (!dev) {
|
||||
printk(BIOS_EMERG, "No dev0; die\n");
|
||||
while (1)
|
||||
;
|
||||
die("No dev0; die\n");
|
||||
}
|
||||
|
||||
// Where does RAM live?
|
||||
|
|
|
@ -21,8 +21,7 @@ static void mainboard_enable(device_t dev)
|
|||
{
|
||||
|
||||
if (!dev) {
|
||||
printk(BIOS_EMERG, "No dev0; die\n");
|
||||
while (1);
|
||||
die("No dev0; die\n");
|
||||
}
|
||||
|
||||
ram_resource(dev, 0, 2048, 32768);
|
||||
|
|
|
@ -28,8 +28,7 @@ static void mainboard_enable(device_t dev)
|
|||
const size_t ram_size = 1*GiB;
|
||||
|
||||
if (!dev) {
|
||||
printk(BIOS_EMERG, "No dev0; die\n");
|
||||
while (1);
|
||||
die("No dev0; die\n");
|
||||
}
|
||||
|
||||
ram_resource(dev, 0, 0x80000000/KiB, ram_size/KiB);
|
||||
|
|
Loading…
Add table
Reference in a new issue