bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enable SMP support


From: Almudena Garcia
Subject: Re: Enable SMP support
Date: Wed, 4 Jul 2018 21:36:11 +0200

I've just fixed a little error in my code.

I attach the fixed file

2018-07-04 21:14 GMT+02:00 Almudena Garcia <liberamenso10000@gmail.com>:
Hi, other time:

I'm trying to develop intel_startCPU function, using the function of this file as base code
https://github.com/nneonneo/osx-10.9-opensource/blob/master/xnu-2422.1.72/osfmk/i386/mp.c

I've got to replace the ml_set_interrupts_enabled() calls, and now I need to replace this call: cpu_desc_init64(cpu_datap(slot_num));

Reading the comments, this function do this:

Initialize (or re-initialize) the descriptor tables for this cpu.
     * Propagate processor mode to slave.



But I won't be clear what is the Mach equivalent to this function.

I attach the current code

Can you help me?


2018-07-03 18:35 GMT+02:00 Luca Dariz <luca.dariz@gmail.com>:
Il 03/07/2018 18:15, Almudena Garcia ha scritto:
> Using grep, I've found /local_bh_count/ and /local_irq_count. ffs /is
> defined correctly.
>
> But I don't find the /intel_startCPU/ definition. In
> /i386/i386/mp_desc.c /there are many calls to this, but It doesn't
> appear to be in any file.
>
> Do you know about this?

No. Note that the whole file results empty if NCPU == 1.. maybe it got
lost when SMP was disabled, you could try to look for some old Mach
version which supported SMP, or implement your own.
For example you can look at the XNU kernel and see how it is implemented
there.

Luca


Attachment: intel_startCPU.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]