- May 06, 2019
-
-
Loys Ollivier authored
Fix typo on parenthesis.
-
- Apr 30, 2019
-
-
Karsten Merker authored
The various available RISC-V toolchains differ in their default configuration regarding PIE, e.g. the buildroot RISC-V toolchain has PIE disabled by default while the Debian toolchain has it enabled by default. OpenSBI currently doesn't support being built with PIE enabled, therefore disable it explicitly by passing "-fno-pie -no-pie" in CFLAGS. Signed-off-by:
Karsten Merker <merker@debian.org> Acked-by:
Anup Patel <anup.patel@wdc.com>
-
- Apr 26, 2019
-
-
Xiang Wang authored
Signed-off-by:Xiang Wang <wxjstz@126.com>
-
- Apr 25, 2019
-
-
Shawn Chang authored
Signed-off-by:Shawn Chang <citypw@gmail.com>
-
- Apr 24, 2019
-
-
Olof Johansson authored
Noisy commit, no functional changes. Generated with an current upstream clang-format and: clang-format -i $(find . -name \*.[ch]) Signed-off-by:Olof Johansson <olof@lixom.net>
-
Olof Johansson authored
One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by:Olof Johansson <olof@lixom.net>
-
Olof Johansson authored
Add an empty clang-format to disable reformatting of imported code and make it easier to merge in upstream changes of that project over time. Signed-off-by:Olof Johansson <olof@lixom.net>
-
Olof Johansson authored
Add a clang-format to automate consistent code formatting. Automating coding style reformatting removes a lot of manual checkpatch-type fixups, and can easily be implemented as a linter in code review environments. Signed-off-by:Olof Johansson <olof@lixom.net>
-
- Apr 22, 2019
-
-
Nick Kossifidis authored
In case we didn't handle a trap with one of the available handlers, check if the trap comes from S or U mode and redirect it to S mode's trap handler. Signed-off-by:Nick Kossifidis <mick@ics.forth.gr>
-
- Apr 15, 2019
-
-
Atish Patra authored
All dependant patches are merged in U-Boot and Linux kernel now. Update the unleashed guide to reflect that and fix the documentation about tftp loading path as well. Signed-off-by:
Atish Patra <atish.patra@wdc.com> Reviewed-by:
Bin Meng <bmeng.cn@gmail.com>
-
Anup Pate authored
We add CONTRIBUTORS.md file to provide a list of individuals and organizations actively contributing to the OpenSBI project. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Karsten Merker authored
- Correct the payload address in the RV64 examples that use fw_jump.elf. - Change the qemu console configuration in the examples from "-display none -serial stdio" to "-nographic". This results in qemu handing down a CTRL-C on the emulated console to the VM instead of terminating the qemu process. - Provide examples for RV32. - Various text corrections. Signed-off-by:
Karsten Merker <merker@debian.org> Reviewed-by:
Alistair Francis <alistair.francis@wdc.com>
-
- Apr 10, 2019
-
-
Atish Patra authored
Simulatenous requests for tlbflush IPIs can have overlapping address ranges. Ignore if address range is same or within already existing fifo entries. Update the tlb flush info in fifo directly if the one of the existing entry lies within the new flush request. Delete all entries if flush all request is recieved for the vma. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Implement a lock enabled iteration for fifo so that caller can determine if next entry can be skipped or any existing entries in fifo can be updated before enqueue. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
- Apr 09, 2019
-
-
Anup Patel authored
This patch extends our current build-system for building platform sources which are not part of OpenSBI sources. For example: Let's say we have out-of-tree ABC platform sources. We place these sources under <XYZ>/ABC directory along with its config.mk and objects.mk. To build out-of-tree ABC platform from OpenSBI directory: $ make PLATFORM_DIR=<XYZ>/ABC OR $ make PLATFORM_DIR=<XYZ> PLATFORM=ABC To build out-of-tree ABC platform from <XYZ>/ABC directory: $ make PLATFORM_DIR=<XYZ>/ABC -C <path_to_opensbi> OR $ make PLATFORM_DIR=<XYZ> PLATFORM=ABC -C <path_to_opensbi> Signed-off-by:
Anup Patel <anup.patel@wdc.com> Reviewed-by:
Alistair Francis <alistair.francis@wdc.com>
-
- Apr 06, 2019
-
-
Alistair Francis authored
Fix the ECALL definitions to matc the latest information in the privlidge spec table 5.5. Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
- Apr 04, 2019
-
-
Xiang Wang authored
When I tried to start opensbi with coreboot, I found that aligning to a 16-byte boundary would make a copy error. Corrected to align to an machine word length boundary. Signed-off-by:Xiang Wang <wxjstz@126.com>
-
Anup Patel authored
This patch reduces memory consumed by struct sbi_fifo by droping redundant "head" member and using u16 in-place of "unsigned long". Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch does following improvements to sbi_fifo: 1. Use valid SBI_Exxxx error codes instead of -1 2. The sbi_fifo_is_full() and sbi_fifo_is_empty() did not acquire qlock before accessing head and tail hence fixed it 3. Added avail member for ease in debugging and simplifying head/tail updates. Due to above changes size of sbi_fifo changes from 48 bytes to 56 bytes. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
We now have an OpenSBI mailing list available for development and discussiong so update contributing.md accordingly. The Github PR based review and issue tracking will also continue to exist. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Apr 03, 2019
-
-
Atish Patra authored
Currently, there is no provision for tracking multiple IPIs sent to a single hart at the same time by different harts. Use a fifo manage the outstanding requests. While dequeueing, read all the entries once, because we have only 1 bit to track the type of IPI. Once the queue is full, busy wait until the there is space available in queue. This is not the most elegant approach. It should be changed in favor of a wakeup event once available in opensbi. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Currently scratch space per hart is 256 bytes. Increase it to 512 bytes to accomodate ipi queue. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Add a tlb info to distinguish between different type of tlb flush request pending. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Implement a fifo to accomodate outstanding IPIs for a specific hart at the same time. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Damien Le Moal authored
Add missing SPDX and copyright information. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Add information regarding the Apache License Version 2.0 of some of the Kendryte/k210 platform files. Also repeat this information in a new ThirdPartyNotices.md file. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
- Apr 01, 2019
-
-
Anup Patel authored
The mstatus parameter of get_insn() is used to return MSTATUS CSR value which get_insn() saw. Most of the get_insn() callers don't use the value returned in mstatus so this patch makes mstatus parameter optional for get_insn(). Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The sbi_unpriv.h has quite a few load_xyz() and store_xyz() helper routines based on RISC-V inline assembly for unpriviledged accesses from M-mode. These helper routines are similar to helper routines present in riscv_locks.h, riscv_io.h, and riscv_atomic.h so let's rename sbi_unpriv.h to riscv_unpriv.h. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch removes unused mepc arg from load_xyz() and store_xyz() unpriviledge access functions. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Mar 29, 2019
-
-
Bin Meng authored
Use the newly introduced "options" in "struct sbi_scratch" to conditionally disable the boot prints. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Bin Meng authored
Refactor the codes a little bit to put all prints during boot into sbi_boot_prints(). Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Bin Meng authored
Introduce "options" in "struct sbi_scratch" and firmware can update it based on optional compile time flags before calling sbi_init(). Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
- Mar 18, 2019
-
-
Bin Meng authored
The codes that currently program the interrupt enable register for S-mode disagrees with what the comments say. Fix the comments. While we are here, add one line comment to describe what is done for M-mode too. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
- Mar 14, 2019
-
-
Atish Patra authored
OpenSBI should show error trace only if any valid SBI function does not perform as expected. However, OpenSBI should show notify the caller with a negative error if given SBI function ID is not valid. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Bin Meng authored
Per PLIC spec, interrupt ID 0 is defined to mean "no interrupt". We should bypass it. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Bin Meng authored
At present plic_set_priority() ignores the 'source' and the priority register to be programmed is constant. Fix it. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Atish Patra authored
Scratch space setup needs to be done once for reboot for each hart. _start_warm may be called several times if hart hotplug is implemented. Move scratch space setup to the beginning so that it is done only once. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Currently, global page mappings are not flushed if start and size arguments are zero. Flush entire TLB if both size and start argument is passed as zero. Fixes : 90cb4917 (lib: Implement sfence.vma correctly) Signed-off-by:
Atish Patra <atish.patra@wdc.com>
-
Bin Meng authored
There are some spaces or mixed usage of spaces and tabs in the macro definition. Change to use tab consistently. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-
Bin Meng authored
It's U-Boot, not U-boot. Signed-off-by:Bin Meng <bmeng.cn@gmail.com>
-