limine: Add request conflict detection

This commit is contained in:
mintsuki 2022-03-13 21:20:24 +01:00
parent 5dd725dbab
commit 80f8f434f2
1 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,11 @@ bool limine_load(char *config, char *cmdline) {
panic(true, "limine: Maximum requests exceeded"); panic(true, "limine: Maximum requests exceeded");
} }
// Check for a conflict
if (_get_request(p) != NULL) {
panic(true, "limine: Conflict detected for request ID %X %X", p[2], p[3]);
}
requests[requests_count++] = p; requests[requests_count++] = p;
} }