removes firmwares to just keep BSP

This commit is contained in:
eyck committed 2024-01-13 08:28:11 +01:00
1 parent 7728785e27
commit 1c600a0458
295 files changed
+1 -19263

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
/* See LICENSE of license details. */
#include <unistd.h>
#include "platform.h"
#include "weak_under_alias.h"
#if defined(BOARD_hifive1)
static volatile uint32_t tohost;
static volatile uint32_t fromhost;
#else
extern volatile uint32_t tohost;
extern volatile uint32_t fromhost;
#endif
void write_hex(int fd, uint32_t hex);
void __wrap_exit(int code)
{
//volatile uint32_t* leds = (uint32_t*) (GPIO_BASE_ADDR + GPIO_OUT_OFFSET);
const char message[] = "\nProgam has exited with code:";
//*leds = (~(code));
write(STDERR_FILENO, message, sizeof(message) - 1);
write_hex(STDERR_FILENO, code);
write(STDERR_FILENO, "\n", 1);
tohost = code+1;
write(STDERR_FILENO, "\x04", 1);
for (;;);
}
weak_under_alias(exit);