Skip to content

Commit 27286bf

Browse files
authored
License COS under GPLv2 (#64)
* Add the GPLv2 license * Add license headers to all files * Add license headers to libcos * Add license headers to the two user applications * Add license disclaimer at README * Add license headers to assembly files
1 parent e2dfb44 commit 27286bf

186 files changed

Lines changed: 3282 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 338 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ chmod +x build.sh
4242
This will generate a file `image.iso` inside your working directory. Use VMWare or your favourite VM emulator (or put it on a liveCD if you're brave enough) to run and test it out. Or run `qemu.sh` to run it on QEMU.
4343

4444
![An image of COS saying 'Hello, world!'](images/hello%20world%20with%20cosh.png)
45+
46+
## License
47+
48+
This project is released under the GPLv2 license. To find out more, read [LICENSE](LICENSE).

kernel/include/kclib/ctype.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* ctype.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
int isalnum (int c);

kernel/include/kclib/stdio.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* stdio.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <stdarg.h>

kernel/include/kclib/string.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* string.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <stddef.h>

kernel/include/kernel/acpi/acpi.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* acpi.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <stdint.h>

kernel/include/kernel/acpi/acpi_common.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* acpi_common.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <stdint.h>

kernel/include/kernel/acpi/fadt.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* fadt.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <kernel/acpi/acpi_common.h>

kernel/include/kernel/acpi/madt.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* madt.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <kernel/acpi/acpi_common.h>

kernel/include/kernel/acpi/rsdp.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* rsdp.h
3+
* Copyright (C) 2026 Aditya Kumar
4+
*
5+
* This program is free software; you can redistribute it and/or modify it under the terms of the
6+
* GNU General Public License as published by the Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10+
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11+
* General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program; if
14+
* not, see <https://www.gnu.org/licenses/>.
15+
*/
16+
117
#pragma once
218

319
#include <stdint.h>

0 commit comments

Comments
 (0)