Rev 837 | Rev 848 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 837 | Rev 838 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | ;; KolibriOS 16-bit loader, ;; |
9 | ;; KolibriOS 16-bit loader, ;; |
10 | ;; based on bootcode for MenuetOS ;; |
10 | ;; based on bootcode for MenuetOS ;; |
11 | ;; ;; |
11 | ;; ;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
12 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 13... | Line 13... | ||
13 | 13 | ||
Line 14... | Line 14... | ||
14 | $Revision: 837 $ |
14 | $Revision: 838 $ |
15 | 15 | ||
16 | 16 | ||
Line 256... | Line 256... | ||
256 | pushf |
256 | pushf |
257 | pop ax |
257 | pop ax |
258 | and ax, bx |
258 | and ax, bx |
259 | and dx, bx |
259 | and dx, bx |
260 | cmp ax, dx |
260 | cmp ax, dx |
261 | jnz cpugood |
- | |
- | 261 | ||
262 | mov si, not386 |
262 | mov si, not386 |
- | 263 | jz sayerr |
|
- | 264 | ||
- | 265 | xor eax, eax |
|
- | 266 | cpuid |
|
- | 267 | cmp eax, 0 |
|
- | 268 | mov si, sz_nopse |
|
- | 269 | jbe sayerr |
|
- | 270 | ||
- | 271 | mov eax, 1 |
|
- | 272 | cpuid |
|
- | 273 | bt edx, 3 |
|
- | 274 | mov si, sz_nopse |
|
- | 275 | jnc sayerr |
|
- | 276 | ||
- | 277 | xor ebx, ebx |
|
- | 278 | mov es, bx |
|
- | 279 | ||
- | 280 | mov edi, 0x9104 |
|
- | 281 | mov ecx, 20 |
|
- | 282 | mov edx, 0x534D4150 |
|
- | 283 | ||
- | 284 | mov [es:0x9100], ebx |
|
- | 285 | mov eax, 0xe820 |
|
- | 286 | int 0x15 |
|
- | 287 | mov si, sz_nosmap |
|
- | 288 | jc sayerr |
|
- | 289 | ||
- | 290 | cmp eax, 0x534D4150 |
|
- | 291 | je cpugood |
|
263 | sayerr: |
292 | sayerr: |
264 | call print |
293 | call print |
265 | jmp $ |
294 | jmp $ |
- | 295 | ||
- | 296 | ||
266 | cpugood: |
297 | cpugood: |
Line 267... | Line 298... | ||
267 | 298 | ||
268 | push 0 |
299 | push 0 |
269 | popf |
300 | popf |