From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 25 13:08:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3280516A4CE for ; Fri, 25 Mar 2005 13:08:33 +0000 (GMT) Received: from web52703.mail.yahoo.com (web52703.mail.yahoo.com [206.190.39.154]) by mx1.FreeBSD.org (Postfix) with SMTP id A0ADA43D53 for ; Fri, 25 Mar 2005 13:08:32 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 45487 invoked by uid 60001); 25 Mar 2005 13:08:31 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Nj+SAD3IXNvHBVbY4i9lVpuiL361yhMEA/BVCS21PDjj8Rj9vNzQF5g2yWGxhb77fPtSeJM9R7UpYuw6pTWIlHClt/6FvkgFErnIhklV87hfvMSQGfLL8/LitVltj5WXxyxkXdQamu2eO2469Qr2eo2LgGnNJGK54PGTrOLUuFo= ; Message-ID: <20050325130831.45485.qmail@web52703.mail.yahoo.com> Received: from [221.134.59.188] by web52703.mail.yahoo.com via HTTP; Fri, 25 Mar 2005 05:08:31 PST Date: Fri, 25 Mar 2005 05:08:31 -0800 (PST) From: "Kamal R. Prasad" To: Dan Nelson In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@freebsd.org Subject: Re: Kernel documentation and specification X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 13:08:33 -0000 I have been trying to find a way to load powerpc GPRs into my C variables (using __asm__)[inside the kernel], and if someone can give me a clue/point to code that would be great. The gnu documentation on _asm__ usage seems a bit too short. thanks -kamal --- Dan Nelson wrote: [snip] > > > > Some questions for instance are the use of sse, > mmx, and fpu register > > and commands inside the kernel. > > To answer this particular question, I don't believe > any floating-point > is allowed in the kernel, due to the extra time it > would take to save > and restore the registers on every context switch > (and kernel thread > switch even), and the difficulty of trapping > exceptions. > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > ------------------------------------------------------------ Kamal R. Prasad UNIX systems consultant kamalp@acm.org In theory, there is no difference between theory and practice. In practice, there is:-). ------------------------------------------------------------ __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/