Added exit() function and renamed stdlib file to libc.a so GCC is happy.

This commit is contained in:
2024-02-03 01:05:26 +01:00
parent ca08dcc79b
commit c2a40a8104
3 changed files with 12 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ enum class Syscall : std::uint64_t
void setupSyscall() noexcept;
template<typename TParam0, typename TParam1, typename TParam2>
template<typename TParam0 = int, typename TParam1 = int, typename TParam2 = int>
inline void doSyscall(Syscall cmd, TParam0 param0 = 0, TParam1 param1 = 0, TParam2 param2 = 0) noexcept
{
register std::uint64_t r8 asm("r8") = param2;