avr: introduce reference counter for network buffers.
This commit is contained in:
@@ -52,7 +52,7 @@ l_loop:
|
||||
brcs l_loop
|
||||
rjmp l_end ; use cleared CFLAG
|
||||
l_foundfree:
|
||||
ldi r16, 0x80 ; mark as used
|
||||
ldi r16, 0x10 ; mark as used
|
||||
st X, r16
|
||||
mov r16, r17
|
||||
sec ; set CFLAG, return bufnum in r16, pointre in X
|
||||
|
||||
Reference in New Issue
Block a user