修改一些小问题

This commit is contained in:
fslongjin 2022-07-17 23:06:57 +08:00
parent afb80d4d6e
commit 6f5d73771f
3 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,11 @@
/**
* @brief condition为true时输出警告信息
*
*
*/
#define WARN_ON(condition) ({ \
int __ret_warn_on = !!(condition); \
if (unlikely(__ret_warn_on)) \
kwarn("Assertion failed at %s:%d", __FILE__, __LINE__); \
unlikely(__ret_warn_on); \
})
})

View File

@ -10,8 +10,8 @@ struct block_device_request_queue ahci_req_queue;
uint32_t count_ahci_devices = 0;
uint64_t ahci_port_base_vaddr; // 端口映射base addr
uint64_t ahci_port_base_phys_addr; // 端口映射的物理基地址ahci控制器的参数的地址都是物理地址
static uint64_t ahci_port_base_vaddr; // 端口映射base addr
static uint64_t ahci_port_base_phys_addr; // 端口映射的物理基地址ahci控制器的参数的地址都是物理地址
static void start_cmd(HBA_PORT *port);
static void stop_cmd(HBA_PORT *port);

View File

@ -156,7 +156,7 @@ void smp_ap_start()
spin_unlock(&multi_core_starting_lock);
preempt_disable();// 由于ap处理器的pcb与bsp的不同因此ap处理器放锁时需要手动恢复preempt count
sti();
kdebug("1212221212");
while (1)
hlt();