Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 May 2000 21:15:29 +0200
From:      sthaug@nethelp.no
To:        joy@niksun.com
Cc:        freebsd-hackers@freeBSD.org
Subject:   Re: SMP and APIC???
Message-ID:  <58375.959022929@verdi.nethelp.no>
In-Reply-To: Your message of "Mon, 22 May 2000 14:56:02 -0400"
References:  <392982C1.674000DD@falcon.niksun.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> i have compiled freeBSD 3.4 SMP. but when i try to boot it the kernel
> shows "Testing APIC 8254" and then it hangs. earlier i had run mptable
> and it showed:I/O APICs:
> ----------------------
> {Lots of stuff}....
> 
>  APIC ID Version State           Address
>                  2       0x20    usable          0xfec00000
>                  3       0x20    usable          0xfd8df000

You seem to have two IO APICs. You need 

options                NAPIC=2                 # number of IO APICs

in the kernel config, *and* the following patch to sys/i386/i386/pmap.c
(this patch is in 3.4-STABLE, but not in 3.4-RELEASE).

Steinar Haug, Nethelp consulting, sthaug@nethelp.no
----------------------------------------------------------------------
*** pmap.c.orig	Sat Apr  1 23:58:17 2000
--- pmap.c	Tue Apr 25 23:59:29 2000
***************
*** 434,441 ****
  		for (j = 0; j < 16; j++) {
  			/* same page frame as a previous IO apic? */
  			if (((vm_offset_t)SMP_prvpt[j + 16] & PG_FRAME) ==
! 			    (io_apic_address[0] & PG_FRAME)) {
! 				ioapic[i] = (ioapic_t *)&SMP_ioapic[j * PAGE_SIZE];
  				break;
  			}
  			/* use this slot if available */
--- 434,442 ----
  		for (j = 0; j < 16; j++) {
  			/* same page frame as a previous IO apic? */
  			if (((vm_offset_t)SMP_prvpt[j + 16] & PG_FRAME) ==
! 			    (io_apic_address[i] & PG_FRAME)) {
! 				ioapic[i] = (ioapic_t *)&SMP_ioapic[j * PAGE_SIZE
! 					  + (io_apic_address[i] & PAGE_MASK)];
  				break;
  			}
  			/* use this slot if available */


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58375.959022929>