[arch][openrisc] fix up and get the OpenRISC port working again

Previous to now it had always relied on a custom patched gcc
and a custom sim. In the interim since the initial port went in
some time in 2015 GCC and QEMU have both officially picked up support
for the architecture and the machine that was emulated in the previous
emultor.

Using gcc 10.2 fix up the build and get it basically working. Timers
seem to not be working right but it's probably fairly easy to fix.
This commit is contained in:
Travis Geiselbrecht
2020-10-21 02:19:51 -07:00
parent 917906e4a4
commit 01f9a97dc1
6 changed files with 91 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ static uint32_t timer_freq;
static volatile uint64_t ticks = 0;
status_t platform_set_periodic_timer(platform_timer_callback callback, void *arg, lk_time_t interval) {
LTRACEF("cb %p, arg %p, interval %ld\n", callback, arg, interval);
LTRACEF("cb %p, arg %p, interval %u\n", callback, arg, interval);
uint32_t ttmr = (uint64_t)timer_freq * interval / 1000;
LTRACEF("count 0x%x\n", ttmr);