Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5857
b: refs/heads/master
c: ac9af7c
h: refs/heads/master
i:
  5855: 2dfe88a
v: v3
  • Loading branch information
Brian King authored and Linus Torvalds committed Aug 17, 2005
1 parent 28eaf33 commit 58e597c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 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: 3a931d4cca1b6dabe1085cc04e909575df9219ae
refs/heads/master: ac9af7cba9e642961bfdee1a1fac6060405597e5
6 changes: 1 addition & 5 deletions trunk/arch/ia64/hp/sim/boot/bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ struct disk_req {
unsigned len;
};

/* SSC_WAIT_COMPLETION appears to want this large alignment. gcc < 4
* seems to give it by default, however gcc > 4 is smarter and may
* not.
*/
struct disk_stat {
int fd;
unsigned count;
} __attribute__ ((aligned (16)));
};

extern void jmp_to_kernel (unsigned long bp, unsigned long e_entry);
extern struct ia64_boot_param *sys_fw_init (const char *args, int arglen);
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/ppc64/kernel/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ int iommu_map_sg(struct device *dev, struct iommu_table *tbl,
dma_addr_t dma_next = 0, dma_addr;
unsigned long flags;
struct scatterlist *s, *outs, *segstart;
int outcount;
int outcount, incount;
unsigned long handle;

BUG_ON(direction == DMA_NONE);
Expand All @@ -252,6 +252,7 @@ int iommu_map_sg(struct device *dev, struct iommu_table *tbl,

outs = s = segstart = &sglist[0];
outcount = 1;
incount = nelems;
handle = 0;

/* Init first segment length for backout at failure */
Expand Down Expand Up @@ -338,10 +339,10 @@ int iommu_map_sg(struct device *dev, struct iommu_table *tbl,

DBG("mapped %d elements:\n", outcount);

/* For the sake of iommu_free_sg, we clear out the length in the
/* For the sake of iommu_unmap_sg, we clear out the length in the
* next entry of the sglist if we didn't fill the list completely
*/
if (outcount < nelems) {
if (outcount < incount) {
outs++;
outs->dma_address = DMA_ERROR_CODE;
outs->dma_length = 0;
Expand Down
8 changes: 8 additions & 0 deletions trunk/include/asm-ia64/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ static inline void ___ia64_mmiowb(void)
ia64_mfa();
}

static inline const unsigned long
__ia64_get_io_port_base (void)
{
extern unsigned long ia64_iobase;

return ia64_iobase;
}

static inline void*
__ia64_mk_io_addr (unsigned long port)
{
Expand Down

0 comments on commit 58e597c

Please sign in to comment.