From f4bb91b060211884fc0b85479fb6becf20daeb1f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 6 Jun 2016 10:46:52 +0200 Subject: RISC-V ISA 2.1 now calls "sbreak" officially "ebreak" --- scripts/cxxdemo/syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cxxdemo') diff --git a/scripts/cxxdemo/syscalls.c b/scripts/cxxdemo/syscalls.c index f12b07e..cdf872f 100644 --- a/scripts/cxxdemo/syscalls.c +++ b/scripts/cxxdemo/syscalls.c @@ -44,7 +44,7 @@ void unimplemented_syscall() const char *p = "Unimplemented system call called!\n"; while (*p) *(volatile int*)0x10000000 = *(p++); - asm volatile ("sbreak"); + asm volatile ("ebreak"); __builtin_unreachable(); } @@ -89,7 +89,7 @@ void *sbrk(ptrdiff_t incr) void _exit(int exit_status) { - asm volatile ("sbreak"); + asm volatile ("ebreak"); __builtin_unreachable(); } -- cgit