diff options
author | Denis Orlov <denorl2009@gmail.com> | 2023-07-25 08:05:13 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-07-27 07:08:29 +0200 |
commit | f7bd5f1bd5294091f842d11eefa40d8c5f86d706 (patch) | |
tree | 3fcf8fef399b0b1ca2ce9d98e9faaba4e204649a /arch/mips/boards/qemu-malta/lowlevel.S | |
parent | 915ac03bdb57776e4cc127f8c2f33f01dd94ad1d (diff) | |
download | barebox-f7bd5f1bd5294091f842d11eefa40d8c5f86d706.tar.gz barebox-f7bd5f1bd5294091f842d11eefa40d8c5f86d706.tar.xz |
MIPS: pbl: make sure to disable interrupts/watchpoints on entry
The first thing that we should do on entry is to disable interrupts and
watchpoints, as who knows in what state we got there. The former was not
being done consistently on every board, while the latter was only being
done in the barebox proper for some reason. Add a macro that combines
both of those actions and ensure that it's used in every board's entry
code.
Signed-off-by: Denis Orlov <denorl2009@gmail.com>
Link: https://lore.barebox.org/20230725050618.3451-13-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boards/qemu-malta/lowlevel.S')
-rw-r--r-- | arch/mips/boards/qemu-malta/lowlevel.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/boards/qemu-malta/lowlevel.S b/arch/mips/boards/qemu-malta/lowlevel.S index 8c2d82dab2..8ff7d93a74 100644 --- a/arch/mips/boards/qemu-malta/lowlevel.S +++ b/arch/mips/boards/qemu-malta/lowlevel.S @@ -32,7 +32,7 @@ ENTRY_FUNCTION(BOARD_PBL_START) - mips_disable_interrupts + mips_cpu_setup /* cpu specific setup ... */ /* ... absent */ |