Explorar el Código

Add missing attribute(packed) to two structures.

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
c482fef058
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/arch/i386/include/int13.h

+ 2
- 2
src/arch/i386/include/int13.h Ver fichero

@@ -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…
Cancelar
Guardar