mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
fa1b35bf18
created an initial stub implementation of the apic driver, added the madt to acpi, fixed an issue with the strncmp, made the pmm set only free pages rather than used ones
14 lines
193 B
C
14 lines
193 B
C
#include <stddef.h>
|
|
|
|
int strncmp(const char *a, const char *b, size_t c){
|
|
|
|
int diff = 0;
|
|
|
|
while(c-- && diff == 0)
|
|
diff += *a++ - *b++;
|
|
|
|
|
|
return diff;
|
|
|
|
}
|