Skip to content

Commit 87c13b2

Browse files
committed
added licensing
1 parent ca222a0 commit 87c13b2

Some content is hidden

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

105 files changed

+3204
-378
lines changed

PeachOS.c

Lines changed: 405 additions & 378 deletions
Large diffs are not rendered by default.

PeachOS64Bit/programs/blank/blank.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#include "peachos.h"
229
#include "stdlib.h"
330
#include "stdio.h"

PeachOS64Bit/programs/blank/linker.ld

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
ENTRY(_start)
229
OUTPUT_FORMAT(elf64-x86-64)
330
SECTIONS

PeachOS64Bit/programs/shell/linker.ld

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
ENTRY(_start)
229
OUTPUT_FORMAT(elf64-x86-64)
330
SECTIONS

PeachOS64Bit/programs/shell/src/shell.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#include "shell.h"
229
#include "stdio.h"
330
#include "stdlib.h"

PeachOS64Bit/programs/shell/src/shell.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#ifndef SHELL_H
229
#define SHELL_H
330

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1+
; PeachOS 64-Bit Kernel Project
2+
; Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
3+
;
4+
; This file is part of the PeachOS 64-Bit Kernel.
5+
;
6+
; This program is free software; you can redistribute it and/or
7+
; modify it under the terms of the GNU General Public License
8+
; version 2 as published by the Free Software Foundation.
9+
;
10+
; This program is distributed in the hope that it will be useful,
11+
; but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+
; See the GNU General Public License version 2 for more details.
14+
;
15+
; You should have received a copy of the GNU General Public License
16+
; along with this program; if not, see <https://www.gnu.org/licenses/>.
17+
;
18+
; For full source code, documentation, and structured learning,
19+
; see the official kernel development course part one:
20+
; https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
21+
;
22+
; Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
23+
;
24+
; Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
25+
;
26+
127
[BITS 64]
228
jmp $

PeachOS64Bit/programs/stdlib/src/file.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#include "file.h"
229
#include "peachos.h"
330
#include <stdint.h>

PeachOS64Bit/programs/stdlib/src/file.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#ifndef USERLAND_FILE_H
229
#define USERLAND_FILE_H
330

PeachOS64Bit/programs/stdlib/src/memory.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
/*
2+
* PeachOS 64-Bit Kernel Project
3+
* Copyright (C) 2026 Daniel McCarthy <daniel@dragonzap.com>
4+
*
5+
* This file is part of the PeachOS 64-Bit Kernel.
6+
*
7+
* This program is free software; you can redistribute it and/or
8+
* modify it under the terms of the GNU General Public License
9+
* version 2 as published by the Free Software Foundation.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
* See the GNU General Public License version 2 for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, see <https://www.gnu.org/licenses/>.
18+
*
19+
* For full source code, documentation, and structured learning,
20+
* see the official kernel development course part one:
21+
* https://dragonzap.com/course/developing-a-multithreaded-kernel-from-scratch
22+
23+
* Get part one and part two module one, module two all peachos courses (69 hours of content): https://dragonzap.com/offer/kernel-development-from-scratch-69-hours
24+
25+
* Get the part two, module one and two modules: https://dragonzap.com/offer/developing-a-multithreaded-kernel-from-scratch-part-two-full-series
26+
*/
27+
128
#include "memory.h"
229

330
void* memset(void* ptr, int c, size_t size)

0 commit comments

Comments
 (0)