- Jan 18, 2019
-
-
Atish Patra authored
PLIC DT entry fixup can be done by comparing external interrupt number instead of context id. No need to invoke fixup for each plic context. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Perform following DT updates. 1. Mask hart if mmu is not supported. 2. Add stdout-path under chosen node. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
There are couple of string function defined in platform code. We no longer need them as we can directly link minimal libc. Every platform required to inclde this as PLIC driver required libc functions. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Libfdt already have fdt.c and fdt.h. Rename both fdt.* present in openSBI to tinyfdt.* Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
Some of the platform (i.e. SiFive FU540) requires Device Tree modification before it is passed to higher stages. Add libfdt support now to help this process. Libfdt should only be included per platform basis. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
Atish Patra authored
libfdt requires minimal libc support. Absoultely minimum functions are added in libc. Signed-off-by:Atish Patra <atish.patra@wdc.com>
-
- Jan 16, 2019
-
-
Anup Patel authored
This patch adds doxygen style documentation for struct sbi_trap_regs and related macros/defines/functions. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds __packed define for specifying packed attribute of structures. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds doxygen style documentation for struct sbi_scratch and related helper macros/defines. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds doxygen style documentation for sbi_init() API. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
There are quite a few noreturn functions in OpenSBI hence we add commong __noreturn define for noreturn functin attribute. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The patch updates title in contributing.md to match other .md files under docs/ directory. Signed-off-by:Anup Patel <anup.pate@wdc.com>
-
Anup Patel authored
This patch updates top-level README.md for steps required to build and install documentation PDF. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch extends top-level makefile to build and install documentation. The 'docs' make target is for building the documentation PDF whereas 'install_docs' make target is for installing the documentation PDF. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 05, 2019
-
-
Anup Patel authored
The '?=' will not assign value if the target make variable is overriden via command-line or is set in environment variable. On other hand, '=' will not assign value only if variable is overriden via command-line parameter. It is quite common to have CC, AS, CPP, LD, etc to be set as environment variables pointing to native compiler and binutils. If '-rR' option is not set in MAKEFLAGS then this results in compile error because '?=' will use the native compiler and binutils. If '-rR' option is set in MAKEFLAGS then this again results in compile error because CC, AS, CPP, etc are set to empty strings which causes '?=' to use empty string as compiler and binutils. To handle this, we use '?=' only when CROSS_COMPILE is not defined and we use '=' when CROSS_COMPILE is defined. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 04, 2019
-
-
Alistair Francis authored
Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Alistair Francis authored
To avoid this message (and subsequent errors): warning: linker input file unused because linking not done force GCC to treat the linker script preprocessing as a C file. Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Alistair Francis authored
Convert the Makefile to a more standard format and don't forcefully overwrite a users enviroment. Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Alistair Francis authored
Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Alistair Francis authored
Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Alistair Francis authored
Instead of using a confusing and custom option, allow verbose Makefile with the standard V=1. Signed-off-by:Alistair Francis <alistair.francis@wdc.com>
-
Anup Patel authored
This patch extends misaligned load/store trap handling to handle FP regs as well. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
This patch adds hardware floating-point (hard FP) access macros and defines. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 03, 2019
-
-
Alistair Francis authored
Various fixes
-
Damien Le Moal authored
Simplify sysctl.c code to only the used CPU freqency function. This reduces the size of the final firmware by 4KB. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
k210_console_putc() and k210_console_init() are local functions. Declare them as static. Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Damien Le Moal authored
Instead of printing the generic "<build_directory>" and "<install_directory>" strings, print the actual paths for the build and install directories during "make clean" and "make distclean". Signed-off-by:Damien Le Moal <damien.lemoal@wdc.com>
-
Anup Patel authored
The tmp0 member was added in struct sbi_scratch to assist register save/restore at time of trap handling. This tmp0 is not unsed any more hence removing it. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
- Jan 02, 2019
-
-
Anup Patel authored
The struct sbi_trap_regs related defines RISCV_TRAP_REGS_xyz should be in sbi_trap.h so that we can keep these defines in-sync with changes in struct sbi_trap_regs. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
Anup Patel authored
The struct sbi_platform related defines RISCV_PLATFORM_xyz should be in sbi_platform.h so that we can keep these defines in-sync with changes in struct sbi_platform. Signed-off-by:Anup Patel <anup.patel@wdc.com>
-
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>
-