From owner-freebsd-smp Mon May 6 13:13:36 1996 Return-Path: owner-smp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05202 for smp-outgoing; Mon, 6 May 1996 13:13:36 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05193 for smp; Mon, 6 May 1996 13:13:34 -0700 (PDT) Date: Mon, 6 May 1996 13:13:34 -0700 (PDT) From: Peter Wemm Message-Id: <199605062013.NAA05193@freefall.freebsd.org> To: smp Subject: CVS update: sys/i386/include Sender: owner-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Date: Monday May 6, 1996 @ 13:13 Author: peter Update of /home/smp/sys/i386/include In directory freefall.freebsd.org:/tmp/cvs-serv4705/i386/include Modified Files: mpasm.h smp.h Added Files: apic.h Log Message: Round #1 of some cleanups I've been tinkering with for a while but never got around to finishing. Also made it compile and link again after the recent -current update. I'd bet money that this does not yet boot, I've not even tested it yet, this is just a checkpoint in case I fall asleep and Poul-Henning wants to have a go.. :-) Notable changes: - locore.s is now very close to -current, with only minor #ifdef SMP parts. - the APIC is no longer mapped Virtual == Physical, because this required tweaking of the PTD's and other nightmares. It now is dereferenced via a pointer (unsigned int *apic_base;) - the APIC register defines redone to cope with this. Now are offsets instead of absolute addresses. This means that the boot code needs to manually compensate when it's making a physical reference before paging is set up. It also means that _get_mplock cannot be used before paging is enabled. - pmap.c sets up the apic mapping in rather than locore. A lot of the other apic initialisation could be done in C too rather than mpcore.s/locore.s I resisted the temptation to hack out the serial_putc() stuff, as I've a feeling I'm going to need it... :-( I'll say it again: THIS HAS NOT EVEN BEEN TESTED! IT PROBABLY DOES NOT YET WORK.. :-) =================================================================== File: no file apic.h Status: Needs Checkout Working revision: 1.1 Mon May 6 20:13:28 1996 Repository revision: 1.1 /home/smp/sys/i386/include/apic.h,v Existing Tags: No Tags Exist =================================================================== File: mpasm.h Status: Up-to-date Working revision: 1.11 Mon May 6 20:13:15 1996 Repository revision: 1.11 /home/smp/sys/i386/include/mpasm.h,v Existing Tags: No Tags Exist =================================================================== File: no file smp.h Status: Needs Checkout Working revision: 1.3 Mon May 6 20:13:31 1996 Repository revision: 1.3 /home/smp/sys/i386/include/smp.h,v Existing Tags: No Tags Exist