Page MenuHomeFreeBSD

Linux ARM v2 5/9
Needs ReviewPublic

Authored by soutade_gmail.com on Sep 20 2016, 2:04 PM.

Details

Test Plan

Linux ARM : Add core emulation files

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

soutade_gmail.com retitled this revision from to Linux ARM v2 5/9.
soutade_gmail.com updated this object.
soutade_gmail.com edited the test plan for this revision. (Show Details)
soutade_gmail.com set the repository for this revision to rS FreeBSD src repository - subversion.

Update linux_set_tls() functions. md_tp field not present anymore for arch >= v6.

Looks like patch to sys/conf/files.arm was not included in either of revisions. It should contain all source files in sys/arm/linux/. Gregory, could you include this change and attach to any of the existing revisions?

It feels like much of linux.h could be shared with i386. There may be more that should be shared, but I am yet to have a chance to look too deeply.

sys/arm/linux/linux.h
267

Why is this packed?

sys/arm/linux/linux_machdep.c
72

This should be <machine/pcb.h>

sys/arm/linux/linux.h
267

I had a problem with gcc compiler used for Linux application.

soutade_gmail.com edited edge metadata.

Use <machine/pcb.h> instead of <arm/include/pcb.h>

Remove old Linux syscalls (not presents in Linux calls.S). Add dummy linux_syscall.

sys/arm/linux/linux.h
267

Can you go into more details on the problem?

sys/arm/linux/linux.h
267

The generated structure was not the same in term of alignment making the application crash when using signals.

Remove obsolete syscalls. Add linux_send() and linux_recv()