4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:57:12 +08:00

[BSP] remove the unnecessary code.

This commit is contained in:
BernardXiong 2021-05-18 19:05:06 +08:00
parent f07857324b
commit f960128acf
2 changed files with 2 additions and 20 deletions

View File

@ -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();
}

View File

@ -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();