mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-22 15:56:59 +08:00
Merge branch 'main' of https://github.com/pkivolowitz/asm_book
iwjfoijwrofijworijf
This commit is contained in:
commit
ab115d6fce
1 changed files with 9 additions and 2 deletions
|
|
@ -62,6 +62,13 @@ file ends in .S*
|
||||||
|
|
||||||
## Differences between Apple and Linux
|
## Differences between Apple and Linux
|
||||||
|
|
||||||
|
### Getting the address of `errno`
|
||||||
|
|
||||||
|
`errno` is an externally defined `int32_t` used by many "system"
|
||||||
|
provided APIs to report error conditions back to calling programs. The
|
||||||
|
macro `ERRNO_ADDR` can be used to converge how Linux and Apple get the
|
||||||
|
address of the variable (which is left in `x0`).
|
||||||
|
|
||||||
### Variadic functions
|
### Variadic functions
|
||||||
|
|
||||||
*This is important! Understand this section in order to be able to use
|
*This is important! Understand this section in order to be able to use
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue