Rev 5363 | Rev 5635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5363 | Rev 5595 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | format binary as "mnt" |
69 | format binary as "mnt" |
Line 70... | Line 70... | ||
70 | 70 | ||
71 | include 'macros.inc' |
71 | include 'macros.inc' |
Line 72... | Line 72... | ||
72 | include 'struct.inc' |
72 | include 'struct.inc' |
Line 73... | Line 73... | ||
73 | 73 | ||
74 | $Revision: 5363 $ |
74 | $Revision: 5595 $ |
Line 700... | Line 700... | ||
700 | ; SET UP OS TASK |
700 | ; SET UP OS TASK |
Line 701... | Line 701... | ||
701 | 701 | ||
702 | mov esi, boot_setostask |
702 | mov esi, boot_setostask |
Line 703... | Line 703... | ||
703 | call boot_log |
703 | call boot_log |
- | 704 | ||
- | 705 | mov eax, sys_proc |
|
- | 706 | lea edi, [eax+PROC.heap_lock] |
|
704 | 707 | mov ecx, (PROC.ht_free-PROC.heap_lock)/4 |
|
705 | mov edi, sys_proc |
708 | |
706 | list_init edi |
709 | list_init eax |
- | 710 | add eax, PROC.thr_list |
|
- | 711 | list_init eax |
|
- | 712 | ||
- | 713 | xor eax, eax |
|
- | 714 | cld |
|
- | 715 | rep stosd |
|
- | 716 | ||
- | 717 | mov [edi], dword (PROC.pdt_0 - PROC.htab)/4 - 3 |
|
- | 718 | mov [edi+4], dword 3 ;reserve handles for stdin stdout and stderr |
|
- | 719 | mov ecx, (PROC.pdt_0 - PROC.htab)/4 |
|
- | 720 | add edi, 8 |
|
- | 721 | inc eax |
|
- | 722 | @@: |
|
- | 723 | stosd |
|
- | 724 | inc eax |
|
- | 725 | cmp eax, ecx |
|
707 | lea ecx, [edi+PROC.thr_list] |
726 | jbe @B |
Line 708... | Line 727... | ||
708 | list_init ecx |
727 | |
709 | mov [edi+PROC.pdt_0_phys], sys_proc-OS_BASE+PROC.pdt_0 |
728 | mov [sys_proc+PROC.pdt_0_phys], sys_proc-OS_BASE+PROC.pdt_0 |
710 | 729 | ||
711 | mov eax, -1 |
730 | mov eax, -1 |
Line 805... | Line 824... | ||
805 | jnz @b |
824 | jnz @b |
806 | mov eax, [cr3_ap+OS_BASE] |
825 | mov eax, [cr3_ap+OS_BASE] |
807 | call free_page |
826 | call free_page |
808 | .no_wake_cpus: |
827 | .no_wake_cpus: |
Line 809... | Line -... | ||
809 | - | ||
810 | 828 | ||
811 | ; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f |
829 | ; REDIRECT ALL IRQ'S TO INT'S 0x20-0x2f |
812 | mov esi, boot_initirq |
830 | mov esi, boot_initirq |
813 | call boot_log |
831 | call boot_log |