>> This linked list implementation is partially based on kernel code. So it >> should be quite stable > How about just copying the file? > > I've used the linux kernel list implementation elsewhere too and it > worked just fine with only minor tweaks (remove some likely()/unlikely() > macros IIRC). Right, in "take-2" Kevin has suggested very similar. It will be done as a separate patch, because the changes are not just about pciinit.c, they also simplify pmm.c and stack.c a bit. In this patch I'm submitting only few necessary functions for list operations.
- [Qemu-devel] [PATCH 0/4] Redesign of pciinit.c (take 3) Alexey Korolev
- [Qemu-devel] [PATCH 1/4] Add basic linked list operati... Alexey Korolev
- Re: [Qemu-devel] [SeaBIOS] [PATCH 1/4] Add basic l... Gerd Hoffmann
- Re: [Qemu-devel] [SeaBIOS] [PATCH 1/4] Add bas... Alexey Korolev
- Re: [Qemu-devel] [SeaBIOS] [PATCH 1/4] Add bas... Kevin O'Connor
- Re: [Qemu-devel] [SeaBIOS] [PATCH 1/4] Add... Ian Campbell
- [Qemu-devel] [PATCH 2/4] Added a pci_region_entry stru... Alexey Korolev
- [Qemu-devel] [PATCH 3/4] Switch from array based resou... Alexey Korolev
- Re: [Qemu-devel] [PATCH 3/4] Switch from array bas... Kevin O'Connor
- Re: [Qemu-devel] [PATCH 3/4] Switch from array... Kevin O'Connor
- Re: [Qemu-devel] [PATCH 3/4] Switch from a... Alexey Korolev
- Re: [Qemu-devel] [PATCH 3/4] Switch f... Kevin O'Connor
- Re: [Qemu-devel] [PATCH 3/4] Swit... Alexey Korolev
- Re: [Qemu-devel] [PATCH 3/4] ... Kevin O'Connor