Remove the unnecessary cast for main_t, NULL and argv

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-10-16 01:48:35 +08:00
committed by Alin Jerpelea
parent 7923ea3bef
commit 6b31918b42
113 changed files with 149 additions and 159 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ extern up_vector_t _svectors[];
static up_vector_t g_vectorinittab[] =
{
(up_vector_t)NULL,
NULL,
arm_vectorundefinsn,
arm_vectorsvc,
arm_vectorprefetch,
+1 -1
View File
@@ -606,7 +606,7 @@ static int lpc54_eth_transmit(struct lpc54_ethdriver_s *priv,
/* Prepare the Tx descriptor for transmission */
txdesc->buffer1 = (uint32_t)buffer;
txdesc->buffer2 = (uint32_t)NULL;
txdesc->buffer2 = 0;
/* One buffer, no timestamp, interrupt on completion */
@@ -283,7 +283,7 @@ DMA_HANDLE max326_dma_channel(void)
}
spin_unlock_irqrestore(NULL, flags);
return (DMA_HANDLE)NULL;
return NULL;
}
/****************************************************************************
+2 -4
View File
@@ -684,10 +684,8 @@ static int ameba_attach(struct uart_dev_s *dev)
static void ameba_detach(struct uart_dev_s *dev)
{
struct ameba_s *priv = (struct ameba_s *)dev->priv;
hal_uart_stubs.hal_uart_txtd_hook(&priv->adapter,
NULL, (uintptr_t)NULL, 0);
hal_uart_stubs.hal_uart_rxind_hook(&priv->adapter,
NULL, (uintptr_t)NULL, 0);
hal_uart_stubs.hal_uart_txtd_hook(&priv->adapter, NULL, 0, 0);
hal_uart_stubs.hal_uart_rxind_hook(&priv->adapter, NULL, 0, 0);
}
/****************************************************************************
+1 -1
View File
@@ -1964,7 +1964,7 @@ DMA_HANDLE sam_dmachannel(uint8_t dmacno, uint32_t chflags)
{
dmaerr("ERROR: Bad DMAC number: %d\n", dmacno);
DEBUGPANIC();
return (DMA_HANDLE)NULL;
return NULL;
}
/* Search for an available DMA channel with at least the requested FIFO
+1 -1
View File
@@ -2095,7 +2095,7 @@ DMA_HANDLE sam_dmachannel(uint8_t dmacno, uint32_t chflags)
{
dmaerr("ERROR: Bad XDMAC number: %d\n", dmacno);
DEBUGPANIC();
return (DMA_HANDLE)NULL;
return NULL;
}
/* Search for an available DMA channel with at least the requested FIFO
+5 -5
View File
@@ -1909,7 +1909,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
#endif
default:
return (TIMER_HANDLE)NULL;
return NULL;
}
/* Initialize the state structure */
@@ -1989,7 +1989,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
#else
tmrinfo("tiva_gptm_configure:");
tmrinfo(" Error: alternate clock only available on TM4C129 devices\n");
return (TIMER_HANDLE)NULL;
return NULL;
#endif /* CONFIG_ARCH_CHIP_TM4C129 */
}
else
@@ -2019,7 +2019,7 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
ret = tiva_timer32_configure(priv, &config32->config);
}
#else
return (TIMER_HANDLE)NULL;
return NULL;
#endif
}
else
@@ -2061,13 +2061,13 @@ TIMER_HANDLE tiva_gptm_configure(const struct tiva_gptmconfig_s *config)
TIMER16B);
}
#else
return (TIMER_HANDLE)NULL;
return NULL;
#endif
}
/* Return the timer handler if successfully configured */
return ret < 0 ? (TIMER_HANDLE)NULL : (TIMER_HANDLE)priv;
return ret < 0 ? NULL : (TIMER_HANDLE)priv;
}
/****************************************************************************
+2 -2
View File
@@ -1886,8 +1886,8 @@ static void rx65n_interrupt_work(FAR void *arg)
if (phylinknotification.phandler != NULL)
{
phylinknotification.phandler(irqno, (FAR void *)NULL,
(FAR void *)phylinknotification.pclient);
phylinknotification.phandler(irqno, NULL,
phylinknotification.pclient);
priv->prevlinkstatus = regval;
}
}
+6 -6
View File
@@ -457,9 +457,9 @@ dtc_static_transfer_data_cfg_t tx_cfg =
.response_interrupt = DTC_INTERRUPT_AFTER_ALL_COMPLETE,
.repeat_block_side = DTC_REPEAT_BLOCK_DESTINATION,
.dest_addr_mode = DTC_DES_ADDR_FIXED,
.source_addr = (uint32_t)NULL, /* This will set dynamically */
.dest_addr = (uint32_t)NULL, /* Set data register address */
.transfer_count = 0, /* This will set dynamically */
.source_addr = 0, /* This will set dynamically */
.dest_addr = 0, /* Set data register address */
.transfer_count = 0, /* This will set dynamically */
#if CONFIG_RX65N_RSPI_BUF_SIZE > 1
.block_size = CONFIG_RX65N_RSPI_BUF_SIZE, /* Looks like tx fifo size */
#else
@@ -486,9 +486,9 @@ dtc_static_transfer_data_cfg_t rx_cfg =
.response_interrupt = DTC_INTERRUPT_AFTER_ALL_COMPLETE,
.repeat_block_side = DTC_REPEAT_BLOCK_SOURCE,
.dest_addr_mode = DTC_DES_ADDR_INCR,
.source_addr = (uint32_t)NULL, /* Set data register address */
.dest_addr = (uint32_t)NULL, /* This will set dynamically */
.transfer_count = 0, /* This will set dynamically */
.source_addr = 0, /* Set data register address */
.dest_addr = 0, /* This will set dynamically */
.transfer_count = 0, /* This will set dynamically */
#if CONFIG_RX65N_RSPI_BUF_SIZE > 1
.block_size = CONFIG_RX65N_RSPI_BUF_SIZE, /* Looks like tx fifo size */
#else
+1 -1
View File
@@ -136,7 +136,7 @@ static void slab_init(uintptr_t start)
static uintptr_t slab_alloc(void)
{
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
return slab ? (uintptr_t)slab->memory : 0;
}
/****************************************************************************
+1 -1
View File
@@ -293,7 +293,7 @@ static void slab_init(uintptr_t start)
static uintptr_t slab_alloc(void)
{
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
return slab ? (uintptr_t)slab->memory : 0;
}
/****************************************************************************
+1 -1
View File
@@ -131,7 +131,7 @@ static void slab_init(uintptr_t start)
static uintptr_t slab_alloc(void)
{
pgalloc_slab_t *slab = (pgalloc_slab_t *)sq_remfirst(&g_free_slabs);
return slab ? (uintptr_t)slab->memory : (uintptr_t)NULL;
return slab ? (uintptr_t)slab->memory : 0;
}
/****************************************************************************
+3 -3
View File
@@ -233,14 +233,14 @@ int esp_himem_init(void)
/* Looks weird; last arg is empty so it expands to 'return ;' */
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", (int) NULL);
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", 0);
HIMEM_CHECK(g_range_descriptor != NULL, "already initialized", (int) NULL);
HIMEM_CHECK(g_range_descriptor != NULL, "already initialized", 0);
/* need to have some reserved banks */
HIMEM_CHECK(SPIRAM_BANKSWITCH_RESERVE == 0, "No banks reserved for \
himem", (int) NULL);
himem", 0);
/* Start and end of physical reserved memory. Note it starts slightly under
* the 4MiB mark as the reserved banks can't have an unity mapping to be
@@ -621,7 +621,7 @@ void get_pwon_out_param(as_aca_pulco_out_param_t *param)
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void)
{
if (fw_as_acacontrol(AS_ACA_CHECK_ID, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_CHECK_ID, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_CHKID;
}
@@ -647,7 +647,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void)
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void)
{
if (fw_as_acacontrol(AS_ACA_POWER_OFF_COMMON, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_POWER_OFF_COMMON, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_PWOFF;
}
@@ -657,7 +657,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void)
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void)
{
if (fw_as_acacontrol(AS_ACA_POWER_ON_MICBIAS, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_POWER_ON_MICBIAS, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_PWON_MBIAS;
}
@@ -712,7 +712,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_output(void)
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void)
{
if (fw_as_acacontrol(AS_ACA_POWER_OFF_INPUT, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_POWER_OFF_INPUT, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_PWOFF_INPUT;
}
@@ -722,7 +722,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void)
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_output(void)
{
if (fw_as_acacontrol(AS_ACA_POWER_OFF_OUTPUT, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_POWER_OFF_OUTPUT, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_PWOFF_OUTPUT;
}
@@ -769,7 +769,7 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
CXD56_AUDIO_ECODE cxd56_audio_aca_notify_micbootdone(void)
{
if (fw_as_acacontrol(AS_ACA_SET_AMIC_BOOT_DONE, (uint32_t)NULL) != 0)
if (fw_as_acacontrol(AS_ACA_SET_AMIC_BOOT_DONE, 0) != 0)
{
return CXD56_AUDIO_ECODE_ANA_NOTIFY_MICBOOT;
}
@@ -206,7 +206,7 @@ int imxrt_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -204,7 +204,7 @@ int imxrt_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -204,7 +204,7 @@ int imxrt_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -480,7 +480,7 @@ int k28_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -303,7 +303,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -339,7 +339,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -338,7 +338,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -336,7 +336,7 @@ static int nsh_usbhostinitialize(void)
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return pid < 0 ? -ENOEXEC : OK;
}
@@ -295,7 +295,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_MCB1700_USBHOST_PRIO,
CONFIG_MCB1700_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -314,7 +314,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_LPC1766STK_USBHOST_PRIO,
CONFIG_LPC1766STK_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -338,7 +338,7 @@ static int nsh_usbhostinitialize(void)
ret = kthread_create("usbhost", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)nsh_waiter, (char * const *)NULL);
nsh_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -219,7 +219,7 @@ int lpc31_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO,
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -219,7 +219,7 @@ int lpc31_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_USBHOST_DEFPRIO, i
CONFIG_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -188,7 +188,7 @@ int sam_watchdog_initialize(void)
int taskid = kthread_create(CONFIG_WDT_THREAD_NAME,
CONFIG_WDT_THREAD_PRIORITY,
CONFIG_WDT_THREAD_STACKSIZE,
(main_t)wdog_daemon, (char * const *)NULL);
wdog_daemon, NULL);
DEBUGASSERT(taskid > 0);
UNUSED(taskid);
+2 -2
View File
@@ -293,7 +293,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("OHCI Monitor",
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_PRIO,
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (char * const *)NULL);
ohci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
@@ -316,7 +316,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor",
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_PRIO,
CONFIG_SAMA5D27_GIANT_BOARD_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
+2 -2
View File
@@ -340,7 +340,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D2XULT_USBHOST_PRIO,
CONFIG_SAMA5D2XULT_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (char * const *)NULL);
ohci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
@@ -362,7 +362,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D2XULT_USBHOST_PRIO,
CONFIG_SAMA5D2XULT_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -348,7 +348,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D3XPLAINED_USBHOST_PRIO,
CONFIG_SAMA5D3XPLAINED_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (char * const *)NULL);
ohci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
@@ -370,7 +370,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D3XPLAINED_USBHOST_PRIO,
CONFIG_SAMA5D3XPLAINED_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
+2 -2
View File
@@ -347,7 +347,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("OHCI Monitor",
CONFIG_SAMA5D3XEK_USBHOST_PRIO,
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (char * const *)NULL);
ohci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
@@ -369,7 +369,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D3XEK_USBHOST_PRIO,
CONFIG_SAMA5D3XEK_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
+2 -2
View File
@@ -346,7 +346,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("OHCI Monitor", CONFIG_SAMA5D4EK_USBHOST_PRIO,
CONFIG_SAMA5D4EK_USBHOST_STACKSIZE,
(main_t)ohci_waiter, (char * const *)NULL);
ohci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ohci_waiter task: %d\n", ret);
@@ -368,7 +368,7 @@ int sam_usbhost_initialize(void)
ret = kthread_create("EHCI Monitor", CONFIG_SAMA5D4EK_USBHOST_PRIO,
CONFIG_SAMA5D4EK_USBHOST_STACKSIZE,
(main_t)ehci_waiter, (char * const *)NULL);
ehci_waiter, NULL);
if (ret < 0)
{
uerr("ERROR: Failed to create ehci_waiter task: %d\n", ret);
@@ -220,7 +220,7 @@ int samd_usbhost_initialize(void)
uinfo("Start usbhost_waiter\n");
ret = kthread_create("usbhost", CONFIG_METRO_M4_USBHOST_PRIO,
CONFIG_METRO_M4_USBHOST_STACKSIZE,
(main_t)usbhost_waiter, (char *const *)NULL);
usbhost_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
@@ -64,7 +64,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,
+1 -1
View File
@@ -252,7 +252,7 @@ int stm32_usbhost_initialize(void)
uinfo("Start usbhost_waiter\n");
ret = kthread_create("usbhost", CONFIG_AXOLOTI_USBHOST_PRIO,
CONFIG_AXOLOTI_USBHOST_STACKSIZE,
(main_t)usbhost_waiter, (char *const *)NULL);
usbhost_waiter, NULL);
return ret < 0 ? -ENOEXEC : OK;
}
@@ -65,7 +65,7 @@ const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
.us_entrypoint = (main_t)CONFIG_INIT_ENTRYPOINT,
.us_entrypoint = CONFIG_INIT_ENTRYPOINT,
.us_textstart = (uintptr_t)_stext,
.us_textend = (uintptr_t)_etext,
.us_datasource = (uintptr_t)_eronly,

Some files were not shown because too many files have changed in this diff Show More