disables compiler opt for bsp_write in release
This commit is contained in:
parent
3042e0e124
commit
ada4881d33
13
env/iss/bsp_write.c
vendored
13
env/iss/bsp_write.c
vendored
@ -9,21 +9,12 @@
|
|||||||
|
|
||||||
extern volatile uint32_t tohost;
|
extern volatile uint32_t tohost;
|
||||||
|
|
||||||
ssize_t _bsp_write(int fd, const void *ptr, size_t len) {
|
__attribute__((optimize("O0"))) ssize_t _bsp_write(int fd, const void *ptr,
|
||||||
|
size_t len) {
|
||||||
// char string[] = "hello world in bsp_write";
|
|
||||||
// uint32_t payload_1[4] = {64, 0, (uintptr_t)string, strlen(string)};
|
|
||||||
// tohost = (uint32_t)payload_1;
|
|
||||||
|
|
||||||
// const uint32_t *current = (const uint32_t *)ptr;
|
|
||||||
|
|
||||||
if (isatty(fd)) {
|
if (isatty(fd)) {
|
||||||
// uint32_t payload[4] = {64, 0, (uint32_t)((uint32_t *)ptr), len};
|
|
||||||
// tohost = (uint32_t)payload;
|
|
||||||
|
|
||||||
uint64_t payload[4] = {64, 0, (uintptr_t)((uint32_t *)ptr), len};
|
uint64_t payload[4] = {64, 0, (uintptr_t)((uint32_t *)ptr), len};
|
||||||
tohost = (uint32_t)payload;
|
tohost = (uint32_t)payload;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// accoring to my understading this part is used fot uart wrrite for later
|
// accoring to my understading this part is used fot uart wrrite for later
|
||||||
for (size_t jj = 0; jj < len; jj++) {
|
for (size_t jj = 0; jj < len; jj++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user