mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-10 08:06:48 +00:00
修改一些小问题
This commit is contained in:
parent
afb80d4d6e
commit
6f5d73771f
@ -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); \
|
||||
})
|
||||
})
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user