Skip to content

Commit

Permalink
fix(riscv64): write whole slices of bytes
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 9, 2024
1 parent dd74455 commit 8ac66f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/arch/riscv64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ use hermit_entry::boot_info::{
use hermit_entry::elf::LoadedKernel;
use hermit_entry::Entry;
use log::info;
use sbi_rt::Physical;
use sptr::Strict;

pub fn message_output_init() {}

pub fn write_to_console(bytes: &[u8]) {
for byte in bytes.iter().copied() {
sbi_rt::console_write_byte(byte);
}
sbi_rt::console_write(Physical::new(bytes.len(), bytes.as_ptr().addr(), 0));
}

fn find_kernel_linux(chosen: &FdtNode<'_, '_>) -> Option<&'static [u8]> {
Expand Down

0 comments on commit 8ac66f5

Please sign in to comment.