[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] SMP initialization: detection and enumeration
From: |
Samuel Thibault |
Subject: |
Re: [PATCH] SMP initialization: detection and enumeration |
Date: |
Thu, 30 Jul 2020 23:35:11 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Almudena Garcia, le jeu. 30 juil. 2020 23:30:55 +0200, a ecrit:
> > As Richard said, we just want to have different GDTs on the different
> > processors, so that we wan use the fs segment register to implement TLS
> > in the kernel and have per-cpu data cost essentially the same as global
> > data.
>
> Yes, but how can I store the relation APIC ID - Kernel ID in the GDT?
You don't. Read about GDT and segments register, and segmentation in
general. In the GDT you'd only store a pointer to the per-cpu data, and
processors will load it.
> Is there any way to avoid using an array for that?
Yes, you'd just store the ID in the per-cpu data.
Samuel
- Re: [PATCH] SMP initialization: detection and enumeration, (continued)
- Re: [PATCH] SMP initialization: detection and enumeration, Richard Braun, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Jessica Clarke, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Richard Braun, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Almudena Garcia, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Jessica Clarke, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Samuel Thibault, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Samuel Thibault, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Almudena Garcia, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration,
Samuel Thibault <=
- Re: [PATCH] SMP initialization: detection and enumeration, Almudena Garcia, 2020/07/30
- Re: [PATCH] SMP initialization: detection and enumeration, Almudena Garcia, 2020/07/30