From owner-cvs-all@FreeBSD.ORG Fri Sep 19 00:48:24 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F271C16A4B3; Fri, 19 Sep 2003 00:48:23 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7155243F85; Fri, 19 Sep 2003 00:48:23 -0700 (PDT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8J7mNXJ068066; Fri, 19 Sep 2003 00:48:23 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8J7mMjj068065; Fri, 19 Sep 2003 00:48:23 -0700 (PDT) (envelope-from marcel) Message-Id: <200309190748.h8J7mMjj068065@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 19 Sep 2003 00:48:22 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ia64/include cpu.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 07:48:24 -0000 marcel 2003/09/19 00:48:22 PDT FreeBSD src repository Modified files: sys/ia64/include cpu.h Log: Change TRAPF_USERMODE and CLOCKF_USERMODE to not test for CPL == 3, but for CPL != 0. For some reason yet unknown it is possible for the CPL to be 2. This would previously be counted as kernel mode, which resulted in nasty panics. By changing the test it is now treated as user mode, which is more correct. We still need to figure out how it is possible that the privilege level can be 2 (or 1 for that matter), because it's not used by us. We only use 3 (user mode) and 0 (kernel mode). Revision Changes Path 1.40 +2 -2 src/sys/ia64/include/cpu.h