From owner-p4-projects@FreeBSD.ORG Sat Jun 19 04:46:31 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A85F716A4D0; Sat, 19 Jun 2004 04:46:30 +0000 (GMT) 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 8249F16A4CE for ; Sat, 19 Jun 2004 04:46:30 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ACA243D1F for ; Sat, 19 Jun 2004 04:46:30 +0000 (GMT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5J4kAiN058413 for ; Sat, 19 Jun 2004 04:46:10 GMT (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5J4kAPb058410 for perforce@freebsd.org; Sat, 19 Jun 2004 04:46:10 GMT (envelope-from marcel@freebsd.org) Date: Sat, 19 Jun 2004 04:46:10 GMT Message-Id: <200406190446.i5J4kAPb058410@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 55290 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, 19 Jun 2004 04:46:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=55290 Change 55290 by marcel@marcel_nfs on 2004/06/19 04:45:23 Use lwpid_t consistently. Affected files ... .. //depot/projects/gdb/sys/kern/kern_shutdown.c#9 edit .. //depot/projects/gdb/sys/kern/kern_thread.c#15 edit Differences ... ==== //depot/projects/gdb/sys/kern/kern_shutdown.c#9 (text+ko) ==== @@ -126,7 +126,7 @@ /* Context information for dump-debuggers. */ static struct pcb dumppcb; /* Registers. */ -static int dumptid; /* Thread ID. */ +static lwpid_t dumptid; /* Thread ID. */ static void boot(int) __dead2; static void poweroff_wait(void *, int); ==== //depot/projects/gdb/sys/kern/kern_thread.c#15 (text+ko) ==== @@ -129,7 +129,7 @@ struct tid_bitmap_part { STAILQ_ENTRY(tid_bitmap_part) bmp_next; tid_bitmap_word bmp_bitmap[TID_BITMAP_SIZE]; - int bmp_base; + lwpid_t bmp_base; int bmp_free; }; @@ -176,7 +176,8 @@ { struct thread *td; struct tid_bitmap_part *bmp; - int bit, idx, tid; + lwpid_t tid; + int bit, idx; td = (struct thread *)mem; @@ -537,11 +538,12 @@ /* * Assign a thread ID. */ -int +lwpid_t thread_new_tid(void) { struct tid_bitmap_part *bmp, *new; - int bit, idx, tid; + lwpid_t tid; + int bit, idx; mtx_lock(&tid_lock); STAILQ_FOREACH(bmp, &tid_bitmap, bmp_next) {