Subversion Repositories HelenOS-historic

Rev

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

Rev 814 Rev 815
Line 26... Line 26...
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
#include <arch/mm/frame.h>
29
#include <arch/mm/frame.h>
30
#include <mm/frame.h>
30
#include <mm/frame.h>
31
#include <arch/asm/boot.h>
-
 
32
#include <arch/mm/page.h>
-
 
33
#include <config.h>
31
#include <config.h>
34
#include <panic.h>
-
 
35
#include <print.h>
-
 
36
#include <arch/drivers/arc.h>
32
#include <arch/drivers/arc.h>
37
 
33
 
38
/** Create memory zones
34
/** Create memory zones
39
 *
35
 *
40
 * If ARC is known, read information from ARC, otherwise
36
 * If ARC is known, read information from ARC, otherwise
Line 44... Line 40...
44
void frame_arch_init(void)
40
void frame_arch_init(void)
45
{
41
{
46
    if (arc_enabled())
42
    if (arc_enabled())
47
        arc_frame_init();
43
        arc_frame_init();
48
    else {
44
    else {
49
        zone_create(1, (config.memory_size >> PAGE_WIDTH)-1,1,0);
45
        zone_create(1, (config.memory_size >> FRAME_WIDTH)-1,1,0);
50
    }
46
    }
51
}
47
}