Subversion Repositories HelenOS

Rev

Rev 3908 | Rev 3971 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3908 Rev 3940
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 46... Line 46...
46
#include <panic.h>
46
#include <panic.h>
47
#include <arch/asm.h>
47
#include <arch/asm.h>
48
#include <arch/barrier.h>
48
#include <arch/barrier.h>
49
#include <memstr.h>
49
#include <memstr.h>
50
#include <align.h>
50
#include <align.h>
-
 
51
#include <ddi/ddi.h>
-
 
52
 
-
 
53
/** Physical memory area for devices. */
-
 
54
static parea_t dev_area;
51
 
55
 
52
static void set_environment(void);
56
static void set_environment(void);
53
 
57
 
54
/** Initialize ia64 virtual address translation subsystem. */
58
/** Initialize ia64 virtual address translation subsystem. */
55
void page_arch_init(void)
59
void page_arch_init(void)
Line 272... Line 276...
272
{
276
{
273
    /* This is a dirty hack. */
277
    /* This is a dirty hack. */
274
    return PA2KA(physaddr);
278
    return PA2KA(physaddr);
275
}
279
}
276
 
280
 
277
void hw_area(uintptr_t *physaddr, pfn_t *frames)
281
void hw_area(void)
278
{
282
{
279
    *physaddr = end_frame;
283
    dev_area.pbase = end_frame;
280
    *frames = ADDR2PFN(0x7fffffffffffffffUL - end_frame);
284
    dev_area.frames = SIZE2FRAMES(0x7fffffffffffffffUL - end_frame);
-
 
285
    ddi_parea_register(&dev_area);
281
}
286
}
282
 
287
 
283
/** @}
288
/** @}
284
 */
289
 */