changed name nyx_os -> nox_os

This commit is contained in:
antifallobst 2023-01-25 12:22:27 +01:00
parent 8d3d090772
commit a49a17b22c
12 changed files with 40 additions and 38 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.21)
project(NyxOS)
project(NoxOS)
add_subdirectory(kernel)

View File

@ -1,14 +1,14 @@
# NyxOS
# NoxOS
## Copyright / License
Copyright (C) Antifallobst <antifallobst@systemausfall.org>
NyxOS is free software:
NoxOS 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.
NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
NoxOS 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.

View File

@ -49,7 +49,7 @@ generate_image() {
-no-emul-boot -boot-load-size 4 -boot-info-table \
--efi-boot limine-cd-efi.bin \
-efi-boot-part --efi-boot-image --protective-msdos-label \
iso -o nyxos.iso
iso -o noxos.iso
rm -rfv iso
@ -58,10 +58,10 @@ generate_image() {
}
emulate() {
qemu-system-x86_64 -cdrom build/nyxos.iso
qemu-system-x86_64 -cdrom build/noxos.iso
}
echo "!=====[ NyxOS build script ]=====!"
echo "!=====[ NoxOS build script ]=====!"
workspace_setup
kernel_build

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -13,10 +13,10 @@
* If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef NYXOS_MATH_H
#define NYXOS_MATH_H
#ifndef NOX_MATH_H
#define NOX_MATH_H
#define max(a, b) (a > b ? a : b)
#define min(a, b) (a > b ? b : a)
#endif //NYXOS_MATH_H
#endif //NOX_MATH_H

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -13,8 +13,8 @@
* If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef NYXOS_MEMORY_H
#define NYXOS_MEMORY_H
#ifndef NOX_MEMORY_H
#define NOX_MEMORY_H
#include "stdtypes.h"
@ -22,4 +22,4 @@ void memory_copy (void* source, void* destination, uint32_t num);
void memory_set (void* destination, uint8_t data, uint32_t num);
bool memory_compare (void* a, void* b, uint32_t num);
#endif //NYXOS_MEMORY_H
#endif //NOX_MEMORY_H

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -13,8 +13,8 @@
* If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef NYXOS_STDTYPES_H
#define NYXOS_STDTYPES_H
#ifndef NOX_STDTYPES_H
#define NOX_STDTYPES_H
typedef unsigned char uint8_t;
typedef signed char int8_t;
@ -32,4 +32,4 @@ typedef _Bool bool;
#define NULL (void*)0
#endif //NYXOS_STDTYPES_H
#endif //NOX_STDTYPES_H

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -13,8 +13,8 @@
* If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef NYXOS_STRING_H
#define NYXOS_STRING_H
#ifndef NOX_STRING_H
#define NOX_STRING_H
#include "stdtypes.h"
@ -23,4 +23,4 @@ typedef const char* string_t;
uint32_t string_length (string_t str);
bool string_compare(string_t a, string_t b);
#endif //NYXOS_STRING_H
#endif //NOX_STRING_H

View File

@ -39,4 +39,6 @@ SECTIONS
*(.eh_frame)
*(.note .note.*)
}
_kernel_end = .;
}

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
@ -29,7 +29,7 @@ void _start() {
struct limine_terminal* terminal = terminal_request.response->terminals[0];
terminal_request.response->write(terminal, "Booting NyxOS", 13);
terminal_request.response->write(terminal, "Booting NoxOS...", 16);
while(true) asm("hlt");
}

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -43,4 +43,4 @@ bool memory_compare (void* a, void* b, uint32_t num) {
}
return true;
}
}

View File

@ -1,11 +1,11 @@
/* Copyright (C) Antifallobst <antifallobst@systemausfall.org>
*
* NyxOS is free software:
* NoxOS 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.
*
* NyxOS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* NoxOS 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.
*
@ -35,4 +35,4 @@ bool string_compare(string_t a, string_t b) {
return false;
}
return memory_compare(a, b, a_len);
}
}

View File

@ -1,5 +1,5 @@
TIMEOUT=5
:NyxOS
:NoxOS
PROTOCOL=limine
KERNEL_PATH=boot:///kernel.elf
KERNEL_PATH=boot:///kernel.elf