From 6edb329ec0b27e2555dca1b3e7ae604dea66ec1e Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Tue, 9 Apr 2013 11:40:03 +0000 Subject: [PATCH] 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 --- kernel/trunk/blkdev/disk.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/blkdev/disk.inc b/kernel/trunk/blkdev/disk.inc index 2b208d6a9a..094ecc790f 100644 --- a/kernel/trunk/blkdev/disk.inc +++ b/kernel/trunk/blkdev/disk.inc @@ -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.