From owner-freebsd-ppc Fri Oct 26 20:33:39 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from alpo.whistle.com (s206m1.whistle.com [207.76.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 5232C37B405; Fri, 26 Oct 2001 20:33:37 -0700 (PDT) Received: from [207.76.207.129] ([10.1.10.118]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id UAA47063; Fri, 26 Oct 2001 20:33:36 -0700 (PDT) Mime-Version: 1.0 X-Sender: mark-ml@207.76.206.1 Message-Id: In-Reply-To: References: Date: Fri, 26 Oct 2001 20:33:35 -0700 To: John Baldwin From: Mark Peek Subject: Re: trap() and friends Cc: freebsd-ppc@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 4:33 AM -0700 10/26/01, John Baldwin wrote: >I was bored last night, so I cleaned up the powerpc trap() function. I don't >have anything setup to test it, but I think it should compile and handle most >kernel and user faults ok. (I haven't looked at the ALI faults yet, so they >always fail right now.) (This is assuming the pmap code is done, >it's just the >necessary changes for trap() itself.) I also think that syscalls might work >now, assuming that the NetBSD code this was cribbed from worked. Since my > >Note that some of the assembly stuff in locore.s still needs some work. >Specifically, on return from interrupts and exceptions, we need to call the >ast() function instead of doing an EXC_AST fake trap. I've got some comments >to that effect in the patch. There are no guarantees that this compiles, but >it should be a lot closer now to the final version. > >http://www.FreeBSD.org/~jhb/patches/ppc.patch John, Thanks for making these changes! Either you're a maniac, an insomniac or both! :-) I have some additional changes to get everything compiled correctly that I put up at http://www.FreeBSD.org/~mp/patches/ppc_trap.patch w/ full diffs...diff the diffs to see my additional changes. I did make the use of framep rather than frame consistent across all the routines. It needs a little more work to get the floating point save/restore coded up and then it should link. This shouldn't be too hard and I can try to whip up some changes tomorrow. The pmap code isn't working too well right now and I'm in mid-rewrite to make it a little more FreeBSD friendly. I'll have to find a few more cycles of free time to whip it into shape. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message