- for big endian machines I reversed the bit fields in interrupt_reason.
This was pointed out by Nicholai Benalal.
This commit is contained in:
parent
6b6acdc376
commit
1540695f17
@ -152,10 +152,17 @@ typedef struct {
|
||||
union {
|
||||
Bit8u sector_count;
|
||||
struct {
|
||||
#ifdef BX_LITTLE_ENDIAN
|
||||
unsigned c_d : 1;
|
||||
unsigned i_o : 1;
|
||||
unsigned rel : 1;
|
||||
unsigned tag : 5;
|
||||
#else /* BX_BIG_ENDIAN */
|
||||
unsigned tag : 5;
|
||||
unsigned rel : 1;
|
||||
unsigned i_o : 1;
|
||||
unsigned c_d : 1;
|
||||
#endif
|
||||
} interrupt_reason;
|
||||
};
|
||||
Bit8u sector_no;
|
||||
|
Loading…
x
Reference in New Issue
Block a user