From owner-p4-projects Thu Dec 12 10:52:14 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E21ED37B404; Thu, 12 Dec 2002 10:52:11 -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 7B68237B401 for ; Thu, 12 Dec 2002 10:52:11 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3240F43EC5 for ; Thu, 12 Dec 2002 10:52:11 -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 gBCIlEmV059412 for ; Thu, 12 Dec 2002 10:47:14 -0800 (PST) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gBCIlDhI059409 for perforce@freebsd.org; Thu, 12 Dec 2002 10:47:13 -0800 (PST) Date: Thu, 12 Dec 2002 10:47:13 -0800 (PST) Message-Id: <200212121847.gBCIlDhI059409@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar Subject: PERFORCE change 22215 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=22215 Change 22215 by marcel@marcel_nfs on 2002/12/12 10:47:10 Fill in rclk and baud in the sio_consdata structure. We have this readily available in the HCDP table. Note that our rclk is 16*pclock. The HCDP documentation states that the pseudo clock is 115200 by default. While here, fix braino: You cannot expect to reconstruct a single 64-bit out of 2 32-bit parts by shifting the MSB part 8 bits to the left. Duh... Affected files ... .. //depot/projects/ia64/sys/ia64/ia64/sio_machdep.c#2 edit Differences ... ==== //depot/projects/ia64/sys/ia64/ia64/sio_machdep.c#2 (text+ko) ==== @@ -50,16 +50,21 @@ int sio_get_console(struct sio_consdata *cd) { struct dig64_hcdp_table *tbl; - u_int64_t addr; tbl = (struct dig64_hcdp_table*)sio_map(bootinfo.bi_hcdp, 7); if (tbl == NULL) return (ENXIO); - addr = tbl->entry->address.addr_high; - addr = (addr << 8) + tbl->entry->address.addr_low; - cd->addr = addr; + cd->addr = tbl->entry->address.addr_high; + cd->addr = (cd->addr << 32) + tbl->entry->address.addr_low; + if (tbl->entry->address.addr_space == 0) + (void)sio_map(cd->addr, 6); cd->type = (tbl->entry->address.addr_space == 0) ? IA64_BUS_SPACE_MEM : IA64_BUS_SPACE_IO; + cd->rclk = (tbl->entry->pclock) ? tbl->entry->pclock : 115200L; + cd->rclk <<= 4; /* rclk = 16 * pclock */ + cd->baud = tbl->entry->baud_high; + cd->baud = (cd->baud << 32) + tbl->entry->baud_low; + return (0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message