Commit Graph

58 Commits (aedffd78835f3afade2b34d55347048c01404c3f)

Author SHA1 Message Date
Ludwig Ortmann 3b6d0595ef native: indicate interrupt status in ISR context 7 years ago
Iván Briano 6846b4ebdd cpu: native: Add [v]fprintf to syscalls
External packages that may use fprintf(stderr, ...) for logging will
link directly to the libc version of it, and for some reason that
results in the application crashing.
7 years ago
kYc0o f92b025b85 vtimer: get rid of 8 years ago
DipSwitch 0bb4748a94 core: Fix/refactor function naming in core/incude/irq.h 8 years ago
Kaspar Schleiser 9082273746 core: header cleanup 8 years ago
Oleg Hahm 6d135d3579 native: make use of TLSF malloc and co
In order to make native behave more similar to other platforms, it should also use TLSF's dynamic memory allocation if included. It will still fall back to the system's malloc implementation when building for use with valgrind, to leverage its memory leak detection mechanisms.
8 years ago
BytesGalore 529e83675e cpp11: switched to use xtimer
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
8 years ago
Ludwig Knüpfer dd3229aa62 native: dynamically load malloc
g++ 5.2.0 apparently requires malloc before startup is run.
8 years ago
Kaspar Schleiser effb15a2cc Merge pull request #3313 from gebart/pr/eINT-fixes
eINT/dINT fixes
8 years ago
Ludwig Knüpfer eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 8 years ago
Joakim Gebart 0d2efd5fe7 native/syscalls: Use restoreIRQ 8 years ago
Kaspar Schleiser ef972735dc sys: net: replace dev_eth with netdev2, adapt native tap driver 8 years ago
Benoît Canet 4893d4daea native: irq: Get rid of dINT() and eINT()
Get rid of internal usage of the old IRQ
API and keep it's implementation while
waiting for other modules to kill it.
8 years ago
Martine Lenders 8a33a62914 native: add address sanitizer make target 8 years ago
Ludwig Ortmann 9a130e2e84 cpu/native: add some syscall wrappers
Add wrappers for chdir, setsid, and umask.
9 years ago
Ludwig Ortmann 3ab73bc633 cpu/native: init _native_in_calloc explicitly 9 years ago
Ludwig Ortmann f5cfda977a cpu/native: fix real_calloc initialization 9 years ago
Ludwig Ortmann 00092e8308 native: add time syscalls 9 years ago
Ludwig Ortmann 4de10a2ecb native: coding conventions 9 years ago
Ludwig Ortmann 7901d24053 native: add missing syscall declarations 9 years ago
Ludwig Ortmann d8641ff525 native: add random syscalls 9 years ago
Ludwig Ortmann acaa6481cb native: add more syscall declarations 9 years ago
Ludwig Ortmann 641cb4c488 native: add accept syscall declaration 9 years ago
Hinnerk van Bruinehsen 0e065cff2c lint: fix va_end_missing in cpu/native/syscalls.c 9 years ago
Ludwig Ortmann b849b848a0 native: add two more syscall declarations 9 years ago
René Kijewski a79d9c8562 native: remove redeclarations of sched_active_thread 9 years ago
Oleg Hahm 983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
9 years ago
Ludwig Ortmann 3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 9 years ago
Ludwig Ortmann 3cda0369cb native: cleanup
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
9 years ago
Ludwig Ortmann c6bcc344ca native: uart reconnect buffer replay
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).

The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.

closes #476
9 years ago
Ludwig Ortmann bea563d1da Fix a few cppcheck findings 9 years ago
René Kijewski 3063e3c2b1 Fix all warnings for native and qemu-i386
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
9 years ago
René Kijewski 2f871ca885 native: remove some warnings about undef functions
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
9 years ago
René Kijewski 2e9a1773e9 native: use `real_pipe()` and `read_close()` 9 years ago
Oleg Hahm ef5ec344fd core: prefix API functions correctly
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
10 years ago
Ludwig Ortmann 98bbb80571 documentation: append my email to my name everywhere 10 years ago
René Kijewski d98ebf62cd native: fixup #1145: function declaration 10 years ago
René Kijewski 8038e96d09 Merge pull request #1119 from Kijewski/error_old-style-definition
Exterminate old-style function definitions
10 years ago
Ludwig Ortmann 166b88f1ae native: internal getpid syscall 10 years ago
René Kijewski 9a9caf2c68 Exterminate old-style function definitions 10 years ago
Ludwig Ortmann 42aa3d9f5b native: update support for FreeBSD
works with FreeBSD 10.0 amd64/i386

fixes: #505
10 years ago
Ludwig Ortmann 9f24ae2e62 Merge pull request #946 from Kijewski/native-write
native: don't use RIOT read/write in UART
10 years ago
René Kijewski 0b75a11291 native: don't use RIOT read/write in UART 10 years ago
Ludwig Ortmann 8ef02d3b9d native profiling support
only works with Linux for now
10 years ago
Oleg Hahm 07b0cd8863 added gettimeofday syscall
RIOT's gettimeofday needs to be called from syscalls.c to assure that gcc actually links it.

If an RTC if available and enabled it will be used instead.
10 years ago
Ludwig Ortmann 86812c2abb make calloc "usable" early on
closes #741

Old versions of the gnu libc uses calloc to allocate dymanic memory
when some error occurs in dlsym.
This results in a segfault as natives calloc wrapper has not been
initialized yet.
As this is a circular dependency and the libc can cope with this, we
just return NULL from the calloc wrapper and hope for the best.

Recent libc versions use a static buffer instead.
10 years ago
René Kijewski 2349d0806e "Exterminate `} else {`" 10 years ago
Ludwig Ortmann fd083c95a6 check for active_thread != NULL in syscalls.c before using it
fixes #498
10 years ago
Ludwig Ortmann a55e85f8d0 guard swapcontext in _native_syscall_leave 10 years ago
Ludwig Ortmann 3c087107f2 fix call to err() 10 years ago