LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Patrick Loschmidt<Patrick.Loschmidt@o...>
    Date: Thu Dec 30 15:57:10 CET 2004
    Subject: [openrisc] Bug in hello-uart
    Top
    Hi!

    I'm not sure, whether this is the right mailing list, but there is a
    tricky bug in the hello-uart example program of or1k:

    Index: hello-uart/reset.S
    ===================================================================
    RCS file: /cvsroot/anonymous/or1k/hello-uart/reset.S,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 reset.S
    --- hello-uart/reset.S 7 Jan 2004 10:51:11 -0000 1.1.1.1
    +++ hello-uart/reset.S 30 Dec 2004 14:53:54 -0000
    @@ -11,7 +11,7 @@
    _reset:
    l.movhi r1,hi(_stack-4)
    l.ori r1,r1,lo(_stack-4)
    - l.addi r2,r0,-3
    + l.addi r2,r0,-4
    l.and r1,r1,r2

    l.movhi r2,hi(_main)

    I suppose that the -3 should do an alignment to 32bit words but this is
    not the case. Because -3 is b1101 or 0xD so it should be -4 equal to
    b1100 or 0xC. Could somebody please confirm this?

    Regards,
    Patrick

    Follow upAuthor
    [openrisc] Bug in hello-uartMatjaz Breskvar

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.