Skip to content

Commit

Permalink
semihosting: Cleaned up the request handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jan 14, 2024
1 parent a4bd7e5 commit 81b0393
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/target/semihosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ int32_t semihosting_request(target_s *const target, const uint32_t syscall, cons
semihosting_s request = {r1, {}};
if (syscall != SEMIHOSTING_SYS_EXIT)
target_mem_read(target, request.params, r1, sizeof(request.params));
int32_t ret = 0;

#if ENABLE_DEBUG == 1
const char *syscall_descr = NULL;
Expand Down Expand Up @@ -776,8 +775,7 @@ int32_t semihosting_request(target_s *const target, const uint32_t syscall, cons
// not implemented yet:
case SEMIHOSTING_SYS_ELAPSED: /* elapsed */
case SEMIHOSTING_SYS_TICKFREQ: /* tickfreq */
default:
return -1;
}

return ret;
}

0 comments on commit 81b0393

Please sign in to comment.