Subversion Repositories Kolibri OS

Rev

Rev 844 | Rev 847 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 844 Rev 846
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: 844 $
58
$Revision: 846 $
Line 292... Line 292...
292
MEM_WB     equ 6               ;write-back memory
292
MEM_WB     equ 6               ;write-back memory
293
MEM_WC     equ 1               ;write combined memory
293
MEM_WC     equ 1               ;write combined memory
294
MEM_UC     equ 0               ;uncached memory
294
MEM_UC     equ 0               ;uncached memory
Line -... Line 295...
-
 
295
 
295
 
296
 
Line 296... Line 297...
296
 
297
include 'printf.inc'
297
include 'core/mm.asm'
298
include 'core/mm.asm'
Line 326... Line 327...
326
 
327
 
327
	   mov eax, cr3
328
	   mov eax, cr3
Line -... Line 329...
-
 
329
	   mov cr3, eax 	  ; flush TLB
-
 
330
 
-
 
331
 
-
 
332
           mov edx, 0x3fB
328
	   mov cr3, eax 	  ; flush TLB
333
           mov eax, 3
Line 329... Line 334...
329
 
334
           out dx, al
330
 
335
 
331
; MEMORY MODEL
336
; MEMORY MODEL
Line 617... Line 622...
617
  call Parser_params
622
  call Parser_params
Line 618... Line 623...
618
 
623
 
Line 619... Line 624...
619
; READ RAMDISK IMAGE FROM HD
624
; READ RAMDISK IMAGE FROM HD
620
 
625
 
621
;!!!!!!!!!!!!!!!!!!!!!!!
626
;!!!!!!!!!!!!!!!!!!!!!!!
622
include 'boot/rdload.inc'
627
;include 'boot/rdload.inc'
623
;!!!!!!!!!!!!!!!!!!!!!!!
628
;!!!!!!!!!!!!!!!!!!!!!!!
Line 624... Line 629...
624
;    mov    [dma_hdd],1
629
;    mov    [dma_hdd],1
-
 
630
; CALCULATE FAT CHAIN FOR RAMDISK
-
 
631
 
-
 
632
        mov [_rd_base],     OS_BASE+0x100000
-
 
633
        mov [_rd_fat],      OS_BASE+0x100000 + 512
Line 625... Line 634...
625
; CALCULATE FAT CHAIN FOR RAMDISK
634
        mov [_rd_fat_end],  OS_BASE+0x100000 + 512 + 4278
Line 626... Line -...
626
 
-
 
627
	call  calculatefatchain
-
 
628
 
-
 
Line 629... Line 635...
629
; LOAD VMODE DRIVER
635
        mov [_rd_root],     OS_BASE+0x100000 + 512*19
630
 
636
        mov [_rd_root_end], OS_BASE+0x100000 + 512*33
631
;!!!!!!!!!!!!!!!!!!!!!!!
637
 
632
include 'vmodeld.inc'
638
	call  calculatefatchain
Line 655... Line 661...
655
 
661
 
656
	movzx	ecx, word [boot_y]
662
	movzx	ecx, word [boot_y]
657
	or	ecx, (10+29*6) shl 16 ; "Determining amount of memory"
663
	or	ecx, (10+29*6) shl 16 ; "Determining amount of memory"
658
	sub	ecx, 10
664
	sub	ecx, 10
659
	mov	edx, 0xFFFFFF
665
	mov	edx, 0xFFFFFF
660
	mov	ebx, [MEM_AMOUNT]
666
        mov     ebx, [_mem_amount]
661
	shr	ebx, 20
667
	shr	ebx, 20
662
	mov	edi, 1
668
	mov	edi, 1
663
	mov	eax, 0x00040000
669
	mov	eax, 0x00040000
Line 2164... Line 2170...
2164
     shl eax, 2
2170
     shl eax, 2
2165
     mov [esp+32],eax
2171
     mov [esp+32],eax
2166
     ret
2172
     ret
Line 2167... Line 2173...
2167
 
2173
 
2168
sysfn_getallmem:
2174
sysfn_getallmem:
2169
     mov  eax,[MEM_AMOUNT]
2175
     mov  eax,[_mem_amount]
2170
     shr eax, 10
2176
     shr eax, 10
2171
     mov  [esp+32],eax
2177
     mov  [esp+32],eax
Line 2172... Line 2178...
2172
     ret
2178
     ret