Commit a119c768 authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL
Browse files

Remove signed pointer comparison

Linked lists end with NULL, not <= 0.
parent 110fd564
......@@ -80,8 +80,8 @@ $lab ADD$cc $to,$from,#1
; ----------------------------------------------------------------------------------------------------------------------
; Filter block structure
^ 0
next_ptr # 4 ; Pointer to next in chain (-1 if none)
prev_ptr # 4 ; Pointer to previous entry in chain (-1 if none)
next_ptr # 4 ; Pointer to next in chain (0 if none)
prev_ptr # 4 ; Pointer to previous entry in chain (0 if none)
f_task # 4 ; Task ID for which the filter is to be called.
f_mask # 4 ; Event mask.
f_address # 4 ; Address to call.
......
......@@ -28,7 +28,7 @@ free_list
01
MOV r0, #ModHandReason_Free
SUBS r2, r1, #0
MOVLE PC, R3
MOVEQ PC, R3
; Free the workspace
LDR r1, [r2,#next_ptr]
SWI XOS_Module
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment