summaryrefslogtreecommitdiffhomepage
path: root/src/rv64
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-28 09:30:38 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-28 09:30:38 +0100
commit7df7ed6d026c5e1f3b8111e3536af3771301c177 (patch)
treef87916ee645aec06971a84dc1e9e5f1267fbe755 /src/rv64
parent176cf8f237745d658185a2fba8fff1401c1c2b5f (diff)
feat! firmware breaking changes on the API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/rv64')
-rw-r--r--src/rv64/rv64-api.s12
-rw-r--r--src/rv64/rv64-boot.s14
-rw-r--r--src/rv64/rv64-err.c11
-rw-r--r--src/rv64/rv64-uart.c16
4 files changed, 20 insertions, 33 deletions
diff --git a/src/rv64/rv64-api.s b/src/rv64/rv64-api.s
index ee8b03c..36ea838 100644
--- a/src/rv64/rv64-api.s
+++ b/src/rv64/rv64-api.s
@@ -1,11 +1,7 @@
-# ====================================
-#
-# Amlal El Mahrouss NeBoot
-# (c) Amlal El Mahrouss licensed under Apache 2.0.
-#
-# Purpose: Assembler API for RISC-V
-#
-# ====================================
+# // Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+# // Distributed under the Apache Software License, Version 2.0. (See accompanying
+# // file LICENSE_1_0.txt or copy at http://www.apache.org/licenses/LICENSE-2.0)
+# // Official repository: https://github.com/nekernel-org/neboot
.balign 4
.global cb_flush_tlb
diff --git a/src/rv64/rv64-boot.s b/src/rv64/rv64-boot.s
index 7bd2add..1c48033 100644
--- a/src/rv64/rv64-boot.s
+++ b/src/rv64/rv64-boot.s
@@ -1,13 +1,7 @@
-/*
- * ========================================================
- *
- * NeBoot
- * Copyright 2024, Amlal El Mahrouss, licensed under Apache 2.0.
- *
- * Purpose: Startup code for RISC-V.
- *
- * ========================================================
- */
+# // Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+# // Distributed under the Apache Software License, Version 2.0. (See accompanying
+# // file LICENSE_1_0.txt or copy at http://www.apache.org/licenses/LICENSE-2.0)
+# // Official repository: https://github.com/nekernel-org/neboot
/* Code starts at 8M, everything below is memory mapped hardware. */
diff --git a/src/rv64/rv64-err.c b/src/rv64/rv64-err.c
index a16b703..e1b1ff0 100644
--- a/src/rv64/rv64-err.c
+++ b/src/rv64/rv64-err.c
@@ -1,10 +1,9 @@
-/* -------------------------------------------
+// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Apache Software License, Version 2.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.apache.org/licenses/LICENSE-2.0)
+// Official repository: https://github.com/nekernel-org/neboot
- Copyright (C) 2024, Amlal El Mahrouss, licensed under Apache 2.0.
-
-------------------------------------------- */
-
-#include <lib/boot.h>
+#include <include/boot.h>
/// BUGS: 0
diff --git a/src/rv64/rv64-uart.c b/src/rv64/rv64-uart.c
index f92041c..18e7d89 100644
--- a/src/rv64/rv64-uart.c
+++ b/src/rv64/rv64-uart.c
@@ -1,11 +1,10 @@
-/* -------------------------------------------
+// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Apache Software License, Version 2.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.apache.org/licenses/LICENSE-2.0)
+// Official repository: https://github.com/nekernel-org/neboot
- Copyright (C) 2024, Amlal El Mahrouss, licensed under Apache 2.0.
-
-------------------------------------------- */
-
-#include <lib/boot.h>
-#include <lib/string.h>
+#include <include/boot.h>
+#include <include/string.h>
/// BUGS: 0
@@ -16,8 +15,7 @@ static uint8_t* cb_uart_ptr = (uint8_t*) NB_UART_BASE;
utf_char_t cb_get_char(void) {
uintptr_t ptr = NB_UART_BASE;
- while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01))
- ;
+ while (!(*(((volatile uint8_t*) ptr) + 0x05) & 0x01));
return (utf_char_t) *cb_uart_ptr;
}