Rev 569 | Rev 588 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 569 | Rev 586 | ||
---|---|---|---|
Line 53... | Line 53... | ||
53 | ;; |
53 | ;; |
54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
54 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 55... | Line 55... | ||
55 | 55 | ||
Line 56... | Line 56... | ||
56 | include 'macros.inc' |
56 | include 'macros.inc' |
Line 57... | Line 57... | ||
57 | 57 | ||
Line 58... | Line 58... | ||
58 | $Revision: 569 $ |
58 | $Revision: 586 $ |
59 | 59 | ||
Line 72... | Line 72... | ||
72 | os_code equ (os_code_l-gdts) |
72 | os_code equ (os_code_l-gdts) |
73 | graph_data equ (3+graph_data_l-gdts) |
73 | graph_data equ (3+graph_data_l-gdts) |
74 | tss0 equ (tss0_l-gdts) |
74 | tss0 equ (tss0_l-gdts) |
75 | app_code equ (3+app_code_l-gdts) |
75 | app_code equ (3+app_code_l-gdts) |
76 | app_data equ (3+app_data_l-gdts) |
76 | app_data equ (3+app_data_l-gdts) |
- | 77 | pci_code_sel equ (pci_code_32-gdts) |
|
- | 78 | pci_data_sel equ (pci_data_32-gdts) |
|
Line 77... | Line 79... | ||
77 | 79 | ||
78 | 80 | ||
79 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
81 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 235... | Line 237... | ||
235 | rep stosd |
237 | rep stosd |
Line 236... | Line 238... | ||
236 | 238 | ||
237 | call test_cpu |
239 | call test_cpu |
Line -... | Line 240... | ||
- | 240 | bts [cpu_caps-OS_BASE], CAPS_TSC ;force use rdtsc |
|
238 | bts [cpu_caps-OS_BASE], CAPS_TSC ;force use rdtsc |
241 | |
239 | 242 | call init_BIOS32 |
|
240 | ; MEMORY MODEL |
243 | ; MEMORY MODEL |
241 | call mem_test |
244 | call mem_test |
Line 253... | Line 256... | ||
253 | 256 | ||
254 | lgdt [gdts] |
257 | lgdt [gdts] |
Line 255... | Line 258... | ||
255 | jmp pword os_code:high_code |
258 | jmp pword os_code:high_code |
- | 259 | ||
256 | 260 | align 4 |
|
- | 261 | bios32_entry dd ? |
|
257 | align 4 |
262 | tmp_page_tabs dd ? |
258 | tmp_page_tabs dd ? |
263 | |
259 | use16 |
264 | use16 |
260 | org $-0x10000 |
265 | org $-0x10000 |
261 | include "boot/shutdown.inc" ; shutdown or restart |
266 | include "boot/shutdown.inc" ; shutdown or restart |