From b922a53e86777b7a7a2aaa4eae48db1d34308c93 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 19 Mar 2024 09:32:13 -0500 Subject: [PATCH] Initial commit --- .gitmodules | 18 ++++++++++++++++++ Tupfile | 11 +++++++++++ Tupfile.ini | 0 boot | 1 + build/tup.config | 0 config.toml | 27 +++++++++++++++++++++++++++ init | 1 + initrd_maker | 1 + kernel | 1 + libstd | 1 + rom | 1 + 11 files changed, 62 insertions(+) create mode 100644 .gitmodules create mode 100644 Tupfile create mode 100644 Tupfile.ini create mode 160000 boot create mode 100644 build/tup.config create mode 100644 config.toml create mode 160000 init create mode 160000 initrd_maker create mode 160000 kernel create mode 160000 libstd create mode 160000 rom diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1efdc33 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,18 @@ +[submodule "rom"] + path = rom + url = ./rom +[submodule "boot"] + path = boot + url = ./boot +[submodule "init"] + path = init + url = ./init +[submodule "initrd_maker"] + path = initrd_maker + url = ./initrd_maker +[submodule "kernel"] + path = kernel + url = ./kernel +[submodule "libstd"] + path = libstd + url = ./libstd diff --git a/Tupfile b/Tupfile new file mode 100644 index 0000000..fae93d8 --- /dev/null +++ b/Tupfile @@ -0,0 +1,11 @@ +.gitignore + +: foreach libstd/include/*.i |> cp %f %o |> sysroot/usr/include/%b +: libstd/libstd.a |> cp %f %o |> sysroot/usr/lib/%b +: init/init |> cp %f %o |> sysroot/usr/bin/%b +: kernel/kernel |> cp %f %o |> sysroot/boot/%b +: boot/boot.bin |> cp %f %o |> sysroot/usr/share/boot/%b +: sysroot/boot/kernel sysroot/usr/bin/init | initrd_maker/initrd_maker |> ^t^ initrd_maker/initrd_maker %f |> initrd +: initrd |> cp %f %o |> sysroot/boot/%b +: sysroot/usr/share/boot/boot.bin sysroot/boot/initrd |> cat %f > %o |> os.dsk + diff --git a/Tupfile.ini b/Tupfile.ini new file mode 100644 index 0000000..e69de29 diff --git a/boot b/boot new file mode 160000 index 0000000..86ff044 --- /dev/null +++ b/boot @@ -0,0 +1 @@ +Subproject commit 86ff0449a6ea93ad1d1d3246a756f6c9c3a5f2ef diff --git a/build/tup.config b/build/tup.config new file mode 100644 index 0000000..e69de29 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..30490ab --- /dev/null +++ b/config.toml @@ -0,0 +1,27 @@ +symbol_tables = ["build/kernel/kernel", "build/init/init"] + +[[cards]] +type = "rom" +image = "build/rom/rom.bin" + +[[cards]] +type = "term" + +[[cards]] +type = "ram" +size = 0x200_0000 # 32 MiB + +[[cards]] +type = "ram" +size = 0x400_0000 # 64 MiB + +[[cards]] +type = "ram" +size = 0x100_0000 # 16 MiB + +[[cards]] +type = "storage" +image = "build/os.dsk" + +[[cards]] +type = "mmu" diff --git a/init b/init new file mode 160000 index 0000000..6819e31 --- /dev/null +++ b/init @@ -0,0 +1 @@ +Subproject commit 6819e313c8d799ab4f54feb2cbb6f3c1d91a07ea diff --git a/initrd_maker b/initrd_maker new file mode 160000 index 0000000..d74e79d --- /dev/null +++ b/initrd_maker @@ -0,0 +1 @@ +Subproject commit d74e79de9538329eafee46e13175c01cc68bd73d diff --git a/kernel b/kernel new file mode 160000 index 0000000..92e9bda --- /dev/null +++ b/kernel @@ -0,0 +1 @@ +Subproject commit 92e9bda9bde223fac326aea4d71daa194b14fbd4 diff --git a/libstd b/libstd new file mode 160000 index 0000000..4b4c46d --- /dev/null +++ b/libstd @@ -0,0 +1 @@ +Subproject commit 4b4c46d7caf09208edf4d0117f5644a9e88cc23d diff --git a/rom b/rom new file mode 160000 index 0000000..74ba1c2 --- /dev/null +++ b/rom @@ -0,0 +1 @@ +Subproject commit 74ba1c2e0f4d9d8093953cd202389099be748bae