Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4343 | Rev 4344 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | */ |
28 | */ |
29 | 29 | ||
30 | /** @addtogroup ia64mm |
30 | /** @addtogroup ia64mm |
31 | * @{ |
31 | * @{ |
32 | */ |
32 | */ |
33 | /** @file |
33 | /** @file |
34 | */ |
34 | */ |
35 | 35 | ||
Line 61... | Line 61... | ||
61 | 61 | ||
62 | /** Initialize VHPT and region registers. */ |
62 | /** Initialize VHPT and region registers. */ |
63 | void set_environment(void) |
63 | void set_environment(void) |
64 | { |
64 | { |
65 | region_register rr; |
65 | region_register rr; |
66 | pta_register pta; |
66 | pta_register pta; |
67 | int i; |
67 | int i; |
68 | #ifdef CONFIG_VHPT |
68 | #ifdef CONFIG_VHPT |
69 | uintptr_t vhpt_base; |
69 | uintptr_t vhpt_base; |
70 | #endif |
70 | #endif |
71 | 71 | ||
72 | /* |
72 | /* |
73 | * First set up kernel region register. |
73 | * First set up kernel region register. |
Line 268... | Line 268... | ||
268 | v->present.tag.tag_word = tag; |
268 | v->present.tag.tag_word = tag; |
269 | } |
269 | } |
270 | 270 | ||
271 | uintptr_t hw_map(uintptr_t physaddr, size_t size __attribute__ ((unused))) |
271 | uintptr_t hw_map(uintptr_t physaddr, size_t size __attribute__ ((unused))) |
272 | { |
272 | { |
273 | /* This is a dirty hack. */ |
273 | /* THIS is a dirty hack. */ |
274 | return PA2KA(physaddr); |
- | |
275 | } |
- | |
276 | - | ||
277 | void hw_area(uintptr_t *physaddr, pfn_t *frames) |
274 | return (uintptr_t)((uint64_t)(PA2KA(physaddr)) + VIO_OFFSET); |
278 | { |
- | |
279 | *physaddr = end_frame; |
- | |
280 | *frames = ADDR2PFN(0x7fffffffffffffffUL - end_frame); |
- | |
281 | } |
275 | } |
282 | 276 | ||
283 | /** @} |
277 | /** @} |
284 | */ |
278 | */ |