- for big endian machines I reversed the bit fields in interrupt_reason.

This was pointed out by Nicholai Benalal.
This commit is contained in:
Bryce Denney 2001-08-13 15:48:13 +00:00
parent 6b6acdc376
commit 1540695f17

View File

@ -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;