-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from linshire/add_some_function
添加了一些函数,并在qemu-virt64-riscv上验证
- Loading branch information
Showing
9 changed files
with
207 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef __TYPEDEF_H__ | ||
#define __TYPEDEF_H__ | ||
|
||
#define NULL 0 | ||
typedef unsigned long long size_t; | ||
typedef unsigned char uint8_t; | ||
typedef unsigned short int uint16_t; | ||
typedef unsigned int uint32_t; | ||
typedef unsigned long long uint64_t; | ||
|
||
typedef signed char int8_t; | ||
typedef signed short int int16_t; | ||
typedef signed int int32_t; | ||
typedef signed long long int64_t; | ||
|
||
typedef volatile uint8_t vuint8_t; | ||
typedef volatile uint16_t vuint16_t; | ||
typedef volatile uint32_t vuint32_t; | ||
typedef volatile uint64_t vuint64_t; | ||
|
||
typedef volatile int8_t vint8_t; | ||
typedef volatile int16_t vint16_t; | ||
typedef volatile int32_t vint32_t; | ||
typedef volatile int64_t vint64_t; | ||
|
||
typedef long _fpos_t; | ||
|
||
typedef int64_t intmax_t; | ||
typedef uint64_t uintmax_t; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#ifndef __STDARG_H__ | ||
#define __STDARG_H__ | ||
|
||
#define va_list __builtin_va_list | ||
#define va_start(v,l) __builtin_va_start(v,l) | ||
#define va_end(v) __builtin_va_end(v) | ||
#define va_arg(v,l) __builtin_va_arg(v,l) | ||
#define va_copy(d,s) __builtin_va_copy(d,s) | ||
|
||
#define va_list __builtin_va_list | ||
#define va_start __builtin_va_start | ||
#define va_end __builtin_va_end | ||
#define va_arg __builtin_va_arg | ||
#define va_copy __builtin_va_copy | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef __STRING_H_ | ||
#define __STRING_H_ | ||
|
||
#include <typedef.h> | ||
|
||
size_t strlen(const char *s); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.