mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 00:26:52 +03:00
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
|
||||
; nonzero, this field is nonzero too; however, when .MediaRefCount goes
|
||||
; 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
|
||||
; or they are accessed from a code which has obtained the reference when
|
||||
; .MediaInserted was nonzero.
|
||||
@ -381,6 +381,7 @@ disk_add:
|
||||
call mutex_init
|
||||
xor eax, eax
|
||||
mov dword [esi+DISK.MediaInserted], eax
|
||||
mov [esi+DISK.MediaRefCount], eax
|
||||
inc eax
|
||||
mov [esi+DISK.RefCount], eax
|
||||
; The DISK structure is initialized.
|
||||
|
Loading…
Reference in New Issue
Block a user