Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 20:05:33 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Slawa Olhovchenkov <slw@zxy.spb.ru>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, stable@FreeBSD.org
Subject:   Re: X2APIC support
Message-ID:  <5662c700-f139-4754-8693-7adc0f2657be@FreeBSD.org>
In-Reply-To: <20160912164412.GS34394@zxy.spb.ru>
References:  <20160901112724.GX88122@zxy.spb.ru> <20160901114500.GJ83214@kib.kiev.ua> <20160901121300.GZ88122@zxy.spb.ru> <4ba05c00-f737-f562-553d-a7fa59145768@FreeBSD.org> <20160904151415.GE83214@kib.kiev.ua> <f727b18d-6061-fbaf-6afc-1ae66f8cce16@FreeBSD.org> <20160904162926.GF83214@kib.kiev.ua> <358ed414-9da6-ac29-55fc-6d7be680c2ce@FreeBSD.org> <20160912093905.GP34394@zxy.spb.ru> <cfc61757-482a-ee21-e1a1-84d68bc39c00@FreeBSD.org> <20160912164412.GS34394@zxy.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/09/2016 19:44, Slawa Olhovchenkov wrote:
> I am not kernel developer: please point what I am need insert and file
> for edit.

In sys/amd64/amd64/mp_machdep.c (assuming you use amd64), in function
cpu_mp_start, in this place
	/* Set boot_cpu_id if needed. */
	if (boot_cpu_id == -1) {
		boot_cpu_id = PCPU_GET(apic_id);
		cpu_info[boot_cpu_id].cpu_bsp = 1;
	} else

right after boot_cpu_id = PCPU_GET(apic_id) line please insert
	printf("boot_cpu_id = %d\n", boot_cpu_id);

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5662c700-f139-4754-8693-7adc0f2657be>