summaryrefslogtreecommitdiff
path: root/main.c3
diff options
context:
space:
mode:
authorandromeda <andromeda@bsd.my.domain>2026-10-19 13:37:35 -0400
committerandromeda <andromeda@bsd.my.domain>2026-10-19 13:37:35 -0400
commit97d331175ae47aec3d0b990ada9754a9e4298e32 (patch)
tree6b95823d67087725124a385f3b3860f8dd58304c /main.c3
parent07e96320de32c04b0de038ab8b1ece5724506235 (diff)
minimum that compiles
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;
}