diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-27 17:30:36 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-27 17:30:36 +0200 |
| commit | cb2f383f45dda8d1cdcef0b87fe4c70243659701 (patch) | |
| tree | f109c3c44fa3f142d34f8ca61cfa69672e556614 /dev/kernel/src/Utils.cc | |
| parent | 14d5ee9e0cfededddfceec73d5dfa8a2fcda6c5d (diff) | |
dev, kernel: AHCI, HeFS filesystem, SysChk, and BootSATA improvements.
what?
- AHCI now writes to disk, forgot to do it.
- Codebase's architecutre has been used to reuse the Generic+AHCI driver in SysChk for AHCI. (tradeoff is 256K in size instead of 36K)
- DriveMgr now detects EPM.
- And HeFS is still being worked on.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/Utils.cc')
| -rw-r--r-- | dev/kernel/src/Utils.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/kernel/src/Utils.cc b/dev/kernel/src/Utils.cc index eed6f076..ea0ff7a7 100644 --- a/dev/kernel/src/Utils.cc +++ b/dev/kernel/src/Utils.cc @@ -179,6 +179,8 @@ Char* rt_string_has_char(Char* str, Char chr) { } } // namespace Kernel +////// @note These symbols were written to satisfy gcc, clang and other compiler complaints. + EXTERN_C void* memset(void* dst, int c, long long unsigned int len) { return Kernel::rt_set_memory(dst, c, len); } @@ -187,3 +189,8 @@ EXTERN_C void* memcpy(void* dst, const void* src, long long unsigned int len) { Kernel::rt_copy_memory(const_cast<void*>(src), dst, len); return dst; } + +EXTERN_C Kernel::Int32 strcmp(const char* dst, const char* src) { + return Kernel::rt_string_cmp(dst, src, Kernel::rt_string_len(dst)); +} + |
