[libj6] Remove driver_main

The `driver_main` sinature was an alternate signature for `main`
implemented with weak symbols, but it causes linking issues when not
statically linked, and drivers are going to work differently soon
anyway. Just get rid of it for now.
This commit is contained in:
Justin C. Miller
2023-08-26 19:23:13 -07:00
parent eda816ad90
commit 646a534dfd
5 changed files with 15 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ using bootproto::module_type;
constexpr uintptr_t stack_top = 0xf80000000;
int
driver_main(unsigned argc, const char **argv, const char **env, const j6_init_args *initp)
main(int argc, const char **argv, const char **env)
{
j6_status_t s;
@@ -74,6 +74,7 @@ driver_main(unsigned argc, const char **argv, const char **env, const j6_init_ar
if (s != j6_status_ok)
return s;
const j6_init_args *initp = j6_get_init_args();
uintptr_t modules_addr = initp->args[0];
std::vector<const module*> mods;