1 |
/* |
/* |
2 |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: memory_mips_v2p.c,v 1.14 2006/10/14 23:47:37 debug Exp $ |
* $Id: memory_mips_v2p.c,v 1.16 2007/04/28 01:46:07 debug Exp $ |
29 |
*/ |
*/ |
30 |
|
|
31 |
|
|
383 |
cached_lo0) |
cached_lo0) |
384 |
& ENTRYLO_PFN_MASK) |
& ENTRYLO_PFN_MASK) |
385 |
>> ENTRYLO_PFN_SHIFT; |
>> ENTRYLO_PFN_SHIFT; |
386 |
paddr = (pfn << pfn_shift) | |
paddr = ((pfn << pfn_shift) & |
387 |
(vaddr & pmask); |
~pmask) | (vaddr & pmask); |
388 |
#endif |
#endif |
389 |
|
|
390 |
*return_paddr = paddr; |
*return_paddr = paddr; |