Commit Graph

28655 Commits

Author SHA1 Message Date
David Sidrane
0501ee4dac Merged in david_s5/nuttx/upstream_prio_inversion_restore_fix (pull request #274)
sem_holder: Fixes improper restoration of base_priority

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-03-17 12:46:26 +00:00
David Sidrane
7601a27cee sem_holder:The logic for the list version is unchanged 2017-03-16 14:16:18 -10:00
Alan Carvalho de Assis
c3ccfab720 Fix mksyscall host binary name 2017-03-16 11:40:03 -06:00
no1wudi
494ea5f5ec Merged in no1wudi/nuttx (pull request #276)
fixed descritpions of NUC100/120

Approved-by: Gregory Nutt
2017-03-16 15:55:24 +00:00
no1wudi
812578c066 Merge branch 'master' of https://bitbucket.org/nuttx/nuttx 2017-03-16 23:07:38 +08:00
no1wudi
c613a360a3 Merge branch 'master' of https://bitbucket.org/no1wudi/nuttx 2017-03-16 23:06:54 +08:00
no1wudi
1280c91564 fixed descritpions of NUC100/120 2017-03-16 23:04:52 +08:00
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
Gregory Nutt
f9c22461c4 include/nuttx/fs/ioctl.h: Fix IOCTL numbering 2017-03-15 16:38:09 -06:00
Gregory Nutt
255673b9d0 Fix a typo introduced in Kconfig with last commit 2017-03-15 15:16:16 -06:00
Gregory Nutt
57a1360c84 Add option to enable wireless debug output. 2017-03-15 14:31:01 -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
David Sidrane
55fb9645a7 Guard from pend_reprios overlow 2017-03-15 07:42:55 -10:00
Gregory Nutt
e1039128a4 Update TODO 2017-03-14 13:05:06 -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 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
Gregory Nutt
5f5b20ab74 Cosmetic update to some spacing and comments. 2017-03-13 13:15:49 -06:00
Gregory Nutt
888cff30dc Fix some errors in the previous commit 2017-03-13 10:14:38 -06:00
Gregory Nutt
b808084e57 Move wireless IOCTLs from include/nuttx/net/ioctl to include/nuttx/wireless/wireless.h. Add some linux compatible structures to use with the IOCTL commands. 2017-03-13 09:51:31 -06:00
Gregory Nutt
2bcb8b7b07 If whence is SEEK_END, the file offset shall be set to the size of the file plus offset. Noted by eunb.song@samsung.com 2017-03-13 07:31:47 -06:00
Gregory Nutt
b9bb9ea853 Fix a typo in the last commit. 2017-03-12 12:59:59 -06:00
Gregory Nutt
430b52c977 Networking: Add registration support for integrated ieee80211 wireless drivers. Rename CONFIG_IEEE802154 to CONFIG_WIRELESS_IEEE8021514 following the convention of including the location of the configuration variable as a part of its name. 2017-03-12 12:50:41 -06:00
Gregory Nutt
939ea7461b Trivial update to TODO 2017-03-12 12:37:13 -06:00
Gregory Nutt
4d33f26717 Update some comments 2017-03-12 12:33:44 -06:00
Simon Piriou
99e5d4a838 Merged in spiriou/nuttx/dev_wlan (pull request #266)
Photon: add basic support for wlan chip

Approved-by: Gregory Nutt
2017-03-12 16:22:50 +00:00
Simon Piriou
e10ce5ce51 Photon: add basic support for wlan chip 2017-03-12 16:57:59 +01:00
Gregory Nutt
d9cdb6c383 STM32; OTG host implementations of stm32_in_transfer() must obey the polling interval for the case of isochronous and itnerrupt endpoints. 2017-03-12 08:39:30 -06:00
Gregory Nutt
98a98a0c8b Minor change for consistency with a previous commit. 2017-03-12 07:20:10 -06:00
Simon Piriou
75c77a7e3b Merged nuttx/nuttx into master 2017-03-12 11:15:26 +01:00
Gregory Nutt
9b11187b2a STM32 OTG HS: A little research reveals that only the F2 RCC initialization set the OTGHSULPIEN bit and Photon is the only F2 board configuration that uses OTG . Therefore, we can simplify the conditional logic of the last PR. Negative logic was used (#ifndef BOARD_DISABLE_USBOTG_HSULPI) to prevent bad settings in other configurations. But give these facts, the preferred positive logic now makes more sense (#ifdef BOARD_ENABLE_USBOTG_HSULPI). 2017-03-11 18:00:38 -06:00
Simon Piriou
dad34d02e2 Merged nuttx/nuttx into master 2017-03-12 00:03:06 +01:00
Gregory Nutt
e0f7b9582a STM32: Review of last STM32 F2 PR. Progate changes to STM32 F4 and F7 OTGHS. Rename some configs/photon/src files. Naming can be either photon_ or stm32_ but must be consistent. 2017-03-11 16:31:11 -06:00
Simon Piriou
11876dc090 Merged in spiriou/nuttx/usb_fix (pull request #265)
stm32f20xxx: add BOARD_DISABLE_USBOTG_HSULPI flag

Approved-by: Gregory Nutt
2017-03-11 22:04:51 +00:00
David Sidrane
92b856f657 Merged in david_s5/nuttx-13/david_s5/as-discovered-by-dcabecinhas-this-fix-as-1489246417893 (pull request #264)
As discovered by dcabecinhas. This fix assume the 8 byte alignment options for size stack size or this will overwrite the first word after TOS

Approved-by: Gregory Nutt
2017-03-11 22:03:40 +00:00
Simon Piriou
ef0fe50ae6 photon: add LEDs and BUTTONS support 2017-03-11 18:26:46 +01:00
Simon Piriou
70d8f0189d stm32f20xxx: add BOARD_DISABLE_USBOTG_HSULPI flag 2017-03-11 18:15:18 +01:00