- Thread Starter
- #26
We can basically close this thread now.
I feel it NOT logical.And at least one of them tries to separate the kernel in two: part with unsafe Rust, part with safe Rust.
You're correct, of course. But you've not met Rust evangelists. They don't even have those concepts in their periphery.I feel it NOT logical.
Using Rust for memory-unsafe part would easily make confusions in the future.
Using C, asm or some other low to mid level language for unsafe part to clearly mark that the part is MUTUALLY memory-unsafe in mature would be far more cleaner. This way, UNSAFE part of Rust codes can be definitions for interfacing with C / asm / something else. Far more saner.
If I recall correctly, it's one of the reason why C is developed.Edit: Not ASM. I want my OS portable.
Stopped reading here.The fix is ... Rust
As soon as you write low-level code, it's not portable, in C as well as in ASM.Edit: Not ASM. I want my OS portable.
void hal_timerSchedInit(void)
{
// Set up timer1 interrupt for scheduler
TCCR1B |= (uint8_t)(1u << WGM12); // CTC mode
OCR1A = TIMER1_OVERFLOW_COUNT;
TIMSK1 |= (uint8_t)(1u << OCIE1A);
}