well, I don't see much problem doing this way. the bochs code is fairly "user friendly". Shouldn't be hard to do, especially that you already did that before.
But then maybe someone else knows better way?
How does one go about accessing the PCI config space withing bochs?
maybe it is best if you just do it the same way you did it in loader.s
I see that it provides pcibios functionality but I can't find an example where any section reads or writes from PCI config space.
I'm not even sure if it is complete thing. I was under impression it is more a "stub code", and not much more.