Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
2016-10-15 07:50:44 +02:00
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.
2016-06-03 16:05:14 -03:00
kYc0o
f92b025b85
vtimer: get rid of
2016-03-24 17:10:54 +01:00
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
2016-03-20 16:47:34 +01:00
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
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.
2016-01-03 20:53:08 +01:00
BytesGalore
529e83675e
cpp11: switched to use xtimer
...
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
2015-11-27 18:36:25 +01:00
Ludwig Knüpfer
dd3229aa62
native: dynamically load malloc
...
g++ 5.2.0 apparently requires malloc before startup is run.
2015-10-04 18:13:12 +02:00
effb15a2cc
Merge pull request #3313 from gebart/pr/eINT-fixes
...
eINT/dINT fixes
2015-09-29 12:39:16 +02:00
Ludwig Knüpfer
eda6328e21
documentation: update my name (Ortmann -> Knüpfer)
2015-09-27 18:58:30 +02:00
Joakim Gebart
0d2efd5fe7
native/syscalls: Use restoreIRQ
2015-09-19 10:35:58 +02:00
ef972735dc
sys: net: replace dev_eth with netdev2, adapt native tap driver
2015-09-04 15:39:04 +02:00
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.
2015-07-29 16:51:22 +02:00
Martine Lenders
8a33a62914
native: add address sanitizer make target
2015-07-09 15:00:19 +02:00
Ludwig Ortmann
9a130e2e84
cpu/native: add some syscall wrappers
...
Add wrappers for chdir, setsid, and umask.
2015-02-17 22:00:14 +01:00
Ludwig Ortmann
3ab73bc633
cpu/native: init _native_in_calloc explicitly
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
f5cfda977a
cpu/native: fix real_calloc initialization
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
00092e8308
native: add time syscalls
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
4de10a2ecb
native: coding conventions
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
7901d24053
native: add missing syscall declarations
2014-11-25 22:47:26 +01:00
Ludwig Ortmann
d8641ff525
native: add random syscalls
2014-11-19 14:26:58 +01:00
Ludwig Ortmann
acaa6481cb
native: add more syscall declarations
2014-11-14 20:52:17 +01:00
Ludwig Ortmann
641cb4c488
native: add accept syscall declaration
2014-11-14 17:49:56 +01:00
Hinnerk van Bruinehsen
0e065cff2c
lint: fix va_end_missing in cpu/native/syscalls.c
2014-10-31 01:24:32 +01:00
Ludwig Ortmann
b849b848a0
native: add two more syscall declarations
2014-10-01 21:56:43 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +02:00
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.
2014-08-01 12:02:54 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3cda0369cb
native: cleanup
...
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
2014-07-27 15:16:38 +02:00
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
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
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.
2014-06-24 16:50:32 +02:00
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.
2014-06-18 20:34:12 +02:00
René Kijewski
2e9a1773e9
native: use real_pipe()
and read_close()
2014-06-14 00:39:02 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
2014-05-15 18:07:17 +02:00
René Kijewski
d98ebf62cd
native: fixup #1145 : function declaration
2014-05-14 16:54:34 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00
Ludwig Ortmann
166b88f1ae
native: internal getpid syscall
2014-05-14 09:13:57 +02:00
René Kijewski
9a9caf2c68
Exterminate old-style function definitions
2014-05-12 21:57:09 +02:00
Ludwig Ortmann
42aa3d9f5b
native: update support for FreeBSD
...
works with FreeBSD 10.0 amd64/i386
fixes : #505
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
9f24ae2e62
Merge pull request #946 from Kijewski/native-write
...
native: don't use RIOT read/write in UART
2014-04-09 18:17:09 +02:00
René Kijewski
0b75a11291
native: don't use RIOT read/write in UART
2014-03-30 22:33:50 +02:00
Ludwig Ortmann
8ef02d3b9d
native profiling support
...
only works with Linux for now
2014-03-14 12:50:50 +01:00
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.
2014-02-25 17:41:45 +01:00
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.
2014-02-22 13:08:45 +01:00
René Kijewski
2349d0806e
"Exterminate } else {
"
2014-02-16 23:29:47 +01:00
Ludwig Ortmann
fd083c95a6
check for active_thread != NULL in syscalls.c before using it
...
fixes #498
2014-01-31 09:31:22 +01:00
Ludwig Ortmann
a55e85f8d0
guard swapcontext in _native_syscall_leave
2014-01-29 18:44:42 +01:00
Ludwig Ortmann
3c087107f2
fix call to err()
2014-01-29 16:54:36 +01:00