Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56608
b: refs/heads/master
c: 017e3c5
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed May 17, 2007
1 parent 33405a7 commit 3c3fe21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a32d085ae71724edffa30fcd2045520a051cb14
refs/heads/master: 017e3c53f116d6a0741a21624924528dc9f98418
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/mm/pgtable_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,19 @@ EXPORT_SYMBOL(__ioremap);
EXPORT_SYMBOL(iounmap);
EXPORT_SYMBOL(__iounmap);

static DEFINE_SPINLOCK(phb_io_lock);

void __iomem * reserve_phb_iospace(unsigned long size)
{
void __iomem *virt_addr;

if (phbs_io_bot >= IMALLOC_BASE)
panic("reserve_phb_iospace(): phb io space overflow\n");

spin_lock(&phb_io_lock);
virt_addr = (void __iomem *) phbs_io_bot;
phbs_io_bot += size;
spin_unlock(&phb_io_lock);

return virt_addr;
}

0 comments on commit 3c3fe21

Please sign in to comment.