From: Chris Morrow <cmorrow@YottaYotta.com>
To: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] hal_copy_data and hal_zero_bss
Date: Tue, 27 Feb 2001 01:54:00 -0000 [thread overview]
Message-ID: <3A9B7940.5C1C5038@YottaYotta.com> (raw)
In-Reply-To: <3A9AE517.255581C4@redhat.com>
Jonathan Larmour wrote:
>
> Chris Morrow wrote:
> >
> > An assembler version of hal_zero_bss is included
> > at the end of this message. I placed mine in
> > vectors.S. I'm not sure where you would like it.
>
One slight problem. If bss is exactly a multiple
of the block size, the byte loop goes wild. Sorry
about that.
diff -c -r1.23 vectors.S
*** vectors.S 2001/02/27 01:21:47 1.23
--- vectors.S 2001/02/27 09:46:57
***************
*** 803,814 ****
bne a3,a0,2b # to next store
nop
# finish 1 byte at a time
1: sb zero,0(a0) # zero memory
addiu a0,a0,1 # next addr
bne a0,a1,1b # to next store
nop
! jr ra
FUNC_END(hal_zero_bss)
--- 803,820 ----
bne a3,a0,2b # to next store
nop
+ # If length is a multiple of block size then we
+ # are done and need to skip the byte loop
+ beq a1,a0,3f
+ nop
+
# finish 1 byte at a time
1: sb zero,0(a0) # zero memory
addiu a0,a0,1 # next addr
bne a0,a1,1b # to next store
nop
! 3: jr ra
! nop
FUNC_END(hal_zero_bss)
--
Chris Morrow YottaYotta Inc.
email: cmorrow@yottayotta.com
phone: (780) 439 9000 ext 227
web: http://www.yottayotta.com
next prev parent reply other threads:[~2001-02-27 1:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-15 12:26 [ECOS] Header files in platform port Paul Pham
2001-01-15 13:22 ` [ECOS] hal_copy_data and hal_zero_bss Chris Morrow
2001-01-15 18:30 ` Jonathan Larmour
2001-02-25 18:05 ` Chris Morrow
2001-02-25 18:15 ` [ECOS] mips mmu setup Chris Morrow
2001-02-26 12:39 ` Jonathan Larmour
2001-02-26 15:22 ` [ECOS] hal_copy_data and hal_zero_bss Jonathan Larmour
2001-02-27 1:54 ` Chris Morrow [this message]
2001-02-27 10:25 ` Jonathan Larmour
2001-01-15 18:44 ` [ECOS] Header files in platform port Jonathan Larmour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A9B7940.5C1C5038@YottaYotta.com \
--to=cmorrow@yottayotta.com \
--cc=ecos-discuss@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).