mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat(rust): Implement Rust-for-SUB-OS kernel layer, ChaCha20 crypto, HWMON thermal governor, and lazybox applets
- Add freestanding no_std Rust kernel layer compiled with rustc - Implement memory-safe ChaCha20 RFC-8439 stream cipher and CSPRNG in Rust - Implement intelligent thermal fan speed governor in Rust - Add printk macro bridge (kprint!, kprintln!) for Rust - Register 'rustinfo' and 'chacha20' LazyBox applets - Enable x86_64 hardware FPU & SSE (CR4.OSFXSR/OSXMMEXCPT) - Add cross-architecture C-bridge for ARM targets - Update stage2.asm kernel sector copy bounds to 448 KB
This commit is contained in:
1 parent
20bd992876
commit
24deed8ead
13 files changed
+433
-10
No files matched your search
@@ -48,6 +48,10 @@ int memcmp(const void* ptr1, const void* ptr2, size_t num) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bcmp(const void* ptr1, const void* ptr2, size_t num) {
|
||||
return memcmp(ptr1, ptr2, num);
|
||||
}
|
||||
|
||||
size_t strlen(const char* str) {
|
||||
size_t len = 0;
|
||||
while (str && str[len]) {
|
||||
|
||||
Reference in new issue
Block a user