From owner-p4-projects Sat Sep 21 2:30:20 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DC35D37B404; Sat, 21 Sep 2002 02:30:17 -0700 (PDT) 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 8A21C37B401 for ; Sat, 21 Sep 2002 02:30:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 472E643E42 for ; Sat, 21 Sep 2002 02:30:17 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8L9UHCo011612 for ; Sat, 21 Sep 2002 02:30:17 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8L9UGla011602 for perforce@freebsd.org; Sat, 21 Sep 2002 02:30:16 -0700 (PDT) Date: Sat, 21 Sep 2002 02:30:16 -0700 (PDT) Message-Id: <200209210930.g8L9UGla011602@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 17846 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://people.freebsd.org/~peter/p4db/chv.cgi?CH=17846 Change 17846 by peter@peter_overcee on 2002/09/21 02:30:07 having user code in the middle of locore always bothered me. move sigtrap stuff to a seperate file where we can assemble it with different options if needed. Especially keep it away from the 32/64 bit transition areas. Affected files ... .. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#12 edit .. //depot/projects/hammer/sys/x86_64/x86_64/sigtramp.s#1 add Differences ... ==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#12 (text+ko) ==== @@ -43,13 +43,6 @@ * and many others. */ -#include "opt_bootp.h" -#include "opt_compat.h" -#include "opt_nfsroot.h" - -#include -#include - #include #include #include @@ -185,10 +178,8 @@ /* Tell the bios to warmboot next time */ movw $0x1234,0x472 -/* Get onto a stack that we can trust. */ +/* Get onto a stack that we can trust and set up a real frame. */ movl $R(HIDENAME(tmpstk)),%esp - -/* Set up a real frame */ pushl %ebp movl %esp, %ebp @@ -205,9 +196,7 @@ mov %ax, %gs call recover_metadata - call identify_cpu - call create_pagetables /* Now enable paging */ @@ -250,31 +239,6 @@ /********************************************************************** * - * Signal trampoline, copied to top of user stack - * - */ -NON_GPROF_ENTRY(sigcode) - call *SIGF_HANDLER(%esp) /* call signal handler */ - lea SIGF_UC(%esp),%eax /* get ucontext_t */ - pushl %eax - movl UC_GS(%eax),%gs /* restore %gs */ - movl $SYS_sigreturn,%eax - pushl %eax /* junk to fake return addr. */ - int $0x80 /* enter kernel with args */ -0: hlt /* priviliged instruction */ - jmp 0b - - ALIGN_TEXT -esigcode: - - .data - .globl szsigcode -szsigcode: - .long esigcode-sigcode - .text - -/********************************************************************** - * * Recover the metadata passed to us from the boot program * */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message