Rev 3283 | Rev 3539 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3283 | Rev 3284 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2011-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2011-2012. 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: 3283 $ |
8 | $Revision: 3284 $ |
9 | 9 | ||
10 | ; This function is intended to replace the old 'hd_read' function when |
10 | ; This function is intended to replace the old 'hd_read' function when |
11 | ; [hdd_appl_data] = 0, so its input/output parameters are the same, except |
11 | ; [hdd_appl_data] = 0, so its input/output parameters are the same, except |
Line 628... | Line 628... | ||
628 | jnz @f |
628 | jnz @f |
629 | mov [hdd_appl_data], 0 |
629 | mov [hdd_appl_data], 0 |
630 | call write_cache |
630 | call write_cache |
631 | mov [hdd_appl_data], 1 |
631 | mov [hdd_appl_data], 1 |
632 | call write_cache |
632 | call write_cache |
633 | mov eax, [hd_status] |
633 | mov eax, [hd_error] |
634 | ret |
634 | ret |
635 | @@: |
635 | @@: |
636 | ; The algorithm is straightforward. |
636 | ; The algorithm is straightforward. |
637 | push esi |
637 | push esi |
638 | push esi ; for second write_cache64 |
638 | push esi ; for second write_cache64 |