Skip to content
Permalink
Browse files

video/xbios: remove __attribute__((packed))

  • Loading branch information
pmandin committed Aug 31, 2011
1 parent d130e6e commit 1766848903b6c78a1e136598c1b14340c893b3d0
@@ -70,14 +70,14 @@ typedef struct {
unsigned short registers_C0; /* value for register 0xffff82c0 */
unsigned short registers_C2; /* value for register 0xffff82c2 */
unsigned short dummy40[30];
} __attribute__((packed)) blow_mode_t;
} blow_mode_t;

typedef struct {
blow_mode_t blowup_modes[10];
unsigned char num_mode[6];
unsigned long dummy;
unsigned short montype;
} __attribute__((packed)) blow_cookie_t;
} blow_cookie_t;

/*--- Functions prototypes ---*/

@@ -60,7 +60,7 @@ typedef struct {
unsigned short hsize; /* screen height (mm) */
unsigned short dummy[21];
unsigned char name[32]; /* videomode name */
} __attribute__((packed)) centscreen_mode_t;
} centscreen_mode_t;

/*--- Functions prototypes ---*/

@@ -91,7 +91,7 @@ typedef struct _scrblk {
unsigned long blk_w; /* width */
unsigned long blk_h; /* height */
unsigned long blk_wrap; /* width in bytes */
} __attribute__((packed)) SCRMEMBLK;
} SCRMEMBLK;

typedef struct screeninfo {
unsigned long size; /* Size of structure */
@@ -120,7 +120,7 @@ typedef struct screeninfo {
unsigned long pagemem; /* needed memory for one page */
unsigned long max_x; /* max. possible width */
unsigned long max_y; /* max. possible heigth */
} __attribute__((packed)) SCREENINFO;
} SCREENINFO;

/*--- Functions prototypes ---*/

@@ -57,7 +57,7 @@ typedef struct {
unsigned long size; /* Size of screen in bytes */
unsigned short device; /* Device number to find planes = getRez() */
/* = Index in scpn_planes_device[] */
} __attribute__((packed)) scpn_screeninfo_t;
} scpn_screeninfo_t;

typedef struct {
unsigned long magic; /* just a BRA assembler jump */
@@ -71,7 +71,7 @@ typedef struct {
unsigned short dummy4;
scpn_screeninfo_t *screen_info;
unsigned short dummy6;
} __attribute__((packed)) scpn_cookie_t;
} scpn_cookie_t;

/*--- Function prototypes ---*/

@@ -53,7 +53,7 @@ typedef struct {
unsigned char serial_redir;
unsigned char dummy4;
void (*oldserial_ptr)();
} __attribute__((packed)) tveille_t;
} tveille_t;

/*--- Functions prototypes ---*/

0 comments on commit 1766848

Please sign in to comment.