I have a question on secondary cpu exploitation. At the end of secondary_start(), I'm not issuing 'stop_this_cpu' to apic_id 1. So this second core is still up and running. Just before jumping to elfboot, I want to run a small code, say, 'while(1){send a char to com1 port}' on this second core and let the BSP load and run linux. the secondary eip is still valid. I'll not show this core in mptable(thanks 2 Dr.YH). Any help is greatly appreciated. Thanks - Baski
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Thu, Nov 01, 2007 at 11:05:27PM -0700, Baski wrote:
I want to run a small code, say, 'while(1){send a char to com1 port}' on this second core and let the BSP load and run linux.
the secondary eip is still valid.
I suppose if you exclude a memory area that the second core runs in it could work. Make sure Linux does not trample over your code.
//Peter