Changeset 778c1e1 in mainline for arch/sparc64/src


Ignore:
Timestamp:
2006-02-22T14:52:18Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d53ef4
Parents:
effee6f
Message:

Move OFW functionality of ppc32 memory_init to genarch so that the code can also be used by sparc64.
sparc64 is now close to broken as it lacks functionality to provide identity mapping for the whole phyisical memory.

Location:
arch/sparc64/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/mm/frame.c

    reffee6f r778c1e1  
    2828
    2929#include <arch/mm/frame.h>
     30#include <genarch/ofw/memory_init.h>
    3031#include <mm/frame.h>
    3132#include <config.h>
     
    3435void frame_arch_init(void)
    3536{
    36         zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
     37        ofw_init_zones();
    3738
    3839        /*
  • arch/sparc64/src/start.S

    reffee6f r778c1e1  
    9999        stx %o4, [%l0]
    100100
     101        call ofw_init_memmap
     102        nop
     103
    101104        call main_bsp
    102105        nop
  • arch/sparc64/src/trap/trap.c

    reffee6f r778c1e1  
    3232#include <arch/trap/exception.h>
    3333#include <arch/trap/interrupt.h>
     34#include <arch/trap/mmu.h>
    3435#include <arch/asm.h>
    3536#include <memstr.h>
     
    8182        trap_install_handler(TT_INTERRUPT_LEVEL_15, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
    8283        trap_install_handler(TT_INTERRUPT_VECTOR_TRAP, INTERRUPT_VECTOR_TRAP_HANDLER_SIZE, false);
     84
     85        /*
     86         * Kernel must become independent on Open Firmware calls before MMU handlers are enabled.
     87         */
     88/*
     89        trap_install_handler(TT_FAST_INSTRUCTION_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, false);
     90        trap_install_handler(TT_FAST_DATA_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, false);
     91        trap_install_handler(TT_FAST_DATA_ACCESS_PROTECTION, FAST_MMU_HANDLER_SIZE, false);
     92        trap_install_handler(TT_FAST_INSTRUCTION_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, true);
     93        trap_install_handler(TT_FAST_DATA_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, true);
     94        trap_install_handler(TT_FAST_DATA_ACCESS_PROTECTION, FAST_MMU_HANDLER_SIZE, true);
     95*/
     96
    8397}
    8498
Note: See TracChangeset for help on using the changeset viewer.