Rev 2071 | Rev 3940 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2071 | Rev 3908 | ||
|---|---|---|---|
| Line 24... | Line 24... | ||
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
27 | */ |
| 28 | 28 | ||
| 29 | /** @addtogroup mips32mm |
29 | /** @addtogroup mips32mm |
| 30 | * @{ |
30 | * @{ |
| 31 | */ |
31 | */ |
| 32 | /** @file |
32 | /** @file |
| 33 | */ |
33 | */ |
| 34 | 34 | ||
| 35 | #include <arch/mm/page.h> |
35 | #include <arch/mm/page.h> |
| 36 | #include <genarch/mm/page_pt.h> |
36 | #include <genarch/mm/page_pt.h> |
| 37 | #include <mm/page.h> |
37 | #include <mm/page.h> |
| - | 38 | #include <mm/frame.h> |
|
| 38 | 39 | ||
| 39 | void page_arch_init(void) |
40 | void page_arch_init(void) |
| 40 | { |
41 | { |
| 41 | page_mapping_operations = &pt_mapping_operations; |
42 | page_mapping_operations = &pt_mapping_operations; |
| 42 | } |
43 | } |
| Line 48... | Line 49... | ||
| 48 | uintptr_t hw_map(uintptr_t physaddr, size_t size) |
49 | uintptr_t hw_map(uintptr_t physaddr, size_t size) |
| 49 | { |
50 | { |
| 50 | return physaddr + 0xa0000000; |
51 | return physaddr + 0xa0000000; |
| 51 | } |
52 | } |
| 52 | 53 | ||
| - | 54 | void hw_area(uintptr_t *physaddr, pfn_t *frames) |
|
| - | 55 | { |
|
| - | 56 | *physaddr = end_frame; |
|
| - | 57 | *frames = ADDR2PFN(0xffffffff - end_frame); |
|
| - | 58 | } |
|
| - | 59 | ||
| 53 | /** @} |
60 | /** @} |
| 54 | */ |
61 | */ |