aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/mips/head.S
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-08-16 15:35:39 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-11-20 10:10:48 +0000
commitf96d9051c2b39544300d35f64ce92502e1e230c0 (patch)
tree141966be0dedd056261528e55e05efde4b20b56d /payloads/libpayload/arch/mips/head.S
parent63c444a69b98bc8a86719699423b3273cc5759e8 (diff)
Remove MIPS architecture
The MIPS architecture port has been added 5+ years ago in order to support a Chrome OS project that ended up going nowhere. No other board has used it since and nobody is still willing or has the expertise and hardware to maintain it. We have decided that it has become too much of a mainenance burden and the chance of anyone ever reviving it seems too slim at this point. This patch eliminates all MIPS code and MIPS-specific hacks. Change-Id: I5e49451cd055bbab0a15dcae5f53e0172e6e2ebe Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34919 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/arch/mips/head.S')
-rw-r--r--payloads/libpayload/arch/mips/head.S96
1 files changed, 0 insertions, 96 deletions
diff --git a/payloads/libpayload/arch/mips/head.S b/payloads/libpayload/arch/mips/head.S
deleted file mode 100644
index 203e0ae1bf..0000000000
--- a/payloads/libpayload/arch/mips/head.S
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * This file is part of the libpayload project.
- *
- * Copyright (C) 2014 Imagination Technologies
- *
- * 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.
- */
-
-#include <arch/cpu.h>
-
- /* Disable interrupts and mark the kernel mode */
- .macro setup_c0_status clr
- .set push
- mfc0 $t0, $CP0_STATUS
- or $t0, ST0_CU0 | 0x1f | \clr
- xor $t0, 0x1f | \clr
- mtc0 $t0, $CP0_STATUS
- .set noreorder
- sll $zero, 3
- .set pop
- .endm
-
- /* Don't reorder instructions */
- .set noreorder
-
- .align 4
-
- .global cb_header_ptr
-cb_header_ptr:
- .word 0
-
- .global old_sp
-old_sp:
- .word 0
-
-
- .global _entry, _leave
- .text
-
-/* Our entry point */
-_entry:
-
- /*
- * This function saves off the previous stack and switches us to our
- * own execution environment.
- */
-
- /* Clear watch and cause registers */
- mtc0 $zero, $CP0_WATCHLO
- mtc0 $zero, $CP0_WATCHHI
- mtc0 $zero, $CP0_CAUSE
-
- /* Disable interrupts */
- setup_c0_status 0
-
- /* Don't use at in synthetic instr. */
- .set noat
-
- /* Init timer */
- mtc0 $zero, $CP0_COUNT
- mtc0 $zero, $CP0_COMPARE
-
- /* Initialize $gp */
- bal 1f
- nop
- .word _gp
-1:
- lw $gp, 0($ra)
-
- /* Save off the location of the coreboot tables */
- la $at, cb_header_ptr
- sw $a0, 0x00($at)
-
- /* Save old stack pointer */
- la $at, old_sp
- sw $sp, 0x00($at)
-
- /* Setup new stack */
- la $sp, _stack
-
- /* Let's rock */
- la $a2, start_main
- jalr $a2
- nop
-_leave:
- /* Restore old stack. */
- lw $sp, old_sp
- /* Return to the original context. */
- eret