Skip to content

Fix the Linux/m68k target#370

Merged
davidgiven merged 1 commit into
davidgiven:defaultfrom
johnsonjh:johnsonjh/20260716/m68k
Jul 16, 2026
Merged

Fix the Linux/m68k target#370
davidgiven merged 1 commit into
davidgiven:defaultfrom
johnsonjh:johnsonjh/20260716/m68k

Conversation

@johnsonjh

@johnsonjh johnsonjh commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
  1. Fixed the Linux/m68k startup code (bad argv, swapped args, wrong env pointer).
  2. Fixed _syscall putting args in d2/d3 without saving them.

It builds https://gitlab.com/dps8m/crc.git correctly and the full CRC test suite (make test) now passes.

Closes #369

1. Fixed  the Linux/m68k startup code (bad argv, swapped args, wrong env pointer).
2. Fixed `_syscall` put args in `d2`/`d3` without saving them.

Closes #369 (#369)

Signed-off-by: Jeffrey H. Johnson <johnsonjh.dev@gmail.com>
@davidgiven

Copy link
Copy Markdown
Owner

Ta. (Really there should be some tests for the startup code.)

@davidgiven
davidgiven merged commit 6f7e44d into davidgiven:default Jul 16, 2026
1 of 3 checks passed
@johnsonjh
johnsonjh deleted the johnsonjh/20260716/m68k branch July 16, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux/m68k target is broken for all but the most trivial binaries

2 participants