Skip to content

Commit

Permalink
Revisions to memory allocation for WiFi
Browse files Browse the repository at this point in the history
  • Loading branch information
Memotech-Bill committed Jan 4, 2025
1 parent fe1bdc1 commit 769e84a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions console/pico/examples_w/lib/socklib.bas
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ ENDPROC
REM Shut down the BBCSDL Sockets interface
DEF PROC_exitsockets
LOCAL hsize%, HeapPos{} : DIM HeapPos{bot%,top%}
SYS "cyw43_arch_disable_sta_mode"
SYS "net_limits",^HeapPos.bot%,^HeapPos.top%
SYS "net_freeall"
IF HeapPos.bot% = HIMEM THEN
Expand Down
Binary file modified console/pico/examples_w/lib/socklib.bbc
Binary file not shown.
1 change: 1 addition & 0 deletions src/heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void heap_limits (void **base, void **top)

void *heap_malloc (size_t size)
{
if ((! bBasic) && (h_top == NULL)) error (0, "Heap not initialised");
size = (size + 7) & -8;
size |= 0x80000000;
H_MEM *hptr = h_last;
Expand Down

0 comments on commit 769e84a

Please sign in to comment.