File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed
bsp/qemu-riscv-virt64/driver Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 2222#include "riscv.h"
2323#include "stack.h"
2424
25- void init_bss (void )
26- {
27- unsigned int * dst ;
28-
29- dst = & __bss_start ;
30- while (dst < & __bss_end )
31- {
32- * dst ++ = 0 ;
33- }
34- }
35-
3625void primary_cpu_entry (void )
3726{
3827 extern void entry (void );
3928
4029 /* disable global interrupt */
41- rt_memset (& __bss_start , 0x0 , & __bss_end - & __bss_start );
42- // init_bss();
30+ rt_memset (& __bss_start , 0x0 , ( rt_uint8_t * ) & __bss_end - ( rt_uint8_t * ) & __bss_start );
31+
4332 rt_hw_interrupt_disable ();
4433 entry ();
4534}
Original file line number Diff line number Diff line change @@ -107,13 +107,6 @@ static int drv_uart_getc(struct rt_serial_device *serial)
107107 return sbi_console_getchar ();
108108}
109109
110- #if 0
111- void drv_uart_puts (char * str )
112- {
113- sbi_console_putstr (str );
114- }
115- #endif
116-
117110char rt_hw_console_getchar (void )
118111{
119112 return sbi_console_getchar ();
You can’t perform that action at this time.
0 commit comments