From owner-p4-projects@FreeBSD.ORG Thu Jun 23 06:49:01 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id EC2DA16A420; Thu, 23 Jun 2005 06:49:00 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C568D16A41C for ; Thu, 23 Jun 2005 06:49:00 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E1B43D49 for ; Thu, 23 Jun 2005 06:49:00 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5N6n0nq012481 for ; Thu, 23 Jun 2005 06:49:00 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5N6n02h012478 for perforce@freebsd.org; Thu, 23 Jun 2005 06:49:00 GMT (envelope-from peter@freebsd.org) Date: Thu, 23 Jun 2005 06:49:00 GMT Message-Id: <200506230649.j5N6n02h012478@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 78848 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2005 06:49:01 -0000 http://perforce.freebsd.org/chv.cgi?CH=78848 Change 78848 by peter@peter_daintree on 2005/06/23 06:48:04 Cosmetic and doc bugs Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/intr_machdep.c#37 edit .. //depot/projects/hammer/sys/amd64/amd64/local_apic.c#52 edit .. //depot/projects/hammer/sys/amd64/amd64/machdep.c#128 edit .. //depot/projects/hammer/sys/amd64/amd64/support.S#29 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/intr_machdep.c#37 (text+ko) ==== @@ -30,7 +30,7 @@ */ /* - * Machine dependent interrupt code for i386. For the i386, we have to + * Machine dependent interrupt code for amd64. For amd64, we have to * deal with different PICs. Thus, we use the passed in vector to lookup * an interrupt source associated with that vector. The interrupt source * describes which PIC the source belongs to and includes methods to handle ==== //depot/projects/hammer/sys/amd64/amd64/local_apic.c#52 (text+ko) ==== @@ -839,7 +839,7 @@ #ifdef SMP /* * Inter Processor Interrupt functions. The lapic_ipi_*() functions are - * private to the sys/i386 code. The public interface for the rest of the + * private to the sys/amd64 code. The public interface for the rest of the * kernel is defined in mp_machdep.c. */ int ==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#128 (text+ko) ==== @@ -661,7 +661,7 @@ CTLFLAG_RW, &wall_cmos_clock, 0, ""); /* - * Initialize 386 and configure to run kernel + * Initialize amd64 and configure to run kernel */ /* ==== //depot/projects/hammer/sys/amd64/amd64/support.S#29 (text+ko) ==== @@ -202,13 +202,7 @@ /*****************************************************************************/ /* * Access user memory from inside the kernel. These routines and possibly - * the math- and DOS emulators should be the only places that do this. - * - * We have to access the memory with user's permissions, so use a segment - * selector with RPL 3. For writes to user space we have to additionally - * check the PTE for write permission, because the 386 does not check - * write permissions when we are executing with EPL 0. The 486 does check - * this if the WP bit is set in CR0, so we can use a simpler version here. + * should be the only places that do this. * * These routines set curpcb->onfault for the time they execute. When a * protection violation occurs inside the functions, the trap handler @@ -592,7 +586,7 @@ ret /* - * Handling of special 386 registers and descriptor tables etc + * Handling of special amd64 registers and descriptor tables etc * %rdi */ /* void lgdt(struct region_descriptor *rdp); */