From owner-freebsd-platforms Wed Jul 10 4:58: 8 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69D7A37B400; Wed, 10 Jul 2002 04:58:05 -0700 (PDT) Received: from domestos.yandex.ru (domestos.yandex.ru [213.180.193.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E64443E42; Wed, 10 Jul 2002 04:58:04 -0700 (PDT) (envelope-from tzukanov@narod.ru) Received: from dial-056.nross.ru ([195.161.59.183]:3712 "EHLO antares" ident: "NO-IDENT-SERVICE[2]" whoson: "tzukanov" TLS-CIPHER: TLS-PEER: ) by mail.yandex.ru with ESMTP id ; Wed, 10 Jul 2002 15:57:47 +0400 Content-Type: text/plain; charset="us-ascii" From: Serguei Tzukanov To: freebsd-platforms@freebsd.org Subject: A question about S/390 port Date: Wed, 10 Jul 2002 15:54:09 +0400 User-Agent: KMail/1.4.1 Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200207101554.09734.tzukanov@narod.ru> Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Some working notes. I've written the libc/csu part, kernel successfully starts init and init forks off for the execve of -sh, (http://tzukanov.narod.ru/freebsd390/bootlog.txt) but there is problem with printing from userland, e.g. output from userland are not visible. Write syscall to descs 1,2 in init returns with success. I'm sure it's something very stupid, so maybe someone have a clue? And another problem (well-known?): __syscall returns 64-bit value but mmap returns 4-byte word in the td->td_retval[0]. Wrapper for mmap in libc casts 64 rv to 32 and alays gets zero. This leads to truncating to zero due to cast on 32-bit big-endian architectures. The solution is obvious - using constructs like td->td_retval[_QUAD_LOWWORD] = xxx in MI code. For now I just avoid it with hack in syscall handler. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 8:39:17 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B55437B401 for ; Wed, 10 Jul 2002 08:39:14 -0700 (PDT) Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EBC343E5E for ; Wed, 10 Jul 2002 08:39:13 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 26035 invoked from network); 10 Jul 2002 15:39:12 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail17.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Jul 2002 15:39:12 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g6AFdA001474; Wed, 10 Jul 2002 11:39:10 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200207101554.09734.tzukanov@narod.ru> Date: Wed, 10 Jul 2002 11:39:15 -0400 (EDT) From: John Baldwin To: Serguei Tzukanov Subject: RE: A question about S/390 port Cc: freebsd-hackers@freebsd.org, freebsd-platforms@freebsd.org Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 10-Jul-2002 Serguei Tzukanov wrote: > Some working notes. > > I've written the libc/csu part, kernel successfully starts init and init > forks off for the execve of -sh, > (http://tzukanov.narod.ru/freebsd390/bootlog.txt) > but there is problem with printing from userland, e.g. output from > userland are not visible. Write syscall to descs 1,2 in init returns > with success. > I'm sure it's something very stupid, so maybe someone have a clue? > > And another problem (well-known?): > __syscall returns 64-bit value but mmap returns 4-byte word in the > td->td_retval[0]. Wrapper for mmap in libc casts 64 rv to 32 and alays > gets zero. This leads to truncating to zero due to cast on 32-bit > big-endian architectures. > The solution is obvious - using constructs like > td->td_retval[_QUAD_LOWWORD] = xxx in MI code. > > For now I just avoid it with hack in syscall handler. td_retval[0] is the low word, and td_retval[1] is the high word, you just need to make sure the values from those two words get returned properly to userland. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 9:33:11 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E823F37B400; Wed, 10 Jul 2002 09:33:07 -0700 (PDT) Received: from domestos.yandex.ru (domestos.yandex.ru [213.180.193.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC44E43E09; Wed, 10 Jul 2002 09:33:06 -0700 (PDT) (envelope-from tzukanov@narod.ru) Received: from dial-092.nross.ru ([195.161.59.219]:1152 "EHLO antares" ident: "NO-IDENT-SERVICE[2]" whoson: "tzukanov" TLS-CIPHER: TLS-PEER: ) by mail.yandex.ru with ESMTP id ; Wed, 10 Jul 2002 20:32:52 +0400 Content-Type: text/plain; charset=US-ASCII From: Serguei Tzukanov To: John Baldwin Subject: Re: A question about S/390 port Date: Wed, 10 Jul 2002 20:33:25 +0400 User-Agent: KMail/1.4.1 Cc: freebsd-hackers@freebsd.org, freebsd-platforms@freebsd.org References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <200207102033.25184.tzukanov@narod.ru> Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > td_retval[0] is the low word, and td_retval[1] is the high word, you > just need to make sure the values from those two words get returned > properly to userland. 1) syscall returns 32-bit value: r2 = rv[0]; r3 = rv[1]; r3 is irrelevant here (ABI: "32-bit values returned in r2") 2) syscall returns 64-bit value: MI code uses something like *(int64_t *)rv = xxx, so I have to do r2 = rv[0]; r3 = rv[1]; ABI says "long long shall be returned with the lower addressed half in r2 and the higher in r3" 3) syscall folded into __syscall returns 32-bit value (e.g. mmap): MI code does usual r[0] = xxx; svc (syscall) handler does r2 = rv[0]; r3 = rv[1]; /* zeroed before */ then mmap wrapper in userspace casts this 64-bit to 32-bit (loads r2 with r3 really) and always gets 0. So to make it consistent I have to know size of returned value for every syscall and for case 3 do {r3 = rv[0]; r2 = rv[1]}. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 10:29:38 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FD437B401 for ; Wed, 10 Jul 2002 10:29:33 -0700 (PDT) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BE2343E31 for ; Wed, 10 Jul 2002 10:29:33 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 703 invoked from network); 10 Jul 2002 17:29:31 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 Jul 2002 17:29:31 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g6AHTU027679; Wed, 10 Jul 2002 13:29:30 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200207102033.25184.tzukanov@narod.ru> Date: Wed, 10 Jul 2002 13:29:34 -0400 (EDT) From: John Baldwin To: Serguei Tzukanov Subject: Re: A question about S/390 port Cc: freebsd-platforms@freebsd.org, freebsd-hackers@freebsd.org Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 10-Jul-2002 Serguei Tzukanov wrote: > >> td_retval[0] is the low word, and td_retval[1] is the high word, you >> just need to make sure the values from those two words get returned >> properly to userland. > > 1) syscall returns 32-bit value: > r2 = rv[0]; > r3 = rv[1]; > r3 is irrelevant here (ABI: "32-bit values returned in r2") > > 2) syscall returns 64-bit value: > MI code uses something like > *(int64_t *)rv = xxx, so I have to do > r2 = rv[0]; > r3 = rv[1]; > ABI says "long long shall be returned with the lower > addressed half in r2 and the higher in r3" > > 3) syscall folded into __syscall returns 32-bit value (e.g. mmap): > MI code does usual > r[0] = xxx; > svc (syscall) handler does > r2 = rv[0]; > r3 = rv[1]; /* zeroed before */ > then mmap wrapper in userspace casts this 64-bit to 32-bit > (loads r2 with r3 really) and always gets 0. Why does the cast from 32 to 64 treat r3 as the lower 32-bits when a 64-bit return value treats r3 as the upper 32-bits and r2 as the lower 32-bits? That is inconsistent and you are going to have problems with either one or the other. I also don't understand exactly what you mean by "syscall folded into __syscall". -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 12:20:20 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6DE937B412; Wed, 10 Jul 2002 12:20:09 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E9D043E5E; Wed, 10 Jul 2002 12:20:09 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020710192008.SGRK24728.rwcrmhc51.attbi.com@InterJet.elischer.org>; Wed, 10 Jul 2002 19:20:08 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA41788; Wed, 10 Jul 2002 12:04:41 -0700 (PDT) Date: Wed, 10 Jul 2002 12:04:41 -0700 (PDT) From: Julian Elischer To: Serguei Tzukanov Cc: John Baldwin , freebsd-hackers@freebsd.org, freebsd-platforms@freebsd.org Subject: Re: A question about S/390 port In-Reply-To: <200207102033.25184.tzukanov@narod.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org OK so I have to ask.. S/390 as in IBM Mainframem S/390? On Wed, 10 Jul 2002, Serguei Tzukanov wrote: > > > td_retval[0] is the low word, and td_retval[1] is the high word, you > > just need to make sure the values from those two words get returned > > properly to userland. > > 1) syscall returns 32-bit value: > r2 = rv[0]; > r3 = rv[1]; > r3 is irrelevant here (ABI: "32-bit values returned in r2") > > 2) syscall returns 64-bit value: > MI code uses something like > *(int64_t *)rv = xxx, so I have to do > r2 = rv[0]; > r3 = rv[1]; > ABI says "long long shall be returned with the lower > addressed half in r2 and the higher in r3" > > 3) syscall folded into __syscall returns 32-bit value (e.g. mmap): > MI code does usual > r[0] = xxx; > svc (syscall) handler does > r2 = rv[0]; > r3 = rv[1]; /* zeroed before */ > then mmap wrapper in userspace casts this 64-bit to 32-bit > (loads r2 with r3 really) and always gets 0. > > So to make it consistent I have to know size of returned value for every > syscall and for case 3 do {r3 = rv[0]; r2 = rv[1]}. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 13: 5:47 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F5C237B400; Wed, 10 Jul 2002 13:05:44 -0700 (PDT) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC8B043E31; Wed, 10 Jul 2002 13:05:43 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0451.cvx22-bradley.dialup.earthlink.net ([209.179.199.196] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17SNiW-0003Ux-00; Wed, 10 Jul 2002 13:05:40 -0700 Message-ID: <3D2C9369.87741027@mindspring.com> Date: Wed, 10 Jul 2002 13:04:57 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Serguei Tzukanov Cc: freebsd-platforms@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: A question about S/390 port References: <200207101554.09734.tzukanov@narod.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It sounds like a tty driver problem. Does the emulator even support this? Do you have a package, so that people can install your developement environment and use your patches so they can participate in helping you code? -- Terry Serguei Tzukanov wrote: > > Some working notes. > > I've written the libc/csu part, kernel successfully starts init and init > forks off for the execve of -sh, > (http://tzukanov.narod.ru/freebsd390/bootlog.txt) > but there is problem with printing from userland, e.g. output from > userland are not visible. Write syscall to descs 1,2 in init returns > with success. > I'm sure it's something very stupid, so maybe someone have a clue? > > And another problem (well-known?): > __syscall returns 64-bit value but mmap returns 4-byte word in the > td->td_retval[0]. Wrapper for mmap in libc casts 64 rv to 32 and alays > gets zero. This leads to truncating to zero due to cast on 32-bit > big-endian architectures. > The solution is obvious - using constructs like > td->td_retval[_QUAD_LOWWORD] = xxx in MI code. > > For now I just avoid it with hack in syscall handler. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 13:49: 2 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5754637B400; Wed, 10 Jul 2002 13:48:59 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id E57E943E09; Wed, 10 Jul 2002 13:48:58 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0451.cvx22-bradley.dialup.earthlink.net ([209.179.199.196] helo=mindspring.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17SOOP-0002jv-00; Wed, 10 Jul 2002 13:48:57 -0700 Message-ID: <3D2C9D8E.B8E22B05@mindspring.com> Date: Wed, 10 Jul 2002 13:48:14 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Serguei Tzukanov , freebsd-platforms@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: A question about S/390 port References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John Baldwin wrote: > Why does the cast from 32 to 64 treat r3 as the lower 32-bits when > a 64-bit return value treats r3 as the upper 32-bits and r2 as the > lower 32-bits? That is inconsistent and you are going to have > problems with either one or the other. I also don't understand > exactly what you mean by "syscall folded into __syscall". God's byte order, rather than Intel's? 8-) 8-) ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 15:43:15 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F91A37B400; Wed, 10 Jul 2002 15:43:11 -0700 (PDT) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0FBB43E42; Wed, 10 Jul 2002 15:43:10 -0700 (PDT) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.3) with ESMTP id g6AMjfKk050296; Wed, 10 Jul 2002 18:45:41 -0400 (EDT) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.3/Submit) id g6AMjfmu050295; Wed, 10 Jul 2002 18:45:41 -0400 (EDT) Date: Wed, 10 Jul 2002 18:45:40 -0400 From: Jake Burkholder To: Serguei Tzukanov Cc: freebsd-platforms@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: A question about S/390 port Message-ID: <20020710184540.C48985@locore.ca> References: <200207101554.09734.tzukanov@narod.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200207101554.09734.tzukanov@narod.ru>; from tzukanov@narod.ru on Wed, Jul 10, 2002 at 03:54:09PM +0400 Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Wed, Jul 10, 2002 at 03:54:09PM +0400, Serguei Tzukanov said words to the effect of; > Some working notes. > > I've written the libc/csu part, kernel successfully starts init and init > forks off for the execve of -sh, > (http://tzukanov.narod.ru/freebsd390/bootlog.txt) > but there is problem with printing from userland, e.g. output from > userland are not visible. Write syscall to descs 1,2 in init returns > with success. > I'm sure it's something very stupid, so maybe someone have a clue? I think this is because your console driver (hc) doesn't have a tty interface, just the low level cn* stuff. If you look at the ofw_console driver, it provides a rudimentary tty interface using polling and cngetc, cnputc equivalents. Jake > > And another problem (well-known?): > __syscall returns 64-bit value but mmap returns 4-byte word in the > td->td_retval[0]. Wrapper for mmap in libc casts 64 rv to 32 and alays > gets zero. This leads to truncating to zero due to cast on 32-bit > big-endian architectures. > The solution is obvious - using constructs like > td->td_retval[_QUAD_LOWWORD] = xxx in MI code. > > For now I just avoid it with hack in syscall handler. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 22:41:52 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C63537B400; Wed, 10 Jul 2002 22:41:50 -0700 (PDT) Received: from domestos.yandex.ru (domestos.yandex.ru [213.180.193.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id A661B43E31; Wed, 10 Jul 2002 22:41:49 -0700 (PDT) (envelope-from tzukanov@narod.ru) Received: from dial-013.nross.ru ([195.161.59.140]:32640 "EHLO antares" ident: "NO-IDENT-SERVICE[2]" whoson: "tzukanov" TLS-CIPHER: TLS-PEER: ) by mail.yandex.ru with ESMTP id ; Thu, 11 Jul 2002 09:41:31 +0400 Content-Type: text/plain; charset=US-ASCII From: Serguei Tzukanov To: Julian Elischer Subject: Re: A question about S/390 port Date: Thu, 11 Jul 2002 08:46:25 +0400 User-Agent: KMail/1.4.1 Cc: John Baldwin , freebsd-hackers@freebsd.org, freebsd-platforms@freebsd.org References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <200207110846.25079.tzukanov@narod.ru> Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wednesday 10 July 2002 23:04, Julian Elischer wrote: > OK so I have to ask.. S/390 as in IBM Mainframem S/390? Yeas, ESA/390. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Wed Jul 10 22:41:55 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1976B37B405; Wed, 10 Jul 2002 22:41:52 -0700 (PDT) Received: from domestos.yandex.ru (domestos.yandex.ru [213.180.193.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3CF743E31; Wed, 10 Jul 2002 22:41:51 -0700 (PDT) (envelope-from tzukanov@narod.ru) Received: from dial-013.nross.ru ([195.161.59.140]:32640 "EHLO antares" ident: "NO-IDENT-SERVICE[2]" whoson: "tzukanov" TLS-CIPHER: TLS-PEER: ) by mail.yandex.ru with ESMTP id ; Thu, 11 Jul 2002 09:41:37 +0400 Content-Type: text/plain; charset=US-ASCII From: Serguei Tzukanov To: Jake Burkholder Subject: Re: A question about S/390 port Date: Thu, 11 Jul 2002 09:11:47 +0400 User-Agent: KMail/1.4.1 Cc: freebsd-platforms@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <200207101554.09734.tzukanov@narod.ru> <20020710184540.C48985@locore.ca> In-Reply-To: <20020710184540.C48985@locore.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <200207110911.47369.tzukanov@narod.ru> Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thursday 11 July 2002 02:45, Jake Burkholder wrote: > > I think this is because your console driver (hc) doesn't have a tty > interface, just the low level cn* stuff. If you look at the > ofw_console driver, it provides a rudimentary tty interface using > polling and cngetc, cnputc equivalents. Hm, what about /dev/console (tty_cons)? I put into /etc/ttys line console "/usr/libexec/getty std.1200" vt100 on secure. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Thu Jul 11 7:40:38 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C6B137B400; Thu, 11 Jul 2002 07:40:35 -0700 (PDT) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67BB143E3B; Thu, 11 Jul 2002 07:40:34 -0700 (PDT) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.3) with ESMTP id g6BEhGKk053316; Thu, 11 Jul 2002 10:43:16 -0400 (EDT) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.3/Submit) id g6BEhGcJ053315; Thu, 11 Jul 2002 10:43:16 -0400 (EDT) Date: Thu, 11 Jul 2002 10:43:16 -0400 From: Jake Burkholder To: Serguei Tzukanov Cc: freebsd-platforms@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: A question about S/390 port Message-ID: <20020711104316.E48985@locore.ca> References: <200207101554.09734.tzukanov@narod.ru> <20020710184540.C48985@locore.ca> <200207110911.47369.tzukanov@narod.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200207110911.47369.tzukanov@narod.ru>; from tzukanov@narod.ru on Thu, Jul 11, 2002 at 09:11:47AM +0400 Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Thu, Jul 11, 2002 at 09:11:47AM +0400, Serguei Tzukanov said words to the effect of; > On Thursday 11 July 2002 02:45, Jake Burkholder wrote: > > > > I think this is because your console driver (hc) doesn't have a tty > > interface, just the low level cn* stuff. If you look at the > > ofw_console driver, it provides a rudimentary tty interface using > > polling and cngetc, cnputc equivalents. > > Hm, what about /dev/console (tty_cons)? > I put into /etc/ttys line > console "/usr/libexec/getty std.1200" vt100 on secure. Where exactly in init are you trying to print? If you're in the single_user function, you can only use stdio in the forked child after it calls setctty. Before that you have to open an fd on /dev/console yourself and write(2) to it, or call login_tty on it which dups the standard descriptors from it. I don't know if starting a getty on /dev/console will work, but in any case this doesn't happen until you go multi-user, iirc this line is only used for the secure keyword. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message From owner-freebsd-platforms Thu Jul 11 7:51:24 2002 Delivered-To: freebsd-platforms@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DE3637B400; Thu, 11 Jul 2002 07:51:22 -0700 (PDT) Received: from palmolive.yandex.ru (palmolive.yandex.ru [213.180.193.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2813C43E42; Thu, 11 Jul 2002 07:51:21 -0700 (PDT) (envelope-from tzukanov@narod.ru) Received: from dial-113.nross.ru ([195.161.59.240]:384 "EHLO antares" ident: "NO-IDENT-SERVICE[2]" whoson: "tzukanov" TLS-CIPHER: TLS-PEER: ) by mail.yandex.ru with ESMTP id ; Thu, 11 Jul 2002 18:51:08 +0400 Content-Type: text/plain; charset=US-ASCII From: Serguei Tzukanov To: Jake Burkholder Subject: Re: A question about S/390 port Date: Thu, 11 Jul 2002 18:49:21 +0400 User-Agent: KMail/1.4.1 Cc: freebsd-platforms@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <200207101554.09734.tzukanov@narod.ru> <200207110911.47369.tzukanov@narod.ru> <20020711104316.E48985@locore.ca> In-Reply-To: <20020711104316.E48985@locore.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: <200207111849.21252.tzukanov@narod.ru> Sender: owner-freebsd-platforms@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thursday 11 July 2002 18:43, Jake Burkholder wrote: > Where exactly in init are you trying to print? If you're in the > single_user function, you can only use stdio in the forked child > after it calls setctty. Before that you have to open an fd on > /dev/console yourself and write(2) to it, or call login_tty on it > which dups the standard descriptors from it. I don't know if starting > a getty on /dev/console will work, but in any case this doesn't > happen until you go multi-user, iirc this line is only used for the > secure keyword. Problem is solved, I made as you'd said earlier: fixed hc to support tty interface. Right now I'm debugging sh crushing with sig 11. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-platforms" in the body of the message