Subversion Repositories Kolibri OS

Rev

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

Rev 864 Rev 887
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line -...
8
$Revision: 864 $
-
 
9
 
-
 
10
 
-
 
11
struc MEM_BLOCK
-
 
12
{  .next_block  dd ?
-
 
13
   .prev_block  dd ? ;+4
-
 
14
   .list_fd     dd ? ;+8
-
 
15
   .list_bk     dd ? ;+12
-
 
16
   .base        dd ? ;+16
-
 
17
   .size        dd ? ;+20
-
 
Line 18... Line 8...
18
   .flags       dd ? ;+24
8
$Revision: 887 $
19
   .handle      dd ? ;+28
9
 
20
}
10
 
21
 
11
 
Line 22... Line -...
22
MEM_LIST_OFFSET equ  8
-
 
23
FREE_BLOCK      equ  4
-
 
24
USED_BLOCK      equ  8
-
 
25
DONT_FREE_BLOCK equ  10h
-
 
26
 
-
 
27
virtual at 0
-
 
28
  MEM_BLOCK MEM_BLOCK
-
 
29
end virtual
-
 
30
 
-
 
31
MEM_BLOCK_SIZE equ 8*4
-
 
32
 
-
 
33
block_next   equ MEM_BLOCK.next_block
-
 
34
block_prev   equ MEM_BLOCK.prev_block
-
 
35
list_fd      equ MEM_BLOCK.list_fd
-
 
Line 36... Line 12...
36
list_bk      equ MEM_BLOCK.list_bk
12
MEM_LIST_OFFSET equ  8
37
block_base   equ MEM_BLOCK.base
13
FREE_BLOCK      equ  4
Line 38... Line 14...
38
block_size   equ MEM_BLOCK.size
14
USED_BLOCK      equ  8
39
block_flags  equ MEM_BLOCK.flags
15
DONT_FREE_BLOCK equ  10h
Line 40... Line -...
40
 
-
 
41
 
-
 
42
align 4
-
 
43
proc free_kernel_space stdcall uses ebx ecx edx esi edi, base:dword
-
 
44
 
-
 
45
           ret
-
 
46
endp
-
 
47
 
-
 
48
 
-
 
49
align 4
-
 
50
proc kernel_free stdcall, base:dword
-
 
51
 
-
 
52
           ret
-
 
53
endp
-
 
54
 
-
 
55
 
16
 
Line 56... Line 17...
56
 
17
 
Line 57... Line 18...
57
restore block_next
18
align 4