mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
o3能运行
This commit is contained in:
@ -8,9 +8,10 @@
|
||||
extern spinlock_t xhci_controller_init_lock; // xhci控制器初始化锁
|
||||
|
||||
#define MAX_USB_NUM 8 // pci总线上的usb设备的最大数量
|
||||
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("O0")
|
||||
// 在pci总线上寻找到的usb设备控制器的header
|
||||
struct pci_device_structure_header_t *usb_pdevs[MAX_USB_NUM];
|
||||
static struct pci_device_structure_header_t *usb_pdevs[MAX_USB_NUM];
|
||||
static int usb_pdevs_count = 0;
|
||||
|
||||
/**
|
||||
@ -56,4 +57,5 @@ void usb_init()
|
||||
}
|
||||
}
|
||||
kinfo("Successfully initialized all usb host controllers!");
|
||||
}
|
||||
}
|
||||
#pragma GCC pop_options
|
@ -9,6 +9,7 @@
|
||||
#include <exception/irq.h>
|
||||
#include <driver/interrupt/apic/apic.h>
|
||||
|
||||
// 由于xhci寄存器读取需要对齐,因此禁用GCC优化选项
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize("O0")
|
||||
|
||||
|
Reference in New Issue
Block a user