Subversion Repositories Kolibri OS

Rev

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

Rev 1507 Rev 1508
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 1507 $
8
$Revision: 1508 $
9
 
9
 
Line 392... Line 392...
392
proc init_userDMA
392
proc init_userDMA
393
           stdcall alloc_pages, 4096 	; 16M <<<<<<<<<<+++++++++++++++++++++++++++++++++
393
           stdcall alloc_pages, 4096 	; 16M <<<<<<<<<<+++++++++++++++++++++++++++++++++
394
           add eax, 0x007FFFF0
394
           add eax, 0x007FFFF0
395
	   and eax, 0xFF800000		; align at 8M boundary
395
	   and eax, 0xFF800000		; align at 8M boundary
396
	   mov [UserDMAaddr], eax
396
	   mov [UserDMAaddr], eax
397
           or  eax, PG_UW + PG_NOCACHE
397
;           or  eax, PG_UW + PG_NOCACHE
398
           mov ebx, USER_DMA_BUFFER
398
;           mov ebx, USER_DMA_BUFFER
399
	   mov ecx, 2048		; 8M, to be sure
399
;	   mov ecx, 2048		; 8M, to be sure
400
           call commit_pages
400
;           call commit_pages
401
           mov eax, [UserDMAaddr]
401
;           mov eax, [UserDMAaddr]
402
           or  eax, PG_LARGE + PG_UW + PG_NOCACHE
402
           or  eax, PG_LARGE + PG_UW + PG_NOCACHE
403
           mov ebx, sys_pgdir + (USER_DMA_BUFFER shr 20)
403
           mov ebx, sys_pgdir + (USER_DMA_BUFFER shr 20)
404
           mov [ebx], eax
404
           mov [ebx], eax
405
	   add ebx, 4
405
	   add ebx, 4
406
           add eax, 0x00400000
406
           add eax, 0x00400000