Changeset a725a4d7 in rtems


Ignore:
Timestamp:
Nov 30, 2007, 1:23:04 AM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
e3481dcd
Parents:
486d6ec
Message:

2007-11-29 Till Straumann <strauman@…>

  • startup/bspstart.c, Makefile.am: Initialize BATs and enable MMU to come closer to what other BSPs do. This allows us to use the shared irq_asm.S. No more individual assembly code :-)
Location:
c/src/lib/libbsp/powerpc/psim
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r486d6ec ra725a4d7  
     12007-11-29      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * startup/bspstart.c, Makefile.am: Initialize BATs and enable MMU
     4        to come closer to what other BSPs do. This allows us to use the
     5        shared irq_asm.S. No more individual assembly code :-)
     6
    172007-11-28      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • c/src/lib/libbsp/powerpc/psim/Makefile.am

    r486d6ec ra725a4d7  
    6666
    6767noinst_PROGRAMS += irq.rel
    68 irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq_asm.S
     68irq_rel_SOURCES = irq/irq.c irq/irq_init.c ../shared/irq/irq_asm.S
    6969irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
    7070irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
  • c/src/lib/libbsp/powerpc/psim/startup/bspstart.c

    r486d6ec ra725a4d7  
    2525
    2626#include <libcpu/cpuIdent.h>
     27#include <libcpu/bat.h>
    2728#include <libcpu/spr.h>
    2829
     
    227228  BSP_rtems_irq_mng_init(0);
    228229
    229 }
     230  /*
     231   * Setup BATs and enable MMU
     232   */
     233  /* Memory */
     234  setdbat(0, 0x0<<24, 0x0<<24, 1<<24, _PAGE_RW);
     235  setibat(0, 0x0<<24, 0x0<<24, 1<<24,        0);
     236  /* PCI    */
     237  setdbat(1, 0x8<<24, 0x8<<24, 1<<24,  IO_PAGE);
     238  setdbat(2, 0xc<<24, 0xc<<24, 1<<24,  IO_PAGE);
     239
     240  _write_MSR(_read_MSR() | MSR_DR | MSR_IR);
     241  asm volatile("sync; isync");
     242
     243}
Note: See TracChangeset for help on using the changeset viewer.