source: mainline/doc/arch/mips@ 5e2455a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 5e2455a was d47f0e1, checked in by Jakub Jermar <jakub@…>, 20 years ago

SMP recovery patch #1. (SMP still broken)
Move ap_boot() to K_TEXT_START_2 section.
Change ap_boot() to cope with mapping of kernel address space.
Change some addresses in mps.c from kernel to physical.

MIPS.
Move msim dprinter device to 0xB0000000.
This address is from kseg1 (unmapped, uncached) segment.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1SPARTAN kernel currently supports emulated MIPS R4000 32-bit
2little-endian architecture. In other words, it can only run in MIPS
3R4000 emulator called msim. This emulator is being developed by Viliam
4Holub:
5
6http://nenya.ms.mff.cuni.cz/~holub/msim
7
8Note that msim diverges from real MIPS hardware in some aspects.
9Therefore, some non-trivial changes will be necessary for a real
10hardware port. The simulator is described in this manual:
11
12http://nenya.ms.mff.cuni.cz/~holub/msim/msim.ps
13
14You'll need a msim.conf script like this:
15
16 #
17 # MSIM configuration script
18 #
19
20 add dcpu mips1
21
22 add rwm mainmem 0 16M load "kernel.bin"
23 add rom startmem 0x1fc00000 1k load "load.bin"
24
25 add dprinter printer 0x10000000
26
27
28
29BOOTSTRAP
30=========
31Because the mips port uses binary executable format and for some other
32architectural reasons, it shares one address for bootstrap entry
33(address where control is passed from loader) and for TLB refill
34exception entry. The former is used only once during system bootstrap.
35From that point further, only TLB refill exception entry uses that
36address. Note that this is the reason why main_bsp() is called from
37tlb_refill() code.
Note: See TracBrowser for help on using the repository browser.