1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-11 23:43:15 +00:00
Benjamin Herrenschmidt e3941109af console: Cleanup console API
Use a more generic console_init() instead of potato_uart_init(),
and do the same for interrupt control. There should be no
change in behaviour.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2020-06-24 09:53:46 +10:00
..
2020-04-16 17:16:37 +10:00
2020-04-16 17:16:37 +10:00
2020-05-15 20:48:58 +10:00
2020-05-15 20:48:58 +10:00
2020-04-16 17:16:37 +10:00
2020-06-24 09:53:46 +10:00
2020-04-16 17:16:37 +10:00
2020-05-01 09:49:24 +02:00
2020-04-16 17:16:37 +10:00

I made a minimal Rust demo.

This needs a rebuild of the core library with xargo (https://github.com/japaric/xargo) for working soft floating-point support.

Steps:

$ rustup default nightly

$ rustup target add powerpc64le-unknown-linux-gnu

$ rustup component add rust-src

$ cargo install xargo

$ make
$ make run

ln -sf hello_world.bin main_ram.bin
../core_tb > /dev/null
Hello World
Rust
i 2
5
5
i 3
3.3333333333333335
3.3333333333333335
[-9, -6, 2, 3]
!panicked at 'test', src/lib.rs:58:5