Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22890
b: refs/heads/master
c: 0ec57e5
h: refs/heads/master
v: v3
  • Loading branch information
Marcelo Tosatti authored and Paul Mackerras committed Jan 20, 2006
1 parent 4cc8b12 commit 2546f47
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 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: f4fc4a5b74cff2a487222f05704a2bd01953d250
refs/heads/master: 0ec57e53c945fe962b190953f61e1ffd127e68d3
4 changes: 2 additions & 2 deletions trunk/arch/ppc/mm/44x_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ unsigned long __init mmu_mapin_ram(void)

/* Determine number of entries necessary to cover lowmem */
pinned_tlbs = (unsigned int)
(_ALIGN(total_lowmem, PPC44x_PIN_SIZE) >> PPC44x_PIN_SHIFT);
(_ALIGN(total_lowmem, PPC_PIN_SIZE) >> PPC44x_PIN_SHIFT);

/* Write upper watermark to save location */
tlb_44x_hwater = PPC44x_LOW_SLOT - pinned_tlbs;

/* If necessary, set additional pinned TLBs */
if (pinned_tlbs > 1)
for (i = (PPC44x_LOW_SLOT-(pinned_tlbs-1)); i < PPC44x_LOW_SLOT; i++) {
unsigned int phys_addr = (PPC44x_LOW_SLOT-i) * PPC44x_PIN_SIZE;
unsigned int phys_addr = (PPC44x_LOW_SLOT-i) * PPC_PIN_SIZE;
ppc44x_pin_tlb(i, phys_addr+PAGE_OFFSET, phys_addr);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-ppc/ibm44x.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

/* TLB entry offset/size used for pinning kernel lowmem */
#define PPC44x_PIN_SHIFT 28
#define PPC44x_PIN_SIZE (1 << PPC44x_PIN_SHIFT)
#define PPC_PIN_SIZE (1 << PPC44x_PIN_SHIFT)

/* Lowest TLB slot consumed by the default pinned TLBs */
#define PPC44x_LOW_SLOT 63
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-ppc/mpc8xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ enum ppc_sys_devices {
MPC8xx_CPM_USB,
};

#define PPC_PIN_SIZE (24 * 1024 * 1024) /* 24Mbytes of data pinned */

#ifndef BOARD_CHIP_NAME
#define BOARD_CHIP_NAME ""
#endif
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/asm-ppc/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <asm/processor.h> /* For TASK_SIZE */
#include <asm/mmu.h>
#include <asm/page.h>
#include <asm/io.h> /* For sub-arch specific PPC_PIN_SIZE */
struct mm_struct;

extern unsigned long va_to_phys(unsigned long address);
Expand Down Expand Up @@ -127,9 +128,8 @@ extern unsigned long ioremap_bot, ioremap_base;
* of RAM. -- Cort
*/
#define VMALLOC_OFFSET (0x1000000) /* 16M */
#ifdef CONFIG_44x
#include <asm/ibm44x.h>
#define VMALLOC_START (((_ALIGN((long)high_memory, PPC44x_PIN_SIZE) + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)))
#ifdef PPC_PIN_SIZE
#define VMALLOC_START (((_ALIGN((long)high_memory, PPC_PIN_SIZE) + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)))
#else
#define VMALLOC_START ((((long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)))
#endif
Expand Down

0 comments on commit 2546f47

Please sign in to comment.