Skip to content

Commit

Permalink
(Continued)
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed May 24, 2024
1 parent 9216437 commit 86034e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hal/support.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "support.h"

extern __real_mmap();
extern void* __real_mmap();

void *isp_thread = NULL;
void *venc_thread = NULL;
Expand Down Expand Up @@ -34,7 +34,7 @@ bool hal_registry(unsigned int addr, unsigned int *data, hal_register_op op) {

volatile char *mapped_area;
if (offset != loaded_offset) {
mapped_area = (void*)__real_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, offset);
mapped_area = __real_mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, offset);
if (mapped_area == MAP_FAILED) {
fprintf(stderr, "hal_registry mmap error: %s (%d)\n",
strerror(errno), errno);
Expand Down

0 comments on commit 86034e5

Please sign in to comment.