summaryrefslogtreecommitdiff
path: root/main.c3
diff options
context:
space:
mode:
Diffstat (limited to 'main.c3')
-rw-r--r--main.c325
1 files changed, 21 insertions, 4 deletions
diff --git a/main.c3 b/main.c3
index c857210..e3a8c15 100644
--- a/main.c3
+++ b/main.c3
@@ -1,8 +1,25 @@
+/** Copyright (C) 2026 Andromeda
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+**/
+
module c3os;
-import std::io;
-fn int main(String[] args)
+import uefi;
+
+fn EfiStatus efi_main(EfiHandle image_handle, SystemTable* system_table) @export("efi_main")
{
- io::printn("Hello, World!");
- return 0;
+ pre_load::init(image_handle, system_table)!!;
+ return SUCCESS;
}