Rev 807 | Rev 1037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 807 | Rev 820 | ||
---|---|---|---|
Line 162... | Line 162... | ||
162 | movl 20(%ebx), %ecx # mbi->mods_count |
162 | movl 20(%ebx), %ecx # mbi->mods_count |
163 | cmpl $0, %ecx |
163 | cmpl $0, %ecx |
164 | je mods_invalid |
164 | je mods_invalid |
165 | 165 | ||
166 | xorq %rdx, %rdx |
166 | xorq %rdx, %rdx |
- | 167 | movq %rdx, %rcx |
|
167 | movl 24(%ebx), %esi # mbi->mods_addr |
168 | movl 24(%ebx), %esi # mbi->mods_addr |
168 | movl 0(%esi), %edx # mods->mod_start |
169 | movl 0(%esi), %edx # mods->mod_start |
169 | movl 4(%esi), %ecx # mods->mod_end |
170 | movl 4(%esi), %ecx # mods->mod_end |
170 | subl %edx, %ecx |
171 | subl %edx, %ecx |
171 | addq $0xffffffff80000000, %rdx |
172 | addq $0xffffffff80000000, %rdx |
172 | 173 | ||
173 | mods_invalid: |
174 | mods_invalid: |
174 | movl %ecx, init_size |
175 | movq %rcx, init_size |
175 | movq %rdx, init_addr |
176 | movq %rdx, init_addr |
176 | 177 | ||
177 | bt $6, %eax # mbi->flags[6] (mmap_length, mmap_addr valid) |
178 | bt $6, %eax # mbi->flags[6] (mmap_length, mmap_addr valid) |
178 | jc mmap_valid |
179 | jc mmap_valid |
179 | 180 |