commit b922a53e86777b7a7a2aaa4eae48db1d34308c93 Author: pjht Date: Tue Mar 19 09:32:13 2024 -0500 Initial commit 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