HomeFreeBSD

Add a sysentvec for CloudABI on x86-64.

Description

Add a sysentvec for CloudABI on x86-64.

Summary:
For CloudABI we need to put two things on the stack of new processes:
the argument data (a binary blob; not strings) and a startup data
structure. The startup data structure contains interesting things such
as a pointer to the ELF program header, the thread ID of the initial
thread, a stack smashing protection canary, and a pointer to the
argument data.

Fetching system call arguments and setting the return value is similar
to FreeBSD. The only differences are that system call 0 does not exist
and that we call into cloudabi_convert_errno() to convert the error
code. We also need this function in a couple of other places, so we'd
better reuse it here.

Reviewers: dchagin, kib

Reviewed By: kib

Subscribers: imp

Differential Revision: https://reviews.freebsd.org/D3098

Details

Provenance
edAuthored on
Reviewer
kib
Differential Revision
D3098: Add a sysentvec for CloudABI on x86-64.
Parents
rS285640: Document r285550, w(1) now displays the full IPv6 address of a remote
Branches
Unknown
Tags
Unknown