Subversion Repositories HelenOS

Rev

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

Rev 3908 Rev 3910
Line 75... Line 75...
75
 * mapped devices and cannot be used.
75
 * mapped devices and cannot be used.
76
 *
76
 *
77
 */
77
 */
78
static bool frame_available(pfn_t frame)
78
static bool frame_available(pfn_t frame)
79
{
79
{
80
#ifdef msim
80
#ifdef MACHINE_msim
81
    /* MSIM device (dprinter) */
81
    /* MSIM device (dprinter) */
82
    if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
82
    if (frame == (KA2PA(MSIM_VIDEORAM) >> ZERO_PAGE_WIDTH))
83
        return false;
83
        return false;
84
   
84
   
85
    /* MSIM device (dkeyboard) */
85
    /* MSIM device (dkeyboard) */
86
    if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
86
    if (frame == (KA2PA(MSIM_KBD_ADDRESS) >> ZERO_PAGE_WIDTH))
87
        return false;
87
        return false;
88
#endif
88
#endif
89
 
89
 
90
#ifdef simics
90
#ifdef MACHINE_simics
91
    /* Simics device (serial line) */
91
    /* Simics device (serial line) */
92
    if (frame == (KA2PA(SERIAL_ADDRESS) >> ZERO_PAGE_WIDTH))
92
    if (frame == (KA2PA(SERIAL_ADDRESS) >> ZERO_PAGE_WIDTH))
93
        return false;
93
        return false;
94
#endif
94
#endif
95
 
95
 
96
#if defined(lgxemul) || defined(bgxemul)
96
#if defined(MACHINE_lgxemul) || defined(MACHINE_bgxemul)
97
    /* gxemul devices */
97
    /* gxemul devices */
98
    if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
98
    if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE,
99
        0x10000000, MB2SIZE(256)))
99
        0x10000000, MB2SIZE(256)))
100
        return false;
100
        return false;
101
#endif
101
#endif