From: behanw@converseincode.com (Behan Webster)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/5] arm: LLVMLinux: Add current_stack_pointer macro for ARM
Date: Fri, 06 Sep 2013 18:50:45 -0400 [thread overview]
Message-ID: <522A5C45.5030709@converseincode.com> (raw)
In-Reply-To: <yw1xmwnp1txm.fsf@unicorn.mansr.com>
On 09/06/13 18:12, M?ns Rullg?rd wrote:
> behanw at converseincode.com writes:
>
>> +#define current_stack_pointer ({ \
>> + unsigned long current_sp; \
>> + asm ("mov %0, r13" : "=r" (current_sp)); \
>> + current_sp; \
>> +})
> Why do you use 'r13' rather than the more common 'sp' alias?
Originally we were using LLVM's Integrated Assembler (IA), which didn't
allow for that alias if I remember correctly. However, now we're using
gas because IA only supports Unified Assembly Language grammar, and not
the extensions that are common in the kernel code.
I can resubmit using that alias (after the rest of the discussion).
Behan
--
Behan Webster
behanw at converseincode.com
next prev parent reply other threads:[~2013-09-06 22:50 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 21:28 [PATCH 0/5] arm: LLVMLinux: Add current_stack_pointer behanw at converseincode.com
2013-09-06 21:28 ` behanw
2013-09-06 21:28 ` [PATCH 1/5] arm: LLVMLinux: Add current_stack_pointer macro for ARM behanw at converseincode.com
2013-09-06 21:28 ` behanw
2013-09-06 22:12 ` Måns Rullgård
2013-09-06 22:12 ` Måns Rullgård
2013-09-06 22:50 ` Behan Webster [this message]
2013-09-06 22:20 ` Russell King - ARM Linux
2013-09-06 22:20 ` Russell King - ARM Linux
2013-09-06 22:54 ` Behan Webster
2013-09-06 21:28 ` [PATCH 2/5] arm: LLVMLinux: use current_stack_pointer for percpu behanw at converseincode.com
2013-09-06 21:28 ` behanw
2013-09-06 22:22 ` Russell King - ARM Linux
2013-09-06 22:22 ` Russell King - ARM Linux
2013-09-06 22:56 ` Behan Webster
2013-09-06 22:31 ` Måns Rullgård
2013-09-06 22:31 ` Måns Rullgård
2013-09-06 22:59 ` Behan Webster
2013-09-07 5:12 ` Nicolas Pitre
2013-09-07 5:12 ` Nicolas Pitre
2013-09-09 9:59 ` Will Deacon
2013-09-09 9:59 ` Will Deacon
2013-09-06 21:28 ` [PATCH 3/5] arm: LLVMLinux: Use current_stack_pointer for return_address behanw at converseincode.com
2013-09-06 21:28 ` behanw
2013-09-06 21:28 ` [PATCH 4/5] arm: LLVMLinux: Use current_stack_pointer in save_stack_trace_tsk behanw at converseincode.com
2013-09-06 21:28 ` behanw
2013-09-06 21:28 ` [PATCH 5/5] arm: LLVMLinux: Use current_stack_pointer in unwind_backtrace behanw at converseincode.com
2013-09-06 21:28 ` behanw
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=522A5C45.5030709@converseincode.com \
--to=behanw@converseincode.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.