Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Ok. I fixed my undefined behavior in cpu_number(). But It show many errors http://dpaste.com/2ACQ7VZ 2018-06-17 1:44 GMT+02:00 Almudena Garcia : > Well, I checked your code, and I fixed another typo in the same file and > line. > I removed the latest ) in > > : "0" (new_val), "m" (*(lock)) : "mem

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Well, I checked your code, and I fixed another typo in the same file and line. I removed the latest ) in : "0" (new_val), "m" (*(lock)) : "memory") \ http://dpaste.com/1QW4EVF Now this compiles. But It shows a warning (undefined behavior) in my cpu_number() code, and shows another error in kern

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
ok. I'll try to update my sources. But now I have another problem: The "apt-get source gnumach" feels don't update the sources. How can I download this? I tried with git clone http://git.savannah.gnu.org/cgit/hurd/gnumach.git/ But git don't find the repo 2018-06-17 1:03 GMT+02:00 Samuel Thi

Re: Enable SMP support

2018-06-16 Thread Samuel Thibault
Almudena Garcia, le sam. 16 juin 2018 17:34:13 +0200, a ecrit: > The compilation continues failing, anymore > > [2]http://dpaste.com/26VWZ6G I have now fixed the dumb typo there. Samuel

Re: Enable SMP support

2018-06-16 Thread Richard Braun
On Sat, Jun 16, 2018 at 01:17:57PM +0200, Almudena Garcia wrote: > Finally, we got to write a test function to get the apic_id, and It feels > to run correctly. > Now, we're trying to implement another function, to transform the apic_id > in the kernel cpuid. > > I attach the current test function

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
We have finished the first prototype of kern/cpu_number.h http://dpaste.com/2QJB8VR We have to improve many details, about initialization of structures and implementation of the function (may be better creates a cpu_number.c file, instead implement the function in the header), but now the compila

Re: Enable SMP support

2018-06-16 Thread Almudena Garcia
Finally, we got to write a test function to get the apic_id, and It feels to run correctly. Now, we're trying to implement another function, to transform the apic_id in the kernel cpuid. I attach the current test function to get apic_id with its test file 2018-06-15 19:36 GMT+02:00 Almudena Garci