summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-16 14:21:16 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-16 14:21:16 +0100
commita4d3338e4f9ce011180b6d4f599acb4f34bba617 (patch)
treea22155808898df7b9bf9b5f0254b6ceb3086ab88
parent31eb508f29c88c4468c0b83616561a08521a1878 (diff)
meta: important document improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--.gitignore6
-rw-r--r--docs/tex/30pin.tex20
-rw-r--r--docs/tex/epm.tex2
-rw-r--r--docs/tex/pci-tree.tex2
-rw-r--r--lib/30pin.h10
-rw-r--r--lib/boot.h4
-rw-r--r--lib/bootnet.h2
-rw-r--r--lib/cxx-abi.hpp5
-rw-r--r--lib/fd.h20
-rw-r--r--lib/mp-bit.h2
-rw-r--r--lib/partition-map.h4
-rw-r--r--lib/pci-tree.h6
-rw-r--r--lib/string.h2
-rw-r--r--lib/xcoff.h2
-rw-r--r--libfdt/libfdt.h2
-rw-r--r--libfdt/libfdt_address.c2
-rw-r--r--libfdt/libfdt_empty_tree.c2
-rw-r--r--libfdt/libfdt_env.h2
-rw-r--r--libfdt/libfdt_strerror.c2
-rw-r--r--src/32x0/32x0_boot.32x2
-rw-r--r--src/64x0/64x0_boot.64x2
-rw-r--r--src/amd64/amd64-boot.asm2
-rw-r--r--src/amd64/amd64-test.asm2
-rw-r--r--src/arm64/arm64-30pin.c2
-rw-r--r--src/arm64/arm64-boot.S2
-rw-r--r--src/arm64/arm64-err.c2
-rw-r--r--src/arm64/arm64-start-context.S2
-rw-r--r--src/arm64/arm64-uart.c2
-rw-r--r--src/hal/neboot-ahci-driver.c6
-rw-r--r--src/hal/neboot-flash-driver.c2
-rw-r--r--src/neboot-bootnet.c2
-rw-r--r--src/neboot-cpu-api.c2
-rw-r--r--src/neboot-cxx-abi.cc3
-rw-r--r--src/neboot-partition-map-parse.c2
-rw-r--r--src/neboot-partition-map.c2
-rw-r--r--src/neboot-pci-tree.c22
-rw-r--r--src/neboot-print-name.c2
-rw-r--r--src/neboot-start.c16
-rw-r--r--src/neboot-string.c6
-rw-r--r--src/ppc64/ppc64-err.c2
-rw-r--r--src/ppc64/ppc64-hal.c2
-rw-r--r--src/ppc64/ppc64-uart.c2
-rw-r--r--src/rv64/rv64-api.s4
-rw-r--r--src/rv64/rv64-boot.s6
-rw-r--r--src/rv64/rv64-err.c2
-rw-r--r--src/rv64/rv64-uart.c2
46 files changed, 104 insertions, 96 deletions
diff --git a/.gitignore b/.gitignore
index 2459e4a..3a984bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,12 @@
.vscode
+*.fls
+*.pdf
+*.gz
+*.aux
+*.fdb_*
+
html/
latex/
diff --git a/docs/tex/30pin.tex b/docs/tex/30pin.tex
index 5ca006c..88d36b6 100644
--- a/docs/tex/30pin.tex
+++ b/docs/tex/30pin.tex
@@ -14,8 +14,8 @@
\titleformat{\section}{\large\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{1em}{}
-\title{\texttt{30Pin}: Technical Specification}
-\author{Amlal EL Mahrouss}
+\title{\texttt{30Pin} Technical Specification}
+\author{Amlal El Mahrouss}
\date{\today}
\lstset{
@@ -37,25 +37,25 @@
\section{Constants}
\begin{itemize}[leftmargin=2em]
- \item \texttt{CB\_30PIN\_MAG} - Magic number identifier for a 30pin packet. Defined as \texttt{"TP"}.
- \item \texttt{CP\_30PIN\_MAG\_LEN} - Length of the magic number (\texttt{2} bytes).
- \item \texttt{CB\_30PIN\_BUFFER\_LEN} - Length of the data buffer in the packet (\texttt{498} bytes).
- \item \texttt{CB\_30PIN\_EOP\_LEN} - Length of the end-of-packet data (\texttt{11} bytes).
+ \item \texttt{NB\_30PIN\_MAG} - Magic number identifier for a 30pin packet. Defined as \texttt{"TP"}.
+ \item \texttt{NB\_30PIN\_MAG\_LEN} - Length of the magic number (\texttt{2} bytes).
+ \item \texttt{NB\_30PIN\_BUFFER\_LEN} - Length of the data buffer in the packet (\texttt{498} bytes).
+ \item \texttt{NB\_30PIN\_EOP\_LEN} - Length of the end-of-packet data (\texttt{11} bytes).
\end{itemize}
\section{Data Structures}
-\subsection{\texttt{cb\_tpin\_recovery\_packet}}
+\subsection{\texttt{NB\_tpin\_recovery\_packet}}
\begin{lstlisting}[language=C]
-struct _cb_tpin_recovery_packet
+struct _nb_tpin_recovery_packet
{
- uint8_t mag[CP_30PIN_MAG_LEN]; // Magic number
+ uint8_t mag[NB_30PIN_MAG_LEN]; // Magic number
uint8_t kind; // Packet kind identifier
uint8_t buffer[NB_30PIN_BUFFER_LEN]; // Packet data buffer
uint8_t eop[NB_30PIN_EOP_LEN]; // End-of-packet data
};
\end{lstlisting}
-\textbf{Typedef:} \texttt{cb\_tpin\_recovery\_packet\_t}
+\textbf{Typedef:} \texttt{NB\_tpin\_recovery\_packet\_t}
\section{Enumerations}
\subsection{Packet Kinds}
diff --git a/docs/tex/epm.tex b/docs/tex/epm.tex
index f97df2c..c8b1d7a 100644
--- a/docs/tex/epm.tex
+++ b/docs/tex/epm.tex
@@ -26,7 +26,7 @@
}
\title{EPM Partition Map: Technical Specification}
-\author{Amlal EL Mahrouss}
+\author{Amlal El Mahrouss}
\date{\today}
\begin{document}
diff --git a/docs/tex/pci-tree.tex b/docs/tex/pci-tree.tex
index f8d4487..5ca6dfd 100644
--- a/docs/tex/pci-tree.tex
+++ b/docs/tex/pci-tree.tex
@@ -32,7 +32,7 @@ The trade-offs (portability, complexity) are largely justified by the need of a
Language of implementation is the C programming language
\begin{lstlisting}
-struct hw_cb_pci_tree {
+struct hw_nb_pci_tree {
cb_pci_num_t d_magic;
cb_pci_num_t d_version;
cb_pci_num_t d_off_props;
diff --git a/lib/30pin.h b/lib/30pin.h
index 7128c3f..9de524f 100644
--- a/lib/30pin.h
+++ b/lib/30pin.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -13,7 +13,7 @@
/// @details This file contains the definitions and structures used for the 30pin recovery protocol.
#define NB_30PIN_MAG "TP"
-#define CP_30PIN_MAG_LEN (2)
+#define NB_30PIN_MAG_LEN (2)
#define NB_30PIN_BUFFER_LEN (498)
#define NB_30PIN_EOP_LEN (11)
@@ -23,8 +23,8 @@
/// @param kind kind of packet we deal with.
/// @param buffer the data of the packet.
/// @param eop end of packet data.
-struct _cb_tpin_recovery_packet {
- uint8_t mag[CP_30PIN_MAG_LEN];
+struct _nb_tpin_recovery_packet {
+ uint8_t mag[NB_30PIN_MAG_LEN];
uint8_t kind;
uint8_t buffer[NB_30PIN_BUFFER_LEN];
uint8_t eop[NB_30PIN_EOP_LEN];
@@ -40,4 +40,4 @@ enum {
TPIN_RECOVERY_PACKET_KIND_EOP_NACK = 5,
};
-typedef struct _cb_tpin_recovery_packet cb_tpin_recovery_packet_t; \ No newline at end of file
+typedef struct _nb_tpin_recovery_packet cb_tpin_recovery_packet_t; \ No newline at end of file
diff --git a/lib/boot.h b/lib/boot.h
index 8a28eff..719f782 100644
--- a/lib/boot.h
+++ b/lib/boot.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -180,7 +180,7 @@ typedef void (*cb_proc_t)();
typedef char ascii_char_t;
/// @brief Linear Executable Header
-/// @author Amlal EL Mahrouss (Amlal EL Mahrouss)
+/// @author Amlal El Mahrouss (Amlal El Mahrouss)
struct __attribute__((aligned(4))) cb_boot_header {
const ascii_char_t h_mag[2]; // magic number
const ascii_char_t h_name[10]; // operating system name
diff --git a/lib/bootnet.h b/lib/bootnet.h
index b0c3fd9..f9f421d 100644
--- a/lib/bootnet.h
+++ b/lib/bootnet.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/lib/cxx-abi.hpp b/lib/cxx-abi.hpp
index 61225fc..681a926 100644
--- a/lib/cxx-abi.hpp
+++ b/lib/cxx-abi.hpp
@@ -1,6 +1,7 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -8,7 +9,7 @@
#define DSO_MAX_OBJECTS (128)
-struct atexit_func_entry_t {
+struct atexit_func_entry_t final {
void (*destructor_func)(void*);
void* obj_ptr;
void* dso_handle;
diff --git a/lib/fd.h b/lib/fd.h
index 1949c48..967afa7 100644
--- a/lib/fd.h
+++ b/lib/fd.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -8,21 +8,21 @@
#include <lib/boot.h>
-struct _cb_file_descriptor;
+struct _nb_file_descriptor;
/// @brief NeBoot file/device descriptor.
/// @version 1
-typedef struct _cb_file_descriptor {
+typedef struct _nb_file_descriptor {
int32_t f_kind;
int32_t f_filesystem;
- size_t (*f_write)(void* ptr, size_t size, size_t nitems, struct _cb_file_descriptor* self);
- size_t (*f_read)(void* ptr, size_t size, size_t nitems, struct _cb_file_descriptor* self);
- int (*f_seek)(struct _cb_file_descriptor* self, size_t off, int whence);
- int (*f_tell)(struct _cb_file_descriptor* self);
- int (*f_rewind)(struct _cb_file_descriptor* self);
- int (*f_eof)(struct _cb_file_descriptor* self);
- int (*f_close)(struct _cb_file_descriptor* self);
+ size_t (*f_write)(void* ptr, size_t size, size_t nitems, struct _nb_file_descriptor* self);
+ size_t (*f_read)(void* ptr, size_t size, size_t nitems, struct _nb_file_descriptor* self);
+ int (*f_seek)(struct _nb_file_descriptor* self, size_t off, int whence);
+ int (*f_tell)(struct _nb_file_descriptor* self);
+ int (*f_rewind)(struct _nb_file_descriptor* self);
+ int (*f_eof)(struct _nb_file_descriptor* self);
+ int (*f_close)(struct _nb_file_descriptor* self);
} cb_file_descriptor_t;
/// @brief Grabs a new device reference.
diff --git a/lib/mp-bit.h b/lib/mp-bit.h
index 924fcdf..6fb174e 100644
--- a/lib/mp-bit.h
+++ b/lib/mp-bit.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/lib/partition-map.h b/lib/partition-map.h
index f034335..55e0407 100644
--- a/lib/partition-map.h
+++ b/lib/partition-map.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -87,7 +87,7 @@ enum {
EPM_LINUX = 0x8f,
EPM_BSD = 0x9f,
EPM_NEKERNEL_OS = 0x1f,
- EPM_SNU_OS = 0x2f,
+ EPM_LEGACY_OS = 0x2f,
};
/// @brief check for supported filesystem.
diff --git a/lib/pci-tree.h b/lib/pci-tree.h
index a68fd4c..b73d827 100644
--- a/lib/pci-tree.h
+++ b/lib/pci-tree.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -8,7 +8,7 @@
/// @file pci-tree.h
/// @brief PCI Tree layout.
-/// @author Amlal EL Mahrouss
+/// @author Amlal El Mahrouss
#include <lib/boot.h>
@@ -42,7 +42,7 @@ typedef uint8_t cb_pci_device_t;
/// @brief hardware tree header
/// used by guest to resolve hardware peripherals.
-struct hw_cb_pci_tree {
+struct hw_nb_pci_tree {
cb_pci_num_t d_magic;
cb_pci_num_t d_version;
cb_pci_num_t d_off_props;
diff --git a/lib/string.h b/lib/string.h
index 1ea01da..3fbe399 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/lib/xcoff.h b/lib/xcoff.h
index 180b42a..c4eef88 100644
--- a/lib/xcoff.h
+++ b/lib/xcoff.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
File: xcoff.h
Purpose: XCOFF for NeBoot.
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 5019eb2..f530957 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/libfdt.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/libfdt/libfdt_address.c b/libfdt/libfdt_address.c
index a9950dc..9d6561d 100644
--- a/libfdt/libfdt_address.c
+++ b/libfdt/libfdt_address.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/libfdt/libfdt_empty_tree.c b/libfdt/libfdt_empty_tree.c
index 0cc854f..e51146b 100644
--- a/libfdt/libfdt_empty_tree.c
+++ b/libfdt/libfdt_empty_tree.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/libfdt/libfdt_env.h b/libfdt/libfdt_env.h
index b443449..b8f389b 100644
--- a/libfdt/libfdt_env.h
+++ b/libfdt/libfdt_env.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/libfdt/libfdt_strerror.c b/libfdt/libfdt_strerror.c
index accd58a..f84457d 100644
--- a/libfdt/libfdt_strerror.c
+++ b/libfdt/libfdt_strerror.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/32x0/32x0_boot.32x b/src/32x0/32x0_boot.32x
index 44ee037..5256293 100644
--- a/src/32x0/32x0_boot.32x
+++ b/src/32x0/32x0_boot.32x
@@ -3,7 +3,7 @@
;; interrupts: 0x800 (much like the 64x0)
;; brief: jump to main
-;; Copyright 2024, Amlal EL Mahrouss, all rights reserved.
+;; Copyright 2024, Amlal El Mahrouss, all rights reserved.
%def ROMBOOT_BASE $1000
diff --git a/src/64x0/64x0_boot.64x b/src/64x0/64x0_boot.64x
index 6ee71b2..7fb6825 100644
--- a/src/64x0/64x0_boot.64x
+++ b/src/64x0/64x0_boot.64x
@@ -3,7 +3,7 @@
# interrupts: 1M - 2048
# brief: jump to r16 which contains the code to jump on.
-# Copyright 2024, Amlal EL Mahrouss, all rights reserved.
+# Copyright 2024, Amlal El Mahrouss, all rights reserved.
export .text __start
lda r15, 0x7c00
diff --git a/src/amd64/amd64-boot.asm b/src/amd64/amd64-boot.asm
index d578aa9..1601727 100644
--- a/src/amd64/amd64-boot.asm
+++ b/src/amd64/amd64-boot.asm
@@ -1,5 +1,5 @@
;; AMD64 NeBoot Master Boot Program.
-;; Written by Amlal EL Mahrouss
+;; Written by Amlal El Mahrouss
%define ENTRYPOINT 0x00FF
diff --git a/src/amd64/amd64-test.asm b/src/amd64/amd64-test.asm
index b89e522..c71a191 100644
--- a/src/amd64/amd64-test.asm
+++ b/src/amd64/amd64-test.asm
@@ -1,5 +1,5 @@
;; AMD64 NeBoot Sample program.
-;; Written by Amlal EL Mahrouss
+;; Written by Amlal El Mahrouss
[bits 16]
[org 0x7c00]
diff --git a/src/arm64/arm64-30pin.c b/src/arm64/arm64-30pin.c
index eb89c67..2ede2e4 100644
--- a/src/arm64/arm64-30pin.c
+++ b/src/arm64/arm64-30pin.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/arm64/arm64-boot.S b/src/arm64/arm64-boot.S
index 4fbd3f8..1f77371 100644
--- a/src/arm64/arm64-boot.S
+++ b/src/arm64/arm64-boot.S
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/arm64/arm64-err.c b/src/arm64/arm64-err.c
index c734ada..68333ad 100644
--- a/src/arm64/arm64-err.c
+++ b/src/arm64/arm64-err.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/arm64/arm64-start-context.S b/src/arm64/arm64-start-context.S
index 5a2539b..315bcc1 100644
--- a/src/arm64/arm64-start-context.S
+++ b/src/arm64/arm64-start-context.S
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/arm64/arm64-uart.c b/src/arm64/arm64-uart.c
index 4723204..b0d31db 100644
--- a/src/arm64/arm64-uart.c
+++ b/src/arm64/arm64-uart.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/hal/neboot-ahci-driver.c b/src/hal/neboot-ahci-driver.c
index 1ee1272..4b26a74 100644
--- a/src/hal/neboot-ahci-driver.c
+++ b/src/hal/neboot-ahci-driver.c
@@ -1,17 +1,17 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
/**
* @file neboot-ahci-driver.cc
- * @author Amlal EL Mahrouss (amlal@nekernel.org)
+ * @author Amlal El Mahrouss (amlal@nekernel.org)
* @brief SATA Disk support, via AHCI.
* @version 0.2
* @date 2024-01-16
*
- * @copyright Copyright (c) 2024-2025, Amlal EL Mahrouss.
+ * @copyright Copyright (c) 2024-2025, Amlal El Mahrouss.
*
*/
diff --git a/src/hal/neboot-flash-driver.c b/src/hal/neboot-flash-driver.c
index d1b0907..b46e242 100644
--- a/src/hal/neboot-flash-driver.c
+++ b/src/hal/neboot-flash-driver.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
-Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-bootnet.c b/src/neboot-bootnet.c
index a547b35..73aff94 100644
--- a/src/neboot-bootnet.c
+++ b/src/neboot-bootnet.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2025, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-cpu-api.c b/src/neboot-cpu-api.c
index 4617343..ac25602 100644
--- a/src/neboot-cpu-api.c
+++ b/src/neboot-cpu-api.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-cxx-abi.cc b/src/neboot-cxx-abi.cc
index 88b2a6a..ee622f8 100644
--- a/src/neboot-cxx-abi.cc
+++ b/src/neboot-cxx-abi.cc
@@ -1,6 +1,7 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
+ Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-partition-map-parse.c b/src/neboot-partition-map-parse.c
index 7d8f80f..00df4ea 100644
--- a/src/neboot-partition-map-parse.c
+++ b/src/neboot-partition-map-parse.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-partition-map.c b/src/neboot-partition-map.c
index edc66e7..d27f534 100644
--- a/src/neboot-partition-map.c
+++ b/src/neboot-partition-map.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-pci-tree.c b/src/neboot-pci-tree.c
index a506323..832aa22 100644
--- a/src/neboot-pci-tree.c
+++ b/src/neboot-pci-tree.c
@@ -1,17 +1,17 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
/**
* @file neboot-pci-tree.c
- * @author Amlal EL Mahrouss (amlal@nekernel.org)
+ * @author Amlal El Mahrouss (amlal@nekernel.org)
* @brief PCI tree implementation.
* @version 0.1
* @date 2024-01-22
*
- * @copyright Copyright (c) 2024 Amlal EL Mahrouss
+ * @copyright Copyright (c) 2024 Amlal El Mahrouss
*
*/
@@ -23,15 +23,15 @@
/// Standard Root table (Mahrouss Table)
#define NB_PCI_ROOT_NAME "/pci-tree/@/"
-static struct hw_cb_pci_tree* cb_base_tree = nil;
-static struct hw_cb_pci_tree* cb_latest_tree = nil;
-static struct hw_cb_pci_tree* cb_last_tree = nil;
+static struct hw_nb_pci_tree* cb_base_tree = nil;
+static struct hw_nb_pci_tree* cb_latest_tree = nil;
+static struct hw_nb_pci_tree* cb_last_tree = nil;
/// \brief Init the PCI device tree structure.
/// \return if it already exists -> false
/// Otherwise true.
boolean cb_pci_init_tree(void) {
- cb_base_tree = (struct hw_cb_pci_tree*) (NB_PCI_TREE_BASE);
+ cb_base_tree = (struct hw_nb_pci_tree*) (NB_PCI_TREE_BASE);
// huh? anyway let's ignore it then.
if (cb_base_tree->d_magic != NB_PCI_DEV_MAGIC) {
@@ -46,7 +46,7 @@ boolean cb_pci_init_tree(void) {
cb_base_tree->d_off_struct = 0;
cb_base_tree->d_version = NB_PCI_VERSION;
- cb_base_tree->d_next_sibling = (cb_pci_num_t) (cb_base_tree + sizeof(struct hw_cb_pci_tree));
+ cb_base_tree->d_next_sibling = (cb_pci_num_t) (cb_base_tree + sizeof(struct hw_nb_pci_tree));
cb_base_tree->d_first_node = (cb_pci_num_t) cb_base_tree;
cb_put_string(">> Append root device: " NB_PCI_ROOT_NAME "\r\n");
@@ -64,12 +64,12 @@ boolean cb_pci_init_tree(void) {
boolean cb_pci_append_tree(const caddr_t name, cb_pci_num_t struct_ptr, cb_pci_num_t struct_sz) {
if (!name || *name == 0 || cb_latest_tree == nil) return no;
- struct hw_cb_pci_tree* cb_pci_tree = (struct hw_cb_pci_tree*) (cb_latest_tree);
+ struct hw_nb_pci_tree* cb_pci_tree = (struct hw_nb_pci_tree*) (cb_latest_tree);
while (cb_pci_tree->d_magic == NB_PCI_DEV_MAGIC) {
if (strcmp(cb_pci_tree->d_name, name) == 0) return no;
- cb_pci_tree = (struct hw_cb_pci_tree*) (cb_pci_tree + sizeof(struct hw_cb_pci_tree));
+ cb_pci_tree = (struct hw_nb_pci_tree*) (cb_pci_tree + sizeof(struct hw_nb_pci_tree));
}
cb_pci_tree->d_magic = NB_PCI_DEV_MAGIC;
@@ -82,7 +82,7 @@ boolean cb_pci_append_tree(const caddr_t name, cb_pci_num_t struct_ptr, cb_pci_n
cb_pci_tree->d_sz_props = 0;
cb_pci_tree->d_version = NB_PCI_VERSION;
- cb_pci_tree->d_next_sibling = (cb_pci_num_t) (cb_pci_tree + sizeof(struct hw_cb_pci_tree));
+ cb_pci_tree->d_next_sibling = (cb_pci_num_t) (cb_pci_tree + sizeof(struct hw_nb_pci_tree));
cb_pci_tree->d_first_node = (cb_pci_num_t) cb_latest_tree;
cb_latest_tree = cb_pci_tree;
diff --git a/src/neboot-print-name.c b/src/neboot-print-name.c
index 90fe104..ae15373 100644
--- a/src/neboot-print-name.c
+++ b/src/neboot-print-name.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/neboot-start.c b/src/neboot-start.c
index 29a3389..4d0032a 100644
--- a/src/neboot-start.c
+++ b/src/neboot-start.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
@@ -18,7 +18,7 @@
// @brief Start file // This is where the firmware starts it's initialization //
// code. //
-// @author Amlal EL Mahrouss //
+// @author Amlal El Mahrouss //
/////////////////////////////////////////////////////////////////////////////////////////
@@ -29,23 +29,23 @@ extern int cb_boot_processor_ready;
/// @brief hardware thread counter (rv64 only)
#ifdef __COMPILE_RISCV__
-uint64_t __cb_hart_counter = 0UL;
+uint64_t __nb_hart_counter = 0UL;
#endif
/// @brief Start executing the firmware.
/// @param
void cb_start_exec(void) {
#ifndef __COMPILE_RISCV__
- static uint64_t __cb_hart_counter = 0UL;
+ static uint64_t __nb_hart_counter = 0UL;
#endif
- ++__cb_hart_counter;
+ ++__nb_hart_counter;
- uintptr_t hart = __cb_hart_counter;
+ uintptr_t hart = __nb_hart_counter;
// let the hart 0 init our stuff.
if (hart == 0) {
- cb_put_string("CB> Welcome to NeBoot, (c) Amlal EL Mahrouss. Built the ");
+ cb_put_string("CB> Welcome to NeBoot, (c) Amlal El Mahrouss. Built the ");
cb_put_string(__DATE__);
cb_put_string("\r\r\n");
@@ -147,7 +147,7 @@ void cb_start_exec(void) {
/// end of TODO
while (yes) {
- if (__cb_hart_counter == 0) {
+ if (__nb_hart_counter == 0) {
cb_restart_machine();
}
}
diff --git a/src/neboot-string.c b/src/neboot-string.c
index 0c249a4..4ebe08a 100644
--- a/src/neboot-string.c
+++ b/src/neboot-string.c
@@ -1,17 +1,17 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
/**
* @file neboot-string.c
- * @author Amlal EL Mahrouss (amlal@nekernel.org)
+ * @author Amlal El Mahrouss (amlal@nekernel.org)
* @brief string library.
* @version 0.1
* @date 2024-01-16
*
- * @copyright Copyright (c) 2024 Amlal EL Mahrouss
+ * @copyright Copyright (c) 2024 Amlal El Mahrouss
*
*/
diff --git a/src/ppc64/ppc64-err.c b/src/ppc64/ppc64-err.c
index 1ef0089..8cde319 100644
--- a/src/ppc64/ppc64-err.c
+++ b/src/ppc64/ppc64-err.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/ppc64/ppc64-hal.c b/src/ppc64/ppc64-hal.c
index 993e5be..949d4fa 100644
--- a/src/ppc64/ppc64-hal.c
+++ b/src/ppc64/ppc64-hal.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/ppc64/ppc64-uart.c b/src/ppc64/ppc64-uart.c
index 9830342..0176e60 100644
--- a/src/ppc64/ppc64-uart.c
+++ b/src/ppc64/ppc64-uart.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/rv64/rv64-api.s b/src/rv64/rv64-api.s
index b4a0749..29ee302 100644
--- a/src/rv64/rv64-api.s
+++ b/src/rv64/rv64-api.s
@@ -1,7 +1,7 @@
# ====================================
#
-# Amlal EL Mahrouss NeBoot
-# (c) Amlal EL Mahrouss all rights reserved.
+# Amlal El Mahrouss NeBoot
+# (c) Amlal El Mahrouss all rights reserved.
#
# Purpose: Assembler API for RISC-V
#
diff --git a/src/rv64/rv64-boot.s b/src/rv64/rv64-boot.s
index a9afd02..c51a398 100644
--- a/src/rv64/rv64-boot.s
+++ b/src/rv64/rv64-boot.s
@@ -2,7 +2,7 @@
* ========================================================
*
* NeBoot
- * Copyright 2024, Amlal EL Mahrouss, all rights reserved.
+ * Copyright 2024, Amlal El Mahrouss, all rights reserved.
*
* Purpose: Startup code for RISC-V.
*
@@ -33,7 +33,7 @@ cb_reset_vector:
.cfi_endproc
cb_start_exec_asm:
- lw t0, __cb_hart_counter
+ lw t0, __nb_hart_counter
lw t1, cb_boot_processor_ready
not t0, t0
@@ -110,5 +110,5 @@ cb_stack_list:
cb_stack_align:
.word 0x8000
-__cb_max_harts:
+__nb_max_harts:
.word 2
diff --git a/src/rv64/rv64-err.c b/src/rv64/rv64-err.c
index a616d83..fb8f7f7 100644
--- a/src/rv64/rv64-err.c
+++ b/src/rv64/rv64-err.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */
diff --git a/src/rv64/rv64-uart.c b/src/rv64/rv64-uart.c
index 22b0793..c69d302 100644
--- a/src/rv64/rv64-uart.c
+++ b/src/rv64/rv64-uart.c
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+ Copyright (C) 2024, Amlal El Mahrouss, all rights reserved.
------------------------------------------- */