Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188307
b: refs/heads/master
c: db61bfc
h: refs/heads/master
i:
  188305: 09cdc2d
  188303: 81ec2fa
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Mar 3, 2010
1 parent 2fe5d54 commit 6610e72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff9fea94546afa2a496c15354533f06088347f6e
refs/heads/master: db61bfcfe2a68dc71402c270686cd73b80971efc
14 changes: 10 additions & 4 deletions trunk/drivers/scsi/hpsa_cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,18 @@ struct CommandList {
void *scsi_cmd;

/* on 64 bit architectures, to get this to be 32-byte-aligned
* it so happens we need no padding, on 32 bit systems,
* we need 8 bytes of padding. This does that.
* it so happens we need PAD_64 bytes of padding, on 32 bit systems,
* we need PAD_32 bytes of padding (see below). This does that.
* If it happens that 64 bit and 32 bit systems need different
* padding, PAD_32 and PAD_64 can be set independently, and.
* the code below will do the right thing.
*/
#define COMMANDLIST_PAD ((8 - sizeof(long))/4 * 8)
#define IS_32_BIT ((8 - sizeof(long))/4)
#define IS_64_BIT (!IS_32_BIT)
#define PAD_32 (8)
#define PAD_64 (0)
#define COMMANDLIST_PAD (IS_32_BIT * PAD_32 + IS_64_BIT * PAD_64)
u8 pad[COMMANDLIST_PAD];

};

/* Configuration Table Structure */
Expand Down

0 comments on commit 6610e72

Please sign in to comment.