Commit Graph

28935 Commits

Author SHA1 Message Date
David Cabecinhas
f0c1c83389 Merged in dcabecinhas/nuttx/remove_redundant_coloring (pull request #275)
Remove redundant interrupt stack coloring and OABI code

Approved-by: Gregory Nutt
2017-03-16 12:52:40 +00:00
David Cabecinhas
4b65817e99 ARM: Set EABI stack alignment for all ARM architectures (remove OABI code) 2017-03-16 19:58:50 +08:00
David Cabecinhas
08e92abb0b ARM: Remove redundant interrupt stack coloring 2017-03-16 19:13:39 +08:00
David Sidrane
3cc2a4f7c9 sem_holder: Fixes improper restoration of base_priority
in the case of CONFIG_SEM_PREALLOCHOLDERS=0

   The call to sem_restorebaseprio_task context switches in the
   sem_foreachholder(sem, sem_restoreholderprioB, stcb); call
   prior to releasing the holder. So the running task is left
   as a holder as is the started task. Leaving both slots filled
   Thus failing to perforem the boost/or restoration on the
   correct tcb.

   This PR fixes this by releasing the running task slot prior
   to reprioritization that can lead to the context switch.
   To faclitate this, the interface to sem_restorebaseprio
   needed to take the tcb from the holder prior to the
   holder being freed. In the failure case where sched_verifytcb
   fails it added the overhead of looking up the holder.

   There is also the adfitinal thunking on the foreach to
   get from holer to holder->tcb.

   An alternate approach could be to leve the interface the same
   and allocate a holder on the stack of sem_restoreholderprioB
   copy the sem's holder to it, free it as is done in this pr
   and and then pass that address sem_restoreholderprio as the
   holder. It could then get the holder's tcb but we would
   keep the same sem_findholder in sched_verifytcb.
2017-03-15 17:12:45 -10:00
Anthony Merlino
c1dfbe5dcf Merged in merlin17/nuttx/ieee802154 (pull request #273)
fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154

Approved-by: Gregory Nutt
2017-03-16 00:53:13 +00:00
Gregory Nutt
059e398185 XMC4xxx: A few more SCU register bit definitions. 2017-03-15 18:50:48 -06:00
Gregory Nutt
938f7341f2 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 16:58:42 -06:00
Gregory Nutt
f9c22461c4 include/nuttx/fs/ioctl.h: Fix IOCTL numbering 2017-03-15 16:38:09 -06:00
Anthony Merlino
a492a05e34 fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154 2017-03-15 18:14:56 -04:00
Gregory Nutt
89a907a582 Bring closer to NuttX coding standard. 2017-03-15 16:11:36 -06:00
Gregory Nutt
fbd7e2ae34 Bring closer to NuttX coding standard. 2017-03-15 16:08:56 -06:00
Gregory Nutt
e897949e6d Trivial correction of a typo in a comment. 2017-03-15 15:47:26 -06:00
Gregory Nutt
95f36ac52b Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 15:16:50 -06:00
Gregory Nutt
255673b9d0 Fix a typo introduced in Kconfig with last commit 2017-03-15 15:16:16 -06:00
Gregory Nutt
f449b45b5d Trivial spacing fix 2017-03-15 14:59:58 -06:00
Anthony Merlino
defa6cf378 Merged in merlin17/nuttx/ieee802154 (pull request #272)
Refactors ieee802154dev character driver to radio802154dev

Approved-by: Gregory Nutt
2017-03-15 20:58:40 +00:00
Gregory Nutt
25e4e3c314 Bring closer to NuttX coding standard. 2017-03-15 14:57:13 -06:00
Gregory Nutt
f985b52587 Integrate use of new wireless debug macros. Replace ad hoc debug macros. Convert obsolete dbg() macros to current info(), warn(), err() macros. 2017-03-15 14:37:17 -06:00
Anthony Merlino
a4313bd07b wireless/ieee802.15.4: Refactors ieee802154_dev character driver to be radio802154_device 2017-03-15 16:32:43 -04:00
Gregory Nutt
15b2046748 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 14:32:05 -06:00
Gregory Nutt
57a1360c84 Add option to enable wireless debug output. 2017-03-15 14:31:01 -06:00
Anthony Merlino
5a6c95fddf wireless/ieee802154: Renamed file ieee802154_device to radio802154_device 2017-03-15 16:18:38 -04:00
Gregory Nutt
fc6405d519 Bring closer to NuttX coding standard. 2017-03-15 14:16:19 -06:00
Gregory Nutt
7a814ce1dc Bring closer to NuttX coding standard. 2017-03-15 13:44:03 -06:00
Gregory Nutt
a122dddb58 Bring closer to NuttX coding standard. 2017-03-15 13:24:51 -06:00
Gregory Nutt
fbc6415ca7 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 13:11:13 -06:00
Gregory Nutt
450d747265 Merge remote-tracking branch 'origin/master' into xmc4 2017-03-15 13:10:17 -06:00
David Sidrane
89717094eb Merged in david_s5/nuttx/upstream_prio_lpwork (pull request #271)
lp_worker:Guard from pend_reprios overlow

Approved-by: Gregory Nutt
2017-03-15 17:50:59 +00:00
Gregory Nutt
519f14fbb5 XMC4xxx: A few more SCU register bit definitions. 2017-03-15 11:43:58 -06:00
David Sidrane
55fb9645a7 Guard from pend_reprios overlow 2017-03-15 07:42:55 -10:00
Gregory Nutt
77f244ed7b XMC4xx: Add logic to get the CPU frequency. 2017-03-15 10:22:24 -06:00
Gregory Nutt
772b3cf21b XMC4xxx: Add Peripheral Memory Map header file. 2017-03-14 19:07:19 -06:00
Gregory Nutt
a635e7df7a XMC4xxx: Add SCU header file. 2017-03-14 16:19:30 -06:00
Gregory Nutt
e1039128a4 Update TODO 2017-03-14 13:05:06 -06:00
Gregory Nutt
2430049e3b arch/arm/include/xmc4: More support for Infineon XMC4xxx arch. Still incomplete. 2017-03-14 13:04:09 -06:00
Gregory Nutt
dc4ac48aad arch/arm/src/xmc4: Initial, partial support for Infineon XMC4xxx 2017-03-14 11:56:29 -06:00
Gregory Nutt
240d1e9b3b Update some comments 2017-03-14 11:39:10 -06:00
Gregory Nutt
c97581e99b Update some comments 2017-03-14 11:16:35 -06:00
Gregory Nutt
4a93b0dc0c Update comments. 2017-03-14 08:44:56 -06:00
David
33f7bfa351 ARM: Fix off-by-one interrupt stack allocation (revert missed change in up_initialize.c) 2017-03-14 21:01:44 +08:00
David Cabecinhas
116841138b Merged in dcabecinhas/nuttx/fix_intstack_allocation (pull request #269)
ARM: Fix off-by-one interrupt stack allocation in 8-byte aligned architectures

Approved-by: Gregory Nutt
2017-03-14 13:01:05 +00:00
David Cabecinhas
86400a252d ARM: Fix off-by-one interrupt stack allocation in 8-byte aligned architectures 2017-03-14 20:01:45 +08:00
David Sidrane
a3d7cdb3fe Merged in david_s5/nuttx/upstream_prio_fixes (pull request #268)
semaphore:sem_boostholderprio prevent overrun of pend_reprios

Approved-by: Gregory Nutt
2017-03-14 00:07:32 +00:00
Alan Carvalho de Assis
1870a35b0b Include C++ library to 'make export' 2017-03-13 18:01:21 -06:00
Gregory Nutt
aad82bcd9f Cosmetic change 2017-03-13 18:01:21 -06:00
David Sidrane
caf8bac7fb missing semi 2017-03-13 22:54:13 +00:00
David Sidrane
d66fd9f965 semaphore:sem_boostholderprio prevent overrun of pend_reprios
The second case rtcb->sched_priority <= htcb->sched_priority
  did not check if there is sufficient space in the pend_reprios
  array.
2017-03-13 12:34:39 -10:00
David Sidrane
f28a2f1328 Merged in david_s5/nuttx/upstream_prio_fixes (pull request #267)
Partial Fix priority inheritance  CONFIG_SEM_PREALLOCHOLDERS=0

Approved-by: Gregory Nutt
2017-03-13 22:18:49 +00:00
David Sidrane
3c00651cfe semaphore:sem_holder sem_findholder missing inintalization of pholder
sem_findholder would fail and code optimization coverd this up.
2017-03-13 11:56:31 -10:00
David Sidrane
4d760c5ea4 semaphore:sem_holder add DEBUGASSERT s 2017-03-13 10:46:26 -10:00