1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

30784 Commits

Author SHA1 Message Date
Marian Buschsieweke
57264c5059
core: Access internal vars via helper funcs
Replace accesses to `sched_active_thread`, `sched_active_pid`, and
`sched_threads` with `thread_get_active()`, `thread_get_active_pid()`, and
`thread_get_unchecked()` where sensible.
2020-08-06 16:47:33 +02:00
Marian Buschsieweke
4a31578982
core/thread: Add/change helper access functions
- Add `thread_get_active()` to access the TCB
- Add `thread_get_unchecked()` as fast alternative to `thread_get()`
- Drop `volatile` qualifier in `thread_get()`
    - Right now every caller of this function does this. It is better to
      contain this undefined behavior to at least one place in code
2020-08-06 14:35:43 +02:00
e81d0050d1
Merge pull request #14717 from kaspar030/optim_msg_active_thread
core/msg: sched_threads[sched_active_pid] -> sched_active_thread
2020-08-06 14:18:17 +02:00
70610b3d8a
Merge pull request #14661 from bergzand/pr/tests/bench/Add_ticks_result 2020-08-06 13:50:11 +02:00
5dbcfa3391
Merge pull request #14698 from benpicco/core/bitarithm-msb_clz
core/bitarithm: use __builtin_clz() for bitarithm_msb()
2020-08-06 13:00:34 +02:00
1bb3d56bd5 core/msg: sched_threads[sched_active_pid] -> sched_active_thread
Same result, but only a single volatile read.
2020-08-06 12:46:26 +02:00
8d50a597ee
bench_thread_yield_pingpong: Add number of clock ticks per cycle 2020-08-06 11:54:25 +02:00
566d838113
bench_thread_flags_pingpong: Add number of clock ticks per cycle 2020-08-06 11:54:25 +02:00
86035661a3
bench_mutex_pingpong: Add number of clock ticks per cycle 2020-08-06 11:54:24 +02:00
f2a27dd46b
bench_sched_nop: Add number of clock ticks per cycle 2020-08-06 11:54:24 +02:00
cf56a2c2f4
bench_msg_pingpong: Add number of clock ticks per cycle 2020-08-06 11:53:53 +02:00
Francisco
5462323049
Merge pull request #14714 from kaspar030/fix_chronos_lostandfound
LOSTANDFOUND.md: fix chronos board removal commit hash
2020-08-06 09:12:19 +02:00
20bdc64792 LOSTANDFOUND.md: fix chronos board removal commit hash
Rebasing seems to have changed it.
2020-08-05 22:28:14 +02:00
Marian Buschsieweke
90f5d21092
Merge pull request #12457 from kaspar030/update_msp430
cpu/msp430: update to modern gcc/ELF/newlib toolchain
2020-08-05 17:46:07 +02:00
Martine Lenders
b9a4a5ead7
Merge pull request #14664 from miri64/make/feat/termlog
Makefile.include: add capability to log `make term` to file
2020-08-05 17:45:07 +02:00
Martine Lenders
f364d315ab
Merge pull request #14708 from kaspar030/murdock_disable_nrf52dk
murdock: disable nrf52dk
2020-08-05 15:49:58 +02:00
Francisco
075dcde147
Merge pull request #14701 from benpicco/openocd-adapters/raspi.inc.mk-fix
openocd-adapters/raspi.inc.mk-fix: fix typo
2020-08-05 14:53:00 +02:00
480ef3225d tests/pkg_c25519: increase test timeout (z1 needs >5min) 2020-08-05 14:32:58 +02:00
8afaf11bb5 tests/periph_gpio: bench port 1 on z1
/* Port 1:
     *  P1.0 is not assigned by default
     *  P1.1 is the bootstrap-loader (BSL) TX pin -> input, special function, default to GND
     *       THIS PIN MUST *NEVER* BE USED IN NORMAL EXECUTION, SINCE IT INTERFERES WITH UART0 !!!
     *  P1.2 receives the FIFOP interrupt from CC2420 -> input, GPIO, default to GND
     *  P1.3 receives the FIFO/GIO0 interrupt from CC2420 -> input, GPIO, default to GND
     *  P1.4 receives the CCA/GIO1 signal from CC2420 -> input, GPIO, default to GND
     *  P1.5 is wired to Vcc -> input, GPIO, default to Vcc
     *  P1.6 receives interrupt INT1 from accelerometer -> input, GPIO, default to GND
     *  P1.7 receives interrupt INT2 from accelerometer -> input, GPIO, default to GND
     */

(test starts indexing at 0)
2020-08-05 14:32:58 +02:00
789f10e816 cpu/msp430_common: increase THREAD_STACKSIZE_DEFAULT to 384
Both tests/pthread_tls and tests/prng_sha256prng fail without this, but
other platforms run fine with their defaults. Lets consider the higher
value a better default.
2020-08-05 14:32:58 +02:00
4f233cd7ea cpu: remove cc430
The only board with this chipset was the chronos, which has been
removed.
2020-08-05 14:32:58 +02:00
038823c731 cpu/msp430_common/vendor/README.md: add some explanation 2020-08-05 14:32:58 +02:00
b8f94c2a51 pkg/tweetnacl: blacklist for msp430 2020-08-05 14:32:58 +02:00
1298e51541 tests: update msp430 memory blacklists 2020-08-05 14:32:58 +02:00
1caff0dc94 tests/unittests/tests-rtt_rtc: fix implicit integer conversions 2020-08-05 14:32:58 +02:00
8171391d16 tests/gnrc_sock_udp: memory blacklist msb-430 msb-430h 2020-08-05 14:32:58 +02:00
e4bb06227f sys/newlib_syscalls_default: don't use static msp430 heap size 2020-08-05 14:32:58 +02:00
5a00e2e36c cpu/msp430_common: use __stack for ISR stacks 2020-08-05 14:32:58 +02:00
7fb8306553 tests/pkg_c25519: increase main stack size for msp430 2020-08-05 14:32:58 +02:00
aa2f500d51 cpu/msp430_common: update thread_stack_init to changed ABI
The old mspgcc used R15-R12 for args 0-3. The newer MSP430 EABI uses
R12-15.

See https://www.ti.com/lit/an/slaa664/slaa664.pdf for more details.
2020-08-05 14:32:58 +02:00
909d740d37 cpu/msp430_common: bump msp430-gcc-support-files to 1.210 2020-08-05 14:32:58 +02:00
ef099f9d46 cpu/msp430_common: add NOPs to irq functions
They might not be necessary, but GCC warns if they're absent.
Thus let's pay the one or two extra instructions for silencing the
warnings.
2020-08-05 14:32:58 +02:00
08c50947cc cpu/msp430_common: move newlib default module decl to Makefile.dep 2020-08-05 14:32:58 +02:00
ca0ffed03d LOSTANDFOUND.md: add chronos removal 2020-08-05 14:32:58 +02:00
acd47f0c1f gnrc_tcp: abs() -> labs() for int32_t
Fixes compilation on msp430 and probably avr.
2020-08-05 14:32:58 +02:00
5dd24e12bf tests/c11_atomics_cpp_compat: remove msp430 special case 2020-08-05 14:32:58 +02:00
fd335d30ee cpu/msp430: re-create c11_atomics_compat_cpu.hpp using msp430-elf-gcc 2020-08-05 14:32:58 +02:00
6fe7a47563 tests: remove obsolete msp430 blacklists 2020-08-05 14:32:58 +02:00
f08f582f1a tests, examples: remove chronos references 2020-08-05 14:32:58 +02:00
ed3887ac5c boards: remove chronos support 2020-08-05 14:32:58 +02:00
e09383d343 sys/newlib_syscalls_default: mark _exit as used 2020-08-05 14:32:58 +02:00
9f7bfde27e tests: update msp430 memory blacklists 2020-08-05 14:32:57 +02:00
10213057b1 cpu/msp430: update deps, move to Makefile.dep 2020-08-05 14:32:57 +02:00
c9883cebfd core/atomic_c11: fix I2 typedef for 16bit platforms 2020-08-05 14:32:57 +02:00
26c915dcb3 tools: print_toolchain_versions.sh: update to msp430-elf 2020-08-05 14:29:07 +02:00
260ec3666f cpu/msp430: select newlib_nano module if newlib is used 2020-08-05 14:29:07 +02:00
be4d5a33e3 tests: update msp430 BOARD_INSUFFICIENT_MEMORY entries 2020-08-05 14:29:07 +02:00
8753457e45 cpu/msp430_common: use default newlib heap_stats 2020-08-05 14:29:07 +02:00
c722b4f861 boards/chronos: remove UART config 2020-08-05 14:29:07 +02:00
9db23b6c3d cpu/cc430: update to new support headers 2020-08-05 14:29:07 +02:00