mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Data abort in __set_thread_area
@ 2020-06-04 19:36 erny hombre
  2020-06-04 19:52 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: erny hombre @ 2020-06-04 19:36 UTC (permalink / raw)
  To: musl

Hello,
 
I am writing an operating system for an ARM processor (Cortex-A9). For the user programs I want to use musl libc. I have built a toolchain with musl-cross-make (musl 1.2.0). I can link a user program with libc.a. After loading the program, I call _start. Then I run into a data abort in function __set_thread_area (/musl-1.2.0/src/env/__libc_start_main.c) at this statement:
int ver = *(int *)0xffff0ffc;
The data abort is reasonable, because no memory is mapped at this virtual address. I don't know what's the purpose of this code. Can anybody explain me what this function does and which environment is needed to make it work ?
 
Thanks,
Erwin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-04 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 19:36 [musl] Data abort in __set_thread_area erny hombre
2020-06-04 19:52 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).