Subversion Repositories HelenOS-historic

Rev

Rev 696 | Rev 807 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 696 Rev 798
Line 158... Line 158...
158
		mods_valid:
158
		mods_valid:
159
		movl 20(%ebx), %ecx						# mbi->mods_count
159
		movl 20(%ebx), %ecx						# mbi->mods_count
160
		cmpl $0, %ecx
160
		cmpl $0, %ecx
161
		je mods_invalid
161
		je mods_invalid
162
		
162
		
-
 
163
		xorq %rdx, %rdx
163
		movl 24(%ebx), %esi						# mbi->mods_addr
164
		movl 24(%ebx), %esi						# mbi->mods_addr
164
		movl 0(%esi), %edx						# mods->mod_start
165
		movl 0(%esi), %edx						# mods->mod_start
165
		movl 4(%esi), %ecx						# mods->mod_end
166
		movl 4(%esi), %ecx						# mods->mod_end
166
		subl %edx, %ecx
167
		subl %edx, %ecx
167
		addl $0x80000000, %edx
168
		addq $0xffffffff80000000, %rdx
168
		
169
		
169
		mods_invalid:
170
		mods_invalid:
170
		movl %ecx, init_size
171
		movl %ecx, init_size
171
		movl %edx, init_addr
172
		movq %rdx, init_addr
172
		
173
		
173
		bt $6, %eax								# mbi->flags[6] (mmap_length, mmap_addr valid)	
174
		bt $6, %eax								# mbi->flags[6] (mmap_length, mmap_addr valid)	
174
		jc mmap_valid
175
		jc mmap_valid
175
			
176
			
176
			xorl %edx, %edx
177
			xorl %edx, %edx