2023-06-15 16:20:29 -07:00
|
|
|
#include <mammoth/channel.h>
|
2023-06-12 19:20:51 -07:00
|
|
|
#include <mammoth/debug.h>
|
2023-06-08 02:36:59 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "ahci/ahci_driver.h"
|
2023-06-15 16:20:29 -07:00
|
|
|
#include "denali_server.h"
|
2023-06-08 02:36:59 -07:00
|
|
|
|
|
|
|
int main(uint64_t bootstrap_cap) {
|
|
|
|
AhciDriver driver;
|
2023-06-12 19:20:51 -07:00
|
|
|
RET_ERR(driver.Init());
|
|
|
|
|
2023-06-15 16:20:29 -07:00
|
|
|
DenaliServer server(bootstrap_cap, driver);
|
|
|
|
RET_ERR(server.RunServer());
|
|
|
|
// FIXME: Add thread join.
|
2023-06-12 19:20:51 -07:00
|
|
|
return 0;
|
2023-06-08 02:36:59 -07:00
|
|
|
}
|