添加lwip

This commit is contained in:
zhangzheng
2024-01-07 23:32:30 +08:00
parent 99ee275407
commit 0d98415b78
762 changed files with 229719 additions and 31 deletions

View File

@@ -1,12 +1,12 @@
/**
* @file irq.c
* @author ATShining (1358745329@qq.com)
* @brief
* @brief
* @version 0.1
* @date 2023-09-29
*
*
* @copyright Copyright (c) 2023
*
*
*/
#include <arch.h>
#include <types.h>
@@ -85,6 +85,7 @@ void entry_handler(void)
isr_no -= CONFIG_USER_ISR_START_NO; //!< 系统用的irq偏移
assert(isr_no < CONFIG_IRQ_REG_TAB_SIZE);
// printk("%d.\n", isr_no);
if (!irq_check_usability(isr_no))
{

View File

@@ -37,6 +37,10 @@ enum irq_sender_op
*/
static void irq_tigger(irq_entry_t *irq)
{
if (irq->irq == NULL)
{
return;
}
arch_disable_irq(irq->irq->irq_id); //!< 触发中断时关闭中断
irq->irq->irq_cn++; //!< 中断计数+1

View File

@@ -339,7 +339,7 @@ task_t *task_create(ram_limit_t *lim, int is_knl)
return NULL;
}
task_init(tk, lim, is_knl);
printk("create task is 0x%x\n", tk);
// printk("create task is 0x%x\n", tk);
return tk;
}

View File

@@ -36,7 +36,7 @@ static void knl_main(void)
{
umword_t status;
umword_t status2;
printk("knl main run..\n");
// printk("knl main run..\n");
while (1)
{
task_t *pos;