Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for riscv64-noelv target #505

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _targets/Makefile.riscv64-noelv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Makefile for Phoenix-RTOS 3 device drivers
#
# riscv64-noelv drivers
#
# Copyright 2024 Phoenix Systems
#

DEFAULT_COMPONENTS := grlib-uart
1 change: 1 addition & 0 deletions dma/grdmac2/grdmac2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <sys/mman.h>
#include <sys/platform.h>

#include <phoenix/gaisler/ambapp.h>

Check failure on line 20 in dma/grdmac2/grdmac2.c

View workflow job for this annotation

GitHub Actions / call-ci / build (sparcv8leon3-gr716-mini)

phoenix/gaisler/ambapp.h: No such file or directory
#include <phoenix/arch/sparcv8leon3/sparcv8leon3.h>

#include "grdmac2.h"
Expand Down
1 change: 1 addition & 0 deletions multi/grlib-multi/grlib-multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <stdbool.h>
#include <string.h>
#include <sys/types.h>
#include <phoenix/gaisler/ambapp.h>


/* clang-format off */
Expand Down
8 changes: 7 additions & 1 deletion tty/grlib-uart/grlib-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@

#include <phoenix/ioctl.h>

#if defined(__TARGET_SPARCV8LEON3)
#include <phoenix/arch/sparcv8leon3/sparcv8leon3.h>
#elif defined(__TARGET_RISCV64)
#include <phoenix/arch/riscv64/riscv64.h>
#endif

#include <phoenix/gaisler/ambapp.h>

#define UART_STACKSZ (4096)

Expand Down Expand Up @@ -105,7 +111,7 @@ static struct {
} uart_common;


static int uart_interrupt(unsigned int n, void *arg)
static int __attribute__((section(".interrupt"), aligned(0x1000))) uart_interrupt(unsigned int n, void *arg)
{
uart_t *uart = (uart_t *)arg;

Expand Down
2 changes: 1 addition & 1 deletion tty/spike-tty/spike-tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void spiketty_thr(void *arg)
for (;;) {
if ((c = sbi_getchar()) > 0)
libtty_putchar(&spiketty->tty, c, NULL);
usleep(10);
usleep(50000);
}
}

Expand Down
Loading