[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

@@ -20,7 +20,7 @@ extern "C" {
}
int
driver_main(unsigned argc, const char **argv, const char **env, const j6_init_args *init)
main(int argc, const char **argv, const char **env)
{
j6::syslog("fb driver starting");
@@ -28,6 +28,7 @@ driver_main(unsigned argc, const char **argv, const char **env, const j6_init_ar
using bootproto::devices::video_mode;
using bootproto::devices::fb_layout;
const j6_init_args *init = j6_get_init_args();
const uefi_fb *fb = reinterpret_cast<const uefi_fb*>(init->args[0]);
if (!fb || !fb->framebuffer) {