Subversion Repositories Kolibri OS

Rev

Rev 4997 | Rev 5036 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4997 Rev 5023
Line 43... Line 43...
43
	call  Kfree
43
	call  Kfree
44
  .invalid_pointer:
44
  .invalid_pointer:
45
    pop   ecx ebx
45
  pop   ecx ebx
46
	ret
46
	ret
Line -... Line 47...
-
 
47
    
-
 
48
linkedlist_isvalid:       ;eax - pointer to check; returns zero if valid
47
    
49
    inc   ecx
-
 
50
    test  eax, eax
48
linkedlist_isvalid:
51
    jz    .valid_pointer  ;actually, poiner is not valid
49
    push  ebx ecx
52
    push  ebx ecx
50
    xor   ecx, ecx
53
    xor   ecx, ecx
51
    mov   ebx, [head]
54
    mov   ebx, [head]
52
  .next_check:
55
  .next_check: