Преглед изворни кода

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

Loading…
Откажи
Сачувај