提交 f960128a 编写于 作者: B BernardXiong

[BSP] remove the unnecessary code.

上级 f0785732
......@@ -22,24 +22,13 @@
#include "riscv.h"
#include "stack.h"
void init_bss(void)
{
unsigned int *dst;
dst = &__bss_start;
while (dst < &__bss_end)
{
*dst++ = 0;
}
}
void primary_cpu_entry(void)
{
extern void entry(void);
/* disable global interrupt */
rt_memset(&__bss_start, 0x0, &__bss_end - &__bss_start);
// init_bss();
rt_memset(&__bss_start, 0x0, (rt_uint8_t*)&__bss_end - (rt_uint8_t*)&__bss_start);
rt_hw_interrupt_disable();
entry();
}
......
......@@ -107,13 +107,6 @@ static int drv_uart_getc(struct rt_serial_device *serial)
return sbi_console_getchar();
}
#if 0
void drv_uart_puts(char *str)
{
sbi_console_putstr(str);
}
#endif
char rt_hw_console_getchar(void)
{
return sbi_console_getchar();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册