On Tuesday 13 September 2016 20:08:46 David Ung wrote:
> FWIW, on linux as long as CONFIG_COMPAT is enabled, you can run both
> AArch64/32 userspace programs.  But the mode switching is done at an
> exception level, so you can't interlink 64 and 32bit programs (unlike
> intermixing mips16 and mips32, or thumb and arm code).
> 
> I had worked on the Pixel C, on that platform you get both 64 and 32bit set
> of libraries in the filesystem. On jetson tx1 would be the same.

What might (should?) work in my particular case is, since I'm starting from 
EL2:

- Modify SPSR_EL2, setting bit 4 = 1 and bits 3:0 to some valid aarch32 mode 
(0x3 - svc mode)
- set ELR_EL2 to a memory location with valid ARM code
- "ERET"

BR,
Matthias

> 
> David
> 
> ________________________________________
> From: Andreas Färber <afaer...@suse.de>
> Sent: Tuesday, September 13, 2016 7:31 AM
> To: Jiri Kastner
> Cc: Duane Ellis; Alexander Graf; openocd-devel
> Subject: Re: [OpenOCD-devel] OpenOCD AArch64 support
> 
> Am 13.09.2016 um 15:53 schrieb Jiri Kastner:
> > On Tue, Sep 13, 2016 at 01:15:03PM +0200, Andreas Färber wrote:
> >> Am 13.09.2016 um 11:44 schrieb Jiri Kastner:
> >>> jetson tx1:
> >>>  userspace part of linux4tegra for jetson tx1 releases are both, armv7hl
> >>>  and aarch64, while kernel is compiled for aarch64, so i guess tegra
> >>>  downstream kernel has appropriate code for switching from aarch64 to
> >>>  aarch32.>> 
> >> That surely has nothing to do with downstream, any arm64 kernel can run
> >> aarch32 code on hardware that supports it. ThunderX among others does
> >> not.
> > 
> > tx1 != thunderx. [...]
> 
> I know. My point was about "downstream" - running AArch32 code on arm64
> will be generic code, no Nvidia magic, so Matthias can look at upstream
> source. The Andromeda Box Edge and Odroid-C2 also run a 32-bit userland.
> 
> ThunderX was the only exception to the rule I could think of, name
> similarity is purely coincidental.
> 
> As for the Tegra X1, you may find this interesting:
> ftp://download.nvidia.com/tegra-public-appnotes/t210-nvtboot-flow.html
> 
> Regards,
> Andreas
> 
> --
> SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
> GF: Felix Imendörffer, Jane Smithard, Graham Norton
> HRB 21284 (AG Nürnberg)
> 
> ----------------------------------------------------------------------------
> -- _______________________________________________
> OpenOCD-devel mailing list
> OpenOCD-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openocd-devel
> 
> ----------------------------------------------------------------------------
> ------- This email message is for the sole use of the intended recipient(s)
> and may contain confidential information.  Any unauthorized review, use,
> disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message.
> ----------------------------------------------------------------------------
> -------
> 
> ----------------------------------------------------------------------------
> -- _______________________________________________
> OpenOCD-devel mailing list
> OpenOCD-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openocd-devel


------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to