Ignore:
Timestamp:
2013-09-15T19:23:19Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3efc35a
Parents:
b6b02c0
Message:

Introduce early MMU support in kernel. At current state, it
is possible to create initial kernel address space, map kernel
identity into it and take over MMU control. ASID FIFO support
should also work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/arch.h

    rb6b02c0 ref9a2a8  
    11/*
    22 * Copyright (c) 2010 Martin Decky
     3 * Copyright (c) 2013 Jakub Klama
    34 * All rights reserved.
    45 *
     
    3839#ifndef __ASM__
    3940
    40 void arch_pre_main(void);
     41#include <typedefs.h>
     42
     43/* ASI assignments: */
     44#define ASI_CACHEMISS   0x01
     45#define ASI_CACHECTRL   0x02
     46#define ASI_MMUREGS     0x19
     47#define ASI_MMUBYPASS   0x1c
     48
     49#define TASKMAP_MAX_RECORDS  32
     50#define CPUMAP_MAX_RECORDS   32
     51
     52#define BOOTINFO_TASK_NAME_BUFLEN 32
     53
     54typedef struct {
     55        void *addr;
     56        size_t size;
     57        char name[BOOTINFO_TASK_NAME_BUFLEN];
     58} utask_t;
     59
     60typedef struct {
     61        size_t cnt;
     62        utask_t tasks[TASKMAP_MAX_RECORDS];
     63} bootinfo_t;
     64
     65void arch_pre_main(bootinfo_t *bootinfo);
    4166
    4267#endif
Note: See TracChangeset for help on using the changeset viewer.