riscv : add riscv qemu virt support and fix fs bit error in mstatus
This commit is contained in:
21
ports/risc-v64/gnu/example_build/qemu_virt/uart.h
Normal file
21
ports/risc-v64/gnu/example_build/qemu_virt/uart.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2024 Microsoft Corporation
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the MIT License which is available at
|
||||
* https://opensource.org/licenses/MIT.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
|
||||
#ifndef RISCV_UART_H
|
||||
#define RISCV_UART_H
|
||||
|
||||
#define UART0 0x10000000L
|
||||
#define UART0_IRQ 10
|
||||
|
||||
#define puts uart_puts
|
||||
int uart_init(void);
|
||||
int uart_putc(int ch);
|
||||
int uart_puts(const char* str);
|
||||
#endif
|
||||
Reference in New Issue
Block a user