Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bsp/cvitek/c906_little/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <rtthread.h>

#include "board.h"
#include "tick.h"
#include "drv_uart.h"

void rt_hw_board_init(void)
{
Expand Down
2 changes: 0 additions & 2 deletions bsp/cvitek/c906_little/board/tick.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#ifndef __TICK_H__
#define __TICK_H__


int tick_isr(void);
int rt_hw_tick_init(void);

#endif /* __TICK_H__ */
3 changes: 1 addition & 2 deletions libcpu/risc-v/common/trap_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ rt_weak rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t ha
void *param, const char *name)
{
rt_isr_handler_t old_handler = RT_NULL;
void *user_param = param;

if(vector < ISR_NUMBER)
{
Expand All @@ -74,7 +73,7 @@ rt_weak void rt_rv32_system_irq_handler(rt_uint32_t mcause)
rt_uint32_t exception = !(mcause & 0x80000000);
if(exception)
{
s_stack_frame = (rt_hw_stack_frame_t *)mscratch;
s_stack_frame = (volatile rt_hw_stack_frame_t *)(uintptr_t)mscratch;
rt_show_stack_frame();
}
else
Expand Down
9 changes: 9 additions & 0 deletions libcpu/risc-v/rv64/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ rt_weak void rt_hw_soft_irq_isr(void)

}

rt_weak int rt_hw_tick_isr(void)
{
return 0;
}

rt_weak void rt_hw_irq_isr(void)
{

}

rt_weak rt_size_t handle_trap(rt_size_t cause, rt_size_t epc, rt_size_t *sp)
{
Expand Down
Loading