mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-01-19 23:50:08 +00:00
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>
21 lines
671 B
C
21 lines
671 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2022, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
|
*/
|
|
#include <lib/debug.h>
|
|
#include <lib/simplefb.h>
|
|
#include <stddef.h>
|
|
|
|
void printk(char *text) {
|
|
#ifdef CONFIG_SIMPLE_FB
|
|
/* IMPORTANT: Limit the linecount */
|
|
if(debug_linecount > 100 || debug_linecount < 0)
|
|
debug_linecount = 0;
|
|
|
|
draw_text((char*)CONFIG_FRAMEBUFFER_BASE, "[uniLoader] ", 0, (20 + (debug_linecount * 30)), CONFIG_FRAMEBUFFER_WIDTH, CONFIG_FRAMEBUFFER_STRIDE);
|
|
draw_text((char*)CONFIG_FRAMEBUFFER_BASE, text, 0 + (12 * 8), (20 + (debug_linecount * 30)), CONFIG_FRAMEBUFFER_WIDTH, CONFIG_FRAMEBUFFER_STRIDE);
|
|
|
|
debug_linecount++;
|
|
#endif
|
|
}
|