From 2376186ed5dc86af752e73a2020f8982c9182382 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Tue, 28 Feb 2023 22:21:28 +0100 Subject: [PATCH] Added missing copyright & licence disclaimers, and fixed the existing ones --- Makefile | 9 ++++++--- grub.cfg | 10 ++++++++++ kernel/linker.ld | 11 +++++++++++ kernel/module.mk | 9 ++++++--- kernel/src/boot.S | 13 +++++++++++++ kernel/src/elf64.cpp | 13 +++++++++++++ kernel/src/elf64.hpp | 13 +++++++++++++ kernel/src/interrupts.S | 13 +++++++++++++ kernel/src/interrupts.cpp | 13 +++++++++++++ kernel/src/interrupts.hpp | 13 +++++++++++++ kernel/src/kernel.cpp | 13 +++++++++++++ kernel/src/lib/crti.S | 13 +++++++++++++ kernel/src/lib/crtn.S | 13 +++++++++++++ kernel/src/lib/multiboot2.hpp | 13 +++++++++++++ kernel/src/lib/phys_ptr.hpp | 13 +++++++++++++ kernel/src/paging.cpp | 13 +++++++++++++ kernel/src/paging.hpp | 13 +++++++++++++ kernel/src/ring3.S | 13 +++++++++++++ kernel/src/ring3.cpp | 13 +++++++++++++ kernel/src/ring3.hpp | 13 +++++++++++++ kernel/src/serial.cpp | 13 +++++++++++++ kernel/src/serial.hpp | 13 +++++++++++++ kernel/src/utils.cpp | 13 +++++++++++++ kernel/src/utils.hpp | 13 +++++++++++++ test_module/module.mk | 9 ++++++--- test_module/src/test.S | 13 +++++++++++++ test_module/src/test.cpp | 13 +++++++++++++ 27 files changed, 325 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 12e0e94..4a6c42b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ -# Written in 2022 by Amélia COUTARD -# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this file to the public domain worldwide. This file is distributed without any warranty. -# You should have received a copy of the CC0 Public Domain Dedication along with this file. If not, see . +# Written in 2023 by Amélia COUTARD +# To the extent possible under law, the author(s) have dedicated all copyright +# and related and neighboring rights to this file to the public domain worldwide. +# This file is distributed without any warranty. +# You should have received a copy of the CC0 Public Domain Dedication along with +# this file. If not, see . # So, about the license. I don't think I have a copyright on this file's code, but, # since I gave it the CC0 license in case I do, that doesn't matter either way. diff --git a/grub.cfg b/grub.cfg index f1fc76e..a3e0f58 100644 --- a/grub.cfg +++ b/grub.cfg @@ -1,3 +1,13 @@ +# Written in 2023 by Amélia COUTARD +# To the extent possible under law, the author(s) have dedicated all copyright +# and related and neighboring rights to this file to the public domain worldwide. +# This file is distributed without any warranty. +# You should have received a copy of the CC0 Public Domain Dedication along with +# this file. If not, see . + +# So, about the license. I don't think I have a copyright on this file's code, but, +# since I gave it the CC0 license in case I do, that doesn't matter either way. + menuentry "Amycros" { multiboot2 /boot/kernel.elf64 module2 /boot/test-module.elf64 test-module diff --git a/kernel/linker.ld b/kernel/linker.ld index ae3dd3a..11aa47e 100644 --- a/kernel/linker.ld +++ b/kernel/linker.ld @@ -1,3 +1,14 @@ +/* Written in 2023 by Amélia COUTARD + * To the extent possible under law, the author(s) have dedicated all copyright + * and related and neighboring rights to this file to the public domain worldwide. + * This file is distributed without any warranty. + * You should have received a copy of the CC0 Public Domain Dedication along with + * this file. If not, see . + + * So, about the license. I don't think I have a copyright on this file's code, but, + * since I gave it the CC0 license in case I do, that doesn't matter either way. + */ + ENTRY(_start) KERNEL_VMA = 0xFFFFFFFF80000000; diff --git a/kernel/module.mk b/kernel/module.mk index e9bb8a8..d68e55b 100644 --- a/kernel/module.mk +++ b/kernel/module.mk @@ -1,6 +1,9 @@ -# Written in 2022 by Amélia COUTARD -# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this file to the public domain worldwide. This file is distributed without any warranty. -# You should have received a copy of the CC0 Public Domain Dedication along with this file. If not, see . +# Written in 2023 by Amélia COUTARD +# To the extent possible under law, the author(s) have dedicated all copyright +# and related and neighboring rights to this file to the public domain worldwide. +# This file is distributed without any warranty. +# You should have received a copy of the CC0 Public Domain Dedication along with +# this file. If not, see . # So, about the license. I don't think I have a copyright on this file's code, but, # since I gave it the CC0 license in case I do, that doesn't matter either way. diff --git a/kernel/src/boot.S b/kernel/src/boot.S index 9b91c17..f9ad954 100644 --- a/kernel/src/boot.S +++ b/kernel/src/boot.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "lib/multiboot2.hpp" .set KERNEL_VMA, 0xFFFFFFFF80000000 diff --git a/kernel/src/elf64.cpp b/kernel/src/elf64.cpp index 4a8bda3..98d47c5 100644 --- a/kernel/src/elf64.cpp +++ b/kernel/src/elf64.cpp @@ -1 +1,14 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "elf64.hpp" diff --git a/kernel/src/elf64.hpp b/kernel/src/elf64.hpp index 17bbfa3..697c58e 100644 --- a/kernel/src/elf64.hpp +++ b/kernel/src/elf64.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/interrupts.S b/kernel/src/interrupts.S index 3ef3447..35a2381 100644 --- a/kernel/src/interrupts.S +++ b/kernel/src/interrupts.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #define PUSH_REGS \ pushq %rax; \ pushq %rcx; \ diff --git a/kernel/src/interrupts.cpp b/kernel/src/interrupts.cpp index dac7e27..c7bb94d 100644 --- a/kernel/src/interrupts.cpp +++ b/kernel/src/interrupts.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "interrupts.hpp" #include "utils.hpp" #include diff --git a/kernel/src/interrupts.hpp b/kernel/src/interrupts.hpp index be2d6b7..847fe3a 100644 --- a/kernel/src/interrupts.hpp +++ b/kernel/src/interrupts.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/kernel.cpp b/kernel/src/kernel.cpp index e5e5de9..e5c5b8b 100644 --- a/kernel/src/kernel.cpp +++ b/kernel/src/kernel.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "lib/multiboot2.hpp" #include "paging.hpp" #include "utils.hpp" diff --git a/kernel/src/lib/crti.S b/kernel/src/lib/crti.S index 7d0c60b..f56934d 100644 --- a/kernel/src/lib/crti.S +++ b/kernel/src/lib/crti.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + .section .init .global _init .type _init, @function diff --git a/kernel/src/lib/crtn.S b/kernel/src/lib/crtn.S index 2880ebb..4b3b1b9 100644 --- a/kernel/src/lib/crtn.S +++ b/kernel/src/lib/crtn.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + .section .init /* gcc will nicely put the contents of crtend.o's .init section here. */ popq %rbp diff --git a/kernel/src/lib/multiboot2.hpp b/kernel/src/lib/multiboot2.hpp index 1428e5e..c5837a8 100644 --- a/kernel/src/lib/multiboot2.hpp +++ b/kernel/src/lib/multiboot2.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #ifdef __cplusplus diff --git a/kernel/src/lib/phys_ptr.hpp b/kernel/src/lib/phys_ptr.hpp index 256cd5d..c736e5f 100644 --- a/kernel/src/lib/phys_ptr.hpp +++ b/kernel/src/lib/phys_ptr.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/paging.cpp b/kernel/src/paging.cpp index 8295011..0d02f0d 100644 --- a/kernel/src/paging.cpp +++ b/kernel/src/paging.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "paging.hpp" #include "serial.hpp" diff --git a/kernel/src/paging.hpp b/kernel/src/paging.hpp index 20791c2..0d700ab 100644 --- a/kernel/src/paging.hpp +++ b/kernel/src/paging.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/ring3.S b/kernel/src/ring3.S index fb88164..913772a 100644 --- a/kernel/src/ring3.S +++ b/kernel/src/ring3.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + .section .text .globl ftl_to_userspace diff --git a/kernel/src/ring3.cpp b/kernel/src/ring3.cpp index 282f0bb..d4eccbd 100644 --- a/kernel/src/ring3.cpp +++ b/kernel/src/ring3.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "ring3.hpp" #include "utils.hpp" #include "serial.hpp" diff --git a/kernel/src/ring3.hpp b/kernel/src/ring3.hpp index 594d4b3..c1fc2e2 100644 --- a/kernel/src/ring3.hpp +++ b/kernel/src/ring3.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/serial.cpp b/kernel/src/serial.cpp index e8d9ccf..b482d9c 100644 --- a/kernel/src/serial.cpp +++ b/kernel/src/serial.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include #include "serial.hpp" #include "utils.hpp" diff --git a/kernel/src/serial.hpp b/kernel/src/serial.hpp index cdf5165..dfd5f48 100644 --- a/kernel/src/serial.hpp +++ b/kernel/src/serial.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/kernel/src/utils.cpp b/kernel/src/utils.cpp index 8f66b48..4b29077 100644 --- a/kernel/src/utils.cpp +++ b/kernel/src/utils.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include "utils.hpp" #include "interrupts.hpp" #include diff --git a/kernel/src/utils.hpp b/kernel/src/utils.hpp index da225dd..49ab21d 100644 --- a/kernel/src/utils.hpp +++ b/kernel/src/utils.hpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #pragma once #include diff --git a/test_module/module.mk b/test_module/module.mk index dd51dd4..6b0e124 100644 --- a/test_module/module.mk +++ b/test_module/module.mk @@ -1,6 +1,9 @@ -# Written in 2022 by Amélia COUTARD -# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this file to the public domain worldwide. This file is distributed without any warranty. -# You should have received a copy of the CC0 Public Domain Dedication along with this file. If not, see . +# Written in 2023 by Amélia COUTARD +# To the extent possible under law, the author(s) have dedicated all copyright +# and related and neighboring rights to this file to the public domain worldwide. +# This file is distributed without any warranty. +# You should have received a copy of the CC0 Public Domain Dedication along with +# this file. If not, see . # So, about the license. I don't think I have a copyright on this file's code, but, # since I gave it the CC0 license in case I do, that doesn't matter either way. diff --git a/test_module/src/test.S b/test_module/src/test.S index d2d5b04..2931661 100644 --- a/test_module/src/test.S +++ b/test_module/src/test.S @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + .section .text .globl print diff --git a/test_module/src/test.cpp b/test_module/src/test.cpp index 24da563..ef01f00 100644 --- a/test_module/src/test.cpp +++ b/test_module/src/test.cpp @@ -1,3 +1,16 @@ +// Copyright 2023 Amélia COUTARD. +// +// This file from the program isos 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 . + #include extern "C" void print(char c); -- 2.47.0