some questions about SMP?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
mkfree
Member
Member
Posts: 55
Joined: Thu Apr 30, 2020 6:03 am
Libera.chat IRC: mkfree

Re: some questions about SMP?

Post by mkfree »

You are right when writing to the device it is necessary to put volatile to prevent the compiler from optimizing this variable,
I really hadn't gotten to this part of the code, I stayed in the write part of the kernel page directory the
APIC memory. In bochs it does not continue from there, it only gives the error that I mentioned before and ends with the execution.
You have tested your implementation with the bochs?
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: some questions about SMP?

Post by nexos »

Yes, I have, but you can try QEMU.
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
mkfree
Member
Member
Posts: 55
Joined: Thu Apr 30, 2020 6:03 am
Libera.chat IRC: mkfree

Re: some questions about SMP?

Post by mkfree »

I already found my error, at some point add an initialization 0 of the content of the physical pages to do some tests, it is already solved,
thanks for your time
Post Reply