Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30866
b: refs/heads/master
c: f5c7726
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Jun 28, 2006
1 parent 294201d commit 3dd766d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d046f6118bb2a207870e35db1411b958199a3750
refs/heads/master: f5c7726ffc994f1826415852e7196bcb6c664d44
17 changes: 6 additions & 11 deletions trunk/arch/m68knommu/platform/68360/head-rom.S
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
.global _start

.global _rambase
.global __ramvec
.global _ramvec
.global _ramstart
.global _ramend

.global _quicc_base
.global _periph_base

#define RAMEND (CONFIG_RAMBASE + CONFIG_RAMSIZE)

#define REGB 0x1000
#define PEPAR (_dprbase + REGB + 0x0016)
#define GMR (_dprbase + REGB + 0x0040)
Expand Down Expand Up @@ -115,7 +116,7 @@ _stext:
nop
ori.w #MCU_DISABLE_INTRPTS, %sr /* disable interrupts: */
/* We should not need to setup the boot stack the reset should do it. */
movea.l #__ramend, %sp /* set up stack at the end of DRAM:*/
movea.l #RAMEND, %sp /* set up stack at the end of DRAM:*/


set_mbar_register:
Expand Down Expand Up @@ -245,16 +246,10 @@ store_ram_size:
/* Set ram size information */
move.l #_sdata, _rambase
move.l #_ebss, _ramstart
move.l #__ramend, %d0
move.l #RAMEND, %d0
sub.l #0x1000, %d0 /* Reserve 4K for stack space.*/
move.l %d0, _ramend /* Different from __ramend.*/
move.l %d0, _ramend /* Different from RAMEND.*/

store_flash_size:
/* Set rom size information */
move.l #__rom_end, %d0
sub.l #__rom_start, %d0
move.l %d0, rom_length

pea 0
pea env
pea %sp@(4)
Expand Down Expand Up @@ -298,7 +293,7 @@ _dprbase:
*/

.section ".data.initvect","awx"
.long __ramend /* Reset: Initial Stack Pointer - 0. */
.long RAMEND /* Reset: Initial Stack Pointer - 0. */
.long _start /* Reset: Initial Program Counter - 1. */
.long buserr /* Bus Error - 2. */
.long trap /* Address Error - 3. */
Expand Down

0 comments on commit 3dd766d

Please sign in to comment.