diff options
author | Marvin Borner | 2019-10-31 17:47:40 +0100 |
---|---|---|
committer | GitHub | 2019-10-31 17:47:40 +0100 |
commit | c7e755cb843593db1eedb26c5c24932bbe743745 (patch) | |
tree | ad14da17e6d0d883e68cc6eacc99ae522036dda8 /src/kernel/acpi/acpi.c | |
parent | fd4f0a11126a20e75d72f8f2e6d418598fd5f37d (diff) | |
parent | 40a214f3c69a3d7da8c2f9bed5038dfa0ab72d4b (diff) |
Merged pull request usermode
Added usermode
Diffstat (limited to 'src/kernel/acpi/acpi.c')
-rw-r--r-- | src/kernel/acpi/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index 24da496..e0d260b 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -24,7 +24,7 @@ unsigned int *acpi_check_rsd_ptr(unsigned int *ptr) { char check = 0; unsigned int i; - if (memory_compare(sig, rsdp, 8) == 0) { + if (memcmp(sig, rsdp, 8) == 0) { bptr = (char *) ptr; for (i = 0; i < sizeof(struct RSDPtr); i++) { check += *bptr; @@ -62,7 +62,7 @@ unsigned int *acpi_get_rsd_ptr() { } int acpi_check_header(unsigned int *ptr, char *sig) { - if (memory_compare(ptr, sig, 4) == 0) { + if (memcmp(ptr, sig, 4) == 0) { char *checkPtr = (char *) ptr; int len = *(ptr + 1); char check = 0; @@ -122,7 +122,7 @@ int acpi_install() { char *S5Addr = (char *) facp->DSDT + 36; int dsdt_length = *(facp->DSDT + 1) - 36; while (0 < dsdt_length--) { - if (memory_compare(S5Addr, "_S5_", 4) == 0) + if (memcmp(S5Addr, "_S5_", 4) == 0) break; S5Addr++; } |