uniLoader: Mass rework
arch: aarch64: Load addresses via page + offset arch: aarch64: Align the TEXT region drivers: Introduce an empty framework board: Rework to be PIC Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
This commit is contained in:
1 parent
b301e51432
commit
81d26edaa3
27 files changed
+534
-248
No files matched your search
+1
-9
@@ -3,17 +3,9 @@
|
||||
* Copyright (c) 2022, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
||||
*/
|
||||
#include <lib/debug.h>
|
||||
#include <lib/simplefb.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/* TODO: Import libc */
|
||||
void writel(unsigned int value, void* address) {
|
||||
// Cast the address pointer to a 32-bit unsigned integer pointer
|
||||
volatile unsigned int* ptr = (volatile unsigned int*)address;
|
||||
|
||||
// Write the value to the memory location
|
||||
*ptr = value;
|
||||
}
|
||||
|
||||
void printk(char *text) {
|
||||
#ifdef CONFIG_SIMPLE_FB
|
||||
/* IMPORTANT: Limit the linecount */
|
||||
|
||||
Reference in new issue
Block a user