From owner-p4-projects@FreeBSD.ORG Sat Apr 5 15:18:17 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1379C37B404; Sat, 5 Apr 2003 15:18:17 -0800 (PST) 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 9960E37B401 for ; Sat, 5 Apr 2003 15:18:16 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41CB843F3F for ; Sat, 5 Apr 2003 15:18:16 -0800 (PST) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h35NIG0U035806 for ; Sat, 5 Apr 2003 15:18:16 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h35NIF8H035803 for perforce@freebsd.org; Sat, 5 Apr 2003 15:18:15 -0800 (PST) Date: Sat, 5 Apr 2003 15:18:15 -0800 (PST) Message-Id: <200304052318.h35NIF8H035803@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 28269 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 23:18:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=28269 Change 28269 by marcel@marcel_nfs on 2003/04/05 15:17:36 Adopt the new cpu_switch() where the old and new threads are being passed in. We will probably end up with a C version for cpu_switch() that will call swapctx(), where swapctx() will take pointers to PCBs. In combination with savectx() and restorectx() this mirrors the system calls we have and limits the amount of tedious assembly that has to be written and maintained. Affected files ... .. //depot/projects/ia64_epc/sys/kern/kern_synch.c#7 edit .. //depot/projects/ia64_epc/sys/sys/proc.h#5 edit Differences ... ==== //depot/projects/ia64_epc/sys/kern/kern_synch.c#7 (text+ko) ==== @@ -516,7 +516,7 @@ thread_switchout(td); sched_switchout(td); -#if defined(__i386__) || defined(__sparc64__) +#if defined(__i386__) || defined(__sparc64__) || defined(__ia64__) newtd = choosethread(); if (td != newtd) cpu_switch(td, newtd); /* SHAZAM!! */ ==== //depot/projects/ia64_epc/sys/sys/proc.h#5 (text+ko) ==== @@ -889,7 +889,7 @@ void sleepinit(void); void stopevent(struct proc *, u_int, u_int); void cpu_idle(void); -#if defined(__i386__) || defined(__sparc64__) +#if defined(__i386__) || defined(__sparc64__) || defined(__ia64__) void cpu_switch(struct thread *old, struct thread *new); void cpu_throw(struct thread *old, struct thread *new) __dead2; #else