2 Questions: va_args and APIC... hope you can hel
Posted: Sat Nov 15, 2003 12:00 am
I have recently been working on my thesis project and have come to a roadblock. I need a printk to do some debug information while I create some APIC code and setup interrupts. However, my original Print function worked fine, only it would not print numbers. The new one, it will print numbers, but no where near correctly. I rewrote it using va_args, and yet it returns the number 2096840 when it should return 2... this is obviously a problem when I am going to need exact addresses to work. The basic problem: I have an itoa function which works perfectly. I am passing to it using va_args techniques.. which obviously do not work. They are defined as macros, and keep in mind this is a 64-bit environment, although that should not change things.
My second question involves the APIC, although this is not as important. I have a dual processor Opteron test system which has of course two Local APIC's. Chapter 8 of the Intel Manuals V.3 states the memory address an APIC is mapped to. My question: What if you have two Local APIC's? How can you access both?
Any help would be terriffic
Thanks,
dr_watts
My second question involves the APIC, although this is not as important. I have a dual processor Opteron test system which has of course two Local APIC's. Chapter 8 of the Intel Manuals V.3 states the memory address an APIC is mapped to. My question: What if you have two Local APIC's? How can you access both?
Any help would be terriffic
Thanks,
dr_watts