- Jan 02, 2019
-
-
Anup Patel authored
The struct sbi_scratch related defines RISCV_SCRATCH_xyz should be in sbi_scratch.h so that we can keep these defines in-sync with changes in struct sbi_scratch. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We replace #csr with __ASM_STR(csr) in all csr_xyz() macros so that we can pass CSR number instead of CSR name when GCC is not aware of CSR name. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The patch removes redundant csr_read_n() and csr_write_n() because same thing can be achieved by using __ASM_STR() macro in csr_read() and csr_write() macros. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Dec 31, 2018
-
-
Anup Patel authored
This patch adds documentation for qemu/virt and qemu/sifive_u platform supports. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch does minor typo fixes in top-level README.md. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Currently, we fail with error SBI_ENOTSUPP when we are not able to handle illegal instruction trap. Instead, we should just redirect illegal instruction trap to S-mode when not handled. This redirection of illegal instruction trap will help lazy save/restore of floating point registers to work correctly in Linux kernel. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The Kendryte K210 platform support was contributed by Damien hence fix author name. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We rename sifive/hifive_u540 platform support to sifive/fu540 to match the SoC name which is SiFive FU540 (as-per user manual). In fact, we can expect no (or very minimal) board specific quirks in sifive/fu540 platform support. These board specific quirks can be turned on/off in-future using PLATFORM_<xyz> make command-line option. Signed-off-by:
Anup Patel <anup.patel@wdc.com> Signed-off-by:
Atish Patra <atish.patra@wdc.com>
-
- Dec 27, 2018
-
-
Anup Patel authored
The mtval CSR is very useful information when debugging hence print it upon trap error in sbi_trap_error(). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We rename target_hart parameter of PMP platform callbacks to hartid for clarity because the parameter represents current hartid. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Instead of having separate timer_init() hooks for cold and warm boot, this patch updates struct sbi_platform to have just one timer_init() hook. The type of boot (cold or warm) is now a boolean flag parameter for the updated timer_init() hook. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Instead of having separate ipi_init() hooks for cold and warm boot, this patch updates struct sbi_platform to have just one ipi_init() hook. The type of boot (cold or warm) is now a boolean flag parameter for the updated ipi_init() hook. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Instead of having separate irqchip_init() hooks for cold and warm boot, this patch updates struct sbi_platform to have just one irqchip_init() hook. The type of boot (cold or warm) is now a boolean flag parameter for the updated irqchip_init() hook. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Instead of having separate early_init() and final_init() hooks for cold and warm boot, this patch updates struct sbi_platform to have just one early_init() and one final_init() hook. The type of boot (cold or warm) is now a boolean flag parameter for the updated early_init() and final_init() hooks. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The fw_common.S is the base firmware extendend by fw_jump and fw_payload. This patch renames fw_common.S to fw_base.S to have more clear/intutive name for base firmware. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This improves 'clean' and 'distclean' makefile target as follows: 1. Remove only .o, .a, .elf, and .bin files for 'clean' 2. Remove .dep in-addition to what 'clean' does for 'distclean' 3. Remove default build and install directory for 'distclean' Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We now have payloads sub-directory under firmware directory which means payload BINs and ELFs should be installed under firmware/payloads. This patch improves inst_file_list() to handle payloads sub-directory under firmware installation directory. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We use recently added separate dummy payload for FW_PAYLOAD when FW_PAYLOAD_PATH is not specified. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Currently, the default payload for FW_PAYLOAD is embedded fw_payload.S itself. This means people have to hack fw_payload.S if they want to have some temporary S-mode test code. This patch adds a separate dummy payload for FW_PAYLOAD which can be easily hacked for some S-mode testing. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch moves all ECALL defines to sbi_ecall_interface.h so that it can be shared with firmware payloads. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Dec 26, 2018
-
-
Anup Patel authored
We generally don't get misaligned load/store traps from Linux/U-Boot compiled using GCC 8.2 or higher but this is not true with older GCC toolchains. To tackle this we add misaligned load/store trap handling adopted from BBL sources but much more simpler. (Note: BBL sources can be found at https://github.com/riscv/riscv-pk.git ) Signed-off-by:
Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch moves all instruction encoding macros to riscv_encoding.h. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The name CROSS_COMPILE is an industry standard used across open-source project to specify cross-compiler prefix. In fact, distro build systems such as buildroot and yocto assume CROSS_COMPILE to be supported by projects added as packages to these build systems. This patch rename back CROSS_COMPILE_PREFIX to CROSS_COMPILE. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Dec 25, 2018
-
-
Damien Le Moal authored
Some rewrite with a more formal style. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Clean was doing nothing. Fix it to remove all compiled files, leaving only dependency files. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Make it clear what this environment variable defines and update the README.md file to explain that. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
- Dec 23, 2018
-
-
Atish Patra authored
Remove PLAT_<xyz> defines from platform and firmwares
-
- Dec 22, 2018
-
-
Anup Patel authored
The platform specific options will be PLATFORM_<xyz> and not PLAT_<xyz> hence this patch fixes typo in top-level README.md. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The PLAT_HART_COUNT and PLAT_HART_STACK_SIZE are only used by platform code so no need of exposing these to everyone by adding it to platform-cppflags-y. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The hart_count and hart_stack_size information is already available in "struct sbi_platform" so we use that instead of depending on PLAT_HART_COUNT and PLAT_HART_STACK_SIZE. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We don't need a separate stack section for per-HART stack instead we create per-HART stack at the end of firmware (i.e. after _fw_end symbol). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The PLAT_NAME is used only in platform.c for all platforms hence remove it. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Unleashed working 12 21
-
Atish Patra authored
M mode is not expected to recieve any interrupts. S mode interrupts shouldn't be enabled in M mode. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
As of now, uboot doesn't have support for SMP. Moreover, unleashed board has a E51 hart which doesn't not support S mode. We should only boot only 1 non-zero hart. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Anup Patel authored
Pass S-Mode and M-mode context id separately to common warm init. Signed-off-by:
Atish Patra <atish.patra@wdc.com> Signed-off-by:
Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
Unleashed doesn't have S mode for hart 0. PLIC register base calculation is current wrong because of that. Signed-off-by:
Atish Patra <atish.patra@wdc.com> Signed-off-by:
Anup Patel <anup.patel@wdc.com>
-
Atish Patra authored
Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
- Dec 21, 2018
-
-
Damien Le Moal authored
Conditionnally delegate page fault exceptions from M mode to S mode based on the platform features. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Anup Patel authored
The math.h is not required anymore and it also gives compile error for certain toolchains hence thsi patch removes math.h include from kendryte/k210/sysctl.c. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-