Rev 5984 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5984 | Rev 6339 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; Distributed under GPL. See file COPYING for details. ;; |
9 | ;; Distributed under GPL. See file COPYING for details. ;; |
10 | ;; Copyright 2003 Ville Turjanmaa ;; |
10 | ;; Copyright 2003 Ville Turjanmaa ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 5984 $ |
14 | $Revision: 6339 $ |
15 | 15 | ||
16 | align 4 ;3A08 |
16 | align 4 ;3A08 |
17 | build_interrupt_table: |
17 | build_interrupt_table: |
Line 304... | Line 304... | ||
304 | ;-------------------------------------- |
304 | ;-------------------------------------- |
305 | .check_ESP: |
305 | .check_ESP: |
306 | push ebx |
306 | push ebx |
307 | shr ebx, 12 |
307 | shr ebx, 12 |
308 | mov ecx, ebx |
308 | mov ecx, ebx |
309 | shr ecx, 10 |
309 | shr ecx, 9 |
310 | mov edx, [master_tab+ecx*4] |
310 | mov edx, [master_tab+ecx*8] |
311 | test edx, PG_READ |
311 | test edx, PG_READ |
312 | jz .fail ;page table is not created |
312 | jz .fail ;page table is not created |
313 | ;incorrect address in the program |
313 | ;incorrect address in the program |
Line 314... | Line 314... | ||
314 | 314 | ||
315 | mov eax, [page_tabs+ebx*4] |
315 | mov eax, [page_tabs+ebx*8] |
316 | test eax, 2 |
316 | test eax, 2 |
Line 317... | Line 317... | ||
317 | jz .fail ;address not reserved for use. error |
317 | jz .fail ;address not reserved for use. error |
318 | 318 |