MOS Source Code
Loading...
Searching...
No Matches
sbi-call.c File Reference
#include "mos/riscv64/sbi/sbi-call.h"
#include <mos/types.h>
#include <mos_string.h>
+ Include dependency graph for sbi-call.c:

Go to the source code of this file.

Classes

struct  sbiret_t
 

Macros

#define SBI_DEBUG_CONSOLE_EID   0x4442434E
 
#define SBI_EXT_0_1_CONSOLE_PUTCHAR   0x1
 

Functions

static sbiret_t sbi_ecall (int ext, int fid, ulong arg0, ulong arg1, ulong arg2, ulong arg3, ulong arg4, ulong arg5)
 
void sbi_putchar (char ch)
 
size_t sbi_putstring (const char *str)
 

Macro Definition Documentation

◆ SBI_DEBUG_CONSOLE_EID

#define SBI_DEBUG_CONSOLE_EID   0x4442434E

Definition at line 38 of file sbi-call.c.

◆ SBI_EXT_0_1_CONSOLE_PUTCHAR

#define SBI_EXT_0_1_CONSOLE_PUTCHAR   0x1

Definition at line 39 of file sbi-call.c.

Referenced by sbi_putchar().

Function Documentation

◆ sbi_ecall()

static sbiret_t sbi_ecall ( int ext,
int fid,
ulong arg0,
ulong arg1,
ulong arg2,
ulong arg3,
ulong arg4,
ulong arg5 )
static

Definition at line 14 of file sbi-call.c.

Referenced by sbi_putchar().

◆ sbi_putchar()

void sbi_putchar ( char ch)

Definition at line 41 of file sbi-call.c.

Referenced by sbi_putstring().

+ Here is the call graph for this function:

◆ sbi_putstring()

size_t sbi_putstring ( const char * str)

Definition at line 46 of file sbi-call.c.

Referenced by sbi_console_clear(), sbi_console_set_color(), and sbi_console_write().

+ Here is the call graph for this function: