Rev 1039 | Rev 1063 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1039 | Rev 1052 | ||
---|---|---|---|
Line 152... | Line 152... | ||
152 | movl %ecx, e801memorysize |
152 | movl %ecx, e801memorysize |
153 | 153 | ||
154 | bt $3, %eax # mbi->flags[3] (mods_count, mods_addr valid) |
154 | bt $3, %eax # mbi->flags[3] (mods_count, mods_addr valid) |
155 | jc mods_valid |
155 | jc mods_valid |
156 | 156 | ||
157 | xorl %ecx, %ecx |
157 | xorq %rcx, %rcx |
158 | movl %ecx, init |
158 | movq %rcx, init |
159 | jmp mods_end |
159 | jmp mods_end |
160 | 160 | ||
161 | mods_valid: |
161 | mods_valid: |
162 | 162 | ||
163 | xorq %rcx, %rcx |
163 | xorq %rcx, %rcx |
164 | movl 20(%ebx), %ecx # mbi->mods_count |
164 | movl 20(%ebx), %ecx # mbi->mods_count |
165 | movl %ecx, init |
165 | movq %rcx, init |
166 | 166 | ||
167 | cmpl $0, %ecx |
167 | cmpl $0, %ecx |
168 | je mods_end |
168 | je mods_end |
169 | 169 | ||
170 | movl 24(%ebx), %esi # mbi->mods_addr |
170 | movl 24(%ebx), %esi # mbi->mods_addr |
Line 173... | Line 173... | ||
173 | mods_loop: |
173 | mods_loop: |
174 | 174 | ||
175 | xorq %rdx, %rdx |
175 | xorq %rdx, %rdx |
176 | movl 0(%esi), %edx # mods->mod_start |
176 | movl 0(%esi), %edx # mods->mod_start |
177 | addq $0xffffffff80000000, %rdx |
177 | addq $0xffffffff80000000, %rdx |
178 | movq %rdx, 4(%rdi) |
178 | movq %rdx, 8(%rdi) |
179 | 179 | ||
180 | xorq %rdx, %rdx |
180 | xorq %rdx, %rdx |
181 | movl 4(%esi), %edx |
181 | movl 4(%esi), %edx |
182 | subl 0(%esi), %edx # mods->mod_end - mods->mod_start |
182 | subl 0(%esi), %edx # mods->mod_end - mods->mod_start |
183 | movq %rdx, 12(%rdi) |
183 | movq %rdx, 16(%rdi) |
184 | 184 | ||
185 | addl $16, %esi |
185 | addl $16, %esi |
186 | addq $16, %rdi |
186 | addq $16, %rdi |
187 | 187 | ||
188 | loop mods_loop |
188 | loop mods_loop |