forked from KolibriOS/kolibrios
replace align with explicit padding (align in struct is silently ignored after r2381)
git-svn-id: svn://kolibrios.org@3460 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1fc22f7bce
commit
6edb329ec0
@ -150,7 +150,7 @@ struct DISK
|
|||||||
; 0 if media fields are not used, nonzero otherwise. If .MediaRefCount is
|
; 0 if media fields are not used, nonzero otherwise. If .MediaRefCount is
|
||||||
; nonzero, this field is nonzero too; however, when .MediaRefCount goes
|
; nonzero, this field is nonzero too; however, when .MediaRefCount goes
|
||||||
; to zero, there is some time interval during which media object is still used.
|
; to zero, there is some time interval during which media object is still used.
|
||||||
align 4
|
dw ? ; padding
|
||||||
; The following fields are not valid unless either .MediaInserted is nonzero
|
; The following fields are not valid unless either .MediaInserted is nonzero
|
||||||
; or they are accessed from a code which has obtained the reference when
|
; or they are accessed from a code which has obtained the reference when
|
||||||
; .MediaInserted was nonzero.
|
; .MediaInserted was nonzero.
|
||||||
@ -381,6 +381,7 @@ disk_add:
|
|||||||
call mutex_init
|
call mutex_init
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
mov dword [esi+DISK.MediaInserted], eax
|
mov dword [esi+DISK.MediaInserted], eax
|
||||||
|
mov [esi+DISK.MediaRefCount], eax
|
||||||
inc eax
|
inc eax
|
||||||
mov [esi+DISK.RefCount], eax
|
mov [esi+DISK.RefCount], eax
|
||||||
; The DISK structure is initialized.
|
; The DISK structure is initialized.
|
||||||
|
Loading…
Reference in New Issue
Block a user