Subversion Repositories Kolibri OS

Rev

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

Rev 69 Rev 115
Line 93... Line 93...
93
  ret  
93
  ret  
94
.noaddblock:
94
.noaddblock:
95
  mov  eax,[esi+physical_mem_block.start]
95
  mov  eax,[esi+physical_mem_block.start]
96
  mov  [esp+28],eax
96
  mov  [esp+28],eax
97
  mov  eax,[0x3010]
97
  mov  eax,[0x3010]
98
  mov  eax,[eax+0x4]
98
  mov  eax,[eax+TASKDATA.pid]
99
  mov  [esi+physical_mem_block.flags],eax
99
  mov  [esi+physical_mem_block.flags],eax
100
  popad
100
  popad
101
  ret
101
  ret
102
.addblock:
102
.addblock:
103
  call Insert_Block
103
  call Insert_Block
104
  inc  dword [num_physical_mem_blocks]
104
  inc  dword [num_physical_mem_blocks]
105
  mov  eax,[esi+physical_mem_block.start]
105
  mov  eax,[esi+physical_mem_block.start]
106
  mov  [esp+28],eax
106
  mov  [esp+28],eax
107
  mov  ecx,[0x3010]
107
  mov  ecx,[0x3010]
108
  mov  ecx,[ecx+0x4]
108
  mov  ecx,[ecx+TASKDATA.pid]
109
  mov  [esi+physical_mem_block.flags],ecx
109
  mov  [esi+physical_mem_block.flags],ecx
110
  mov  ecx,[esi+physical_mem_block.size]
110
  mov  ecx,[esi+physical_mem_block.size]
111
  mov  [esi+physical_mem_block.size],ebx
111
  mov  [esi+physical_mem_block.size],ebx
112
  sub  ecx,ebx
112
  sub  ecx,ebx
113
  mov  [esi+physical_mem_block.sizeof+physical_mem_block.size],ecx  
113
  mov  [esi+physical_mem_block.sizeof+physical_mem_block.size],ecx