git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6906 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2014-05-03 07:24:35 +00:00
parent fbe16d0988
commit a9472ba1a1
1 changed files with 6 additions and 6 deletions

View File

@ -740,10 +740,10 @@ void usb_lld_init(void) {
{
void *wsp = USBD1.wa_pump;
_thread_memfill((uint8_t *)wsp,
(uint8_t *)wsp + sizeof(Thread),
(uint8_t *)wsp + sizeof(thread_t),
CH_DBG_THREAD_FILL_VALUE);
_thread_memfill((uint8_t *)wsp + sizeof(Thread),
(uint8_t *)wsp + sizeof(USBD1.wa_pump) - sizeof(Thread),
_thread_memfill((uint8_t *)wsp + sizeof(thread_t),
(uint8_t *)wsp + sizeof(USBD1.wa_pump) - sizeof(thread_t),
CH_DBG_STACK_FILL_VALUE);
}
#endif /* CH_DBG_FILL_THREADS */
@ -764,10 +764,10 @@ void usb_lld_init(void) {
{
void *wsp = USBD2.wa_pump;
_thread_memfill((uint8_t *)wsp,
(uint8_t *)wsp + sizeof(Thread),
(uint8_t *)wsp + sizeof(thread_t),
CH_DBG_THREAD_FILL_VALUE);
_thread_memfill((uint8_t *)wsp + sizeof(Thread),
(uint8_t *)wsp + sizeof(USBD2.wa_pump) - sizeof(Thread),
_thread_memfill((uint8_t *)wsp + sizeof(thread_t),
(uint8_t *)wsp + sizeof(USBD2.wa_pump) - sizeof(thread_t),
CH_DBG_STACK_FILL_VALUE);
}
#endif /* CH_DBG_FILL_THREADS */