From 97d331175ae47aec3d0b990ada9754a9e4298e32 Mon Sep 17 00:00:00 2001 From: andromeda Date: Mon, 19 Oct 2026 13:37:35 -0400 Subject: minimum that compiles --- main.c3 | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'main.c3') 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 . +**/ + 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; } -- cgit v1.3.1