瀏覽代碼

Add missing attribute(packed) to two structures.

tags/v0.9.3
Michael Brown 17 年之前
父節點
當前提交
c482fef058
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/arch/i386/include/int13.h

+ 2
- 2
src/arch/i386/include/int13.h 查看文件

@@ -114,7 +114,7 @@ struct int13_disk_address {
114 114
 	uint64_t lba;
115 115
 	/** Data buffer (EDD-3.0 only) */
116 116
 	uint64_t buffer_phys;
117
-};
117
+} __attribute__ (( packed ));
118 118
 
119 119
 /** INT 13 disk parameters */
120 120
 struct int13_disk_parameters {
@@ -133,7 +133,7 @@ struct int13_disk_parameters {
133 133
 	/** Bytes per sector */
134 134
 	uint16_t sector_size;
135 135
 	
136
-};
136
+} __attribute__ (( packed ));
137 137
 
138 138
 /**
139 139
  * @defgroup int13types INT 13 disk types

Loading…
取消
儲存