tools/include/nolibc/arch-m68k.h
Source file repositories/reference/linux-study-clean/tools/include/nolibc/arch-m68k.h
File Facts
- System
- Linux kernel
- Corpus path
tools/include/nolibc/arch-m68k.h- Extension
.h- Size
- 7424 bytes
- Lines
- 144
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
compiler.hcrt.h
Detected Declarations
function __attribute__
Annotated Snippet
#ifndef _NOLIBC_ARCH_M68K_H
#define _NOLIBC_ARCH_M68K_H
#include "compiler.h"
#include "crt.h"
#define _NOLIBC_SYSCALL_CLOBBERLIST "memory"
#define __nolibc_syscall0(num) \
({ \
register long _num __asm__ ("d0") = (num); \
\
__asm__ volatile ( \
"trap #0\n" \
: "+r"(_num) \
: "r"(_num) \
: _NOLIBC_SYSCALL_CLOBBERLIST \
); \
_num; \
})
#define __nolibc_syscall1(num, arg1) \
({ \
register long _num __asm__ ("d0") = (num); \
register long _arg1 __asm__ ("d1") = (long)(arg1); \
\
__asm__ volatile ( \
"trap #0\n" \
: "+r"(_num) \
: "r"(_arg1) \
: _NOLIBC_SYSCALL_CLOBBERLIST \
); \
_num; \
})
#define __nolibc_syscall2(num, arg1, arg2) \
({ \
register long _num __asm__ ("d0") = (num); \
register long _arg1 __asm__ ("d1") = (long)(arg1); \
register long _arg2 __asm__ ("d2") = (long)(arg2); \
\
__asm__ volatile ( \
"trap #0\n" \
: "+r"(_num) \
: "r"(_arg1), "r"(_arg2) \
: _NOLIBC_SYSCALL_CLOBBERLIST \
); \
_num; \
})
#define __nolibc_syscall3(num, arg1, arg2, arg3) \
({ \
register long _num __asm__ ("d0") = (num); \
register long _arg1 __asm__ ("d1") = (long)(arg1); \
register long _arg2 __asm__ ("d2") = (long)(arg2); \
register long _arg3 __asm__ ("d3") = (long)(arg3); \
\
__asm__ volatile ( \
"trap #0\n" \
: "+r"(_num) \
: "r"(_arg1), "r"(_arg2), "r"(_arg3) \
: _NOLIBC_SYSCALL_CLOBBERLIST \
); \
_num; \
})
#define __nolibc_syscall4(num, arg1, arg2, arg3, arg4) \
({ \
register long _num __asm__ ("d0") = (num); \
register long _arg1 __asm__ ("d1") = (long)(arg1); \
register long _arg2 __asm__ ("d2") = (long)(arg2); \
register long _arg3 __asm__ ("d3") = (long)(arg3); \
register long _arg4 __asm__ ("d4") = (long)(arg4); \
\
__asm__ volatile ( \
"trap #0\n" \
: "+r" (_num) \
: "r"(_arg1), "r"(_arg2), "r"(_arg3), "r"(_arg4) \
: _NOLIBC_SYSCALL_CLOBBERLIST \
); \
_num; \
})
#define __nolibc_syscall5(num, arg1, arg2, arg3, arg4, arg5) \
({ \
register long _num __asm__ ("d0") = (num); \
register long _arg1 __asm__ ("d1") = (long)(arg1); \
register long _arg2 __asm__ ("d2") = (long)(arg2); \
register long _arg3 __asm__ ("d3") = (long)(arg3); \
register long _arg4 __asm__ ("d4") = (long)(arg4); \
Annotation
- Immediate include surface: `compiler.h`, `crt.h`.
- Detected declarations: `function __attribute__`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.