public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com>
To: <newlib@sourceware.org>
Cc: <Claudiu.Zissulescu@synopsys.com>, <Anton.Kolesov@synopsys.com>,
	<Francois.Bedard@synopsys.com>
Subject: [PATCH 2/2] [ARC] Add JLI support.
Date: Tue, 23 May 2017 13:08:00 -0000	[thread overview]
Message-ID: <1495544749-4457-3-git-send-email-claziss@synopsys.com> (raw)
In-Reply-To: <1495544749-4457-1-git-send-email-claziss@synopsys.com>

Initialize the jli_base registers for ARCv2 cpus.

libgloss/
2017-05-23  Claudiu Zissulescu  <claziss@synopsys.com>

	* arc/crt0.S: Initialize the jli_base registers for ARCv2 cpus.
---
 libgloss/arc/crt0.S | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libgloss/arc/crt0.S b/libgloss/arc/crt0.S
index f8d7148..46c9efd 100644
--- a/libgloss/arc/crt0.S
+++ b/libgloss/arc/crt0.S
@@ -142,6 +142,11 @@ __start:
 	bset	r2, r2, 19
 	flag	r2
 #endif
+
+#if defined (__ARC_CODE_DENSITY__)
+	;; Initialize jli_base
+	sr	@__JLI_TABLE__,[jli_base]
+#endif
 	mov	gp, @__SDATA_BEGIN__
 	mov_s	r2, @__sbss_start	; r2 = start of the bss section
 	sub	r3, @_end, r2		; r3 = size of the bss section in bytes
@@ -189,7 +194,7 @@ __start:
 	mov_s	r0, 1
 	st_s	r0, [r1, 4]		; _GLOBAL_REENT->atexit0._ind
 ; branch to _init
-#if defined (__EM__) || defined (__HS__)
+#if defined (__ARCEM__) || defined (__ARCHS__)
 	jl	@_init
 #else
 	bl	@_init
-- 
1.9.1

  parent reply	other threads:[~2017-05-23 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-23 13:08 [PATCH 0/2] [ARC] Profile and JLI patches Claudiu Zissulescu
2017-05-23 13:08 ` [PATCH 1/2] [ARC] Add profile support Claudiu Zissulescu
2017-05-23 13:08 ` Claudiu Zissulescu [this message]
2017-06-14 12:52 ` [PATCH 0/2] [ARC] Profile and JLI patches Corinna Vinschen

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=1495544749-4457-3-git-send-email-claziss@synopsys.com \
    --to=claudiu.zissulescu@synopsys.com \
    --cc=Anton.Kolesov@synopsys.com \
    --cc=Francois.Bedard@synopsys.com \
    --cc=newlib@sourceware.org \
    /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).