| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Current state:
- Basic context initialization and switching code.
- Stubbed console (empty functions).
- Mostly functional linker script (may need tweaks if we ever want to move
away from the large code model (see: CPU_CFLAGS).
- Fully functional boot, by using FreeBSD's bootloader to load RTEMS's ELF for
UEFI-awareness.
In short, the current state with this commit lets us boot, go through the system
initialization functions, and then call user application's Init task too.
Updates #2898.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
| |
This is a prepartion to add NS16550 driver support to the console
driver.
Update #3433.
|
|
|
|
|
|
|
| |
An address must be loaded to a register according to the code model.
Add LADDR define for use in assembler code.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
|
|
| |
Update via:
wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
Update #3433.
|
| |
|
| |
|
|
|
|
|
|
|
| |
See also RISC-V User-Level ISA V2.3, comment in section 8.2
"Load-Reserved/Store-Conditional Instructions".
Update #3433.
|
|
|
|
|
| |
Update #3342.
Update #3343.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
| |
Increase the PER_CPU_CONTROL_SIZE_APPROX on 64-bit targets.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
|
| |
Save/restore non-volatile registers in _CPU_Context_switch().
Save/restore volatile registers in _ISR_Handler().
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
| |
Move SREG and LREG assembler defines to <rtems/score/asm.h>.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
|
|
|
| |
The mstatus register contains no thread-specific state which must be
saved/restored during a context switch. Machine interrupts (MIE) must
be enabled during a context switch.
Create separate CPU_Interrupt_frame structure.
Update #3433.
|
|
|
|
|
|
|
|
|
|
| |
The RISC-V psABI
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
does not mention that this is a frame pointer.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
|
| |
Do not clear the complete thread context. Initialize only the necessary
members. The Context_Control::is_executing member must be preserved
across _CPU_Context_Initialize() calls.
Update #3433.
|
|
|
|
|
|
|
|
|
|
| |
According to the RISC-V psABI
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
the stack alignment is 128 bits (16 bytes).
Update #3433.
|
|
|
|
|
|
|
|
|
|
|
| |
The current ABI says that there is no stack red zone:
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md
"Procedures must not rely upon the persistence of stack-allocated data
whose addresses lie below the stack pointer."
Update #3433.
|
|
|
|
|
|
|
|
| |
The code sequence is derived from the ARM code
(see _ARMV4_Exception_interrupt).
Update #2751.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
|
| |
Remove <rtems/score/riscv-utility.h> include from <rtems/score/cpu.h>
(which is visible via <rtems.h> for example).
Update #3433.
|
|
|
|
|
|
|
|
|
| |
Use the atomic read and clear operation to disable interrupts.
Do not write the complete mstatus. Instead, set only the MIE bit
depending on the level parameter.
Update #3433.
|
|
|
|
|
|
| |
It duplicated the default implementation.
Update #3433.
|
|
|
|
|
|
|
| |
Use device tree provided timebase frequency. Do not write to read-only
mtime register.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
| |
Fix prototypes.
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|
|
|
|
|
|
| |
Use tabs to match the GCC generated assembler output.
Update #3433.
|
|
|
|
|
|
| |
There is no need to do this.
Update #3433.
|
|
|
|
| |
Update #3444.
|
|
|
|
| |
Update #3433.
|
|
|
|
| |
Update #3433.
|