1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00
serenity/Kernel/Bus
Luke 14da080dcf Kernel/USB: Use allocate_kernel_region in Transfer buffer allocations
Previously it would create a contiguous AVMO manually and pass it to
MM. This uses supervisor pages that quickly run out as they never get
returned and crash the system.

Instead, use allocate_kernel_region as we're only allocating a page so
it will be contiguous and will be returned when destroyed.

A potentially better solution would be to use a pool of transfers to
avoid all the allocations. This just prevents the system from crashing
within ~5 seconds from the continuous hub polling.
2021-08-14 21:22:44 +02:00
..
PCI Kernel/PCI: Assign a PCI address in the SysFS PCI device directories 2021-08-14 17:47:42 +02:00
USB Kernel/USB: Use allocate_kernel_region in Transfer buffer allocations 2021-08-14 21:22:44 +02:00
VirtIO Kernel: Move VirtIO code into the Bus source folder 2021-08-13 08:06:47 +02:00