# freebsd: Fix argc resolution in \_start · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/19659c3bd347471d3d55597bdc1c141e9e4a1ae1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 19659c3bd347471d3d55597bdc1c141e9e4a1ae1

Requested commit: 19659c3bd347471d3d55597bdc1c141e9e4a1ae1

Commit: 19659c3bd347471d3d55597bdc1c141e9e4a1ae1

Tree: e601a2d87d64277f611271c1e02d834def0892cb

Author: Marc Tiehuis

Committer: Greg V

## Message

```
freebsd: Fix argc resolution in _start

FreeBSD appears to use rdi instead of rsp as in other posix systems.
According to some loose documentation, x86 passes values on the stack,
so amd64 freebsd may be the only exception.

```

## Parents

- [102cb61e401ba2266938882d8a7d751a31a49ab2](https://git.cafe/gitcafe/zig/commit/102cb61e401ba2266938882d8a7d751a31a49ab2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/19659c3bd347471d3d55597bdc1c141e9e4a1ae1?format=markdown)
