From owner-p4-projects@FreeBSD.ORG Fri Apr 27 12:52:48 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0F88E16A404; Fri, 27 Apr 2007 12:52:48 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2C4316A401 for ; Fri, 27 Apr 2007 12:52:47 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id 433A413C484 for ; Fri, 27 Apr 2007 12:52:47 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so957452muf for ; Fri, 27 Apr 2007 05:52:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=BmAJ8JJHhkmDvErvoV3XfdVrIfkoJsDrSb8pdFTIBDaTjUplI7Rs2re52a69Ph0+OW5a3R0cm6UTWBeJTJz5Df6k0+gNJKxGqJXBq1mIA+lcnS2rxAUp6Jb8Q/JDphO9iTCmnabvsroAGONCdJNw3f0qN8d3nifdJDsXRIifmwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=NPDujWa/BPyrqs+nOO9cXSMYU2XnBNYeUEsY+FYrNiCFd9wepCKHW8Vo4t3glyS6mxzm4QYjK0ewPZf74Av3Ltw/T2psABYrCg7FPcGXx080A1K83C9Az4YulVQRWSgyPUQjeKmxY94HNpqbbHt7BmfFQutZdstWzCBbbQ06Y+w= Received: by 10.82.113.6 with SMTP id l6mr5699779buc.1177678354609; Fri, 27 Apr 2007 05:52:34 -0700 (PDT) Received: from ?172.31.5.21? ( [89.97.252.178]) by mx.google.com with ESMTP id c25sm39435ika.2007.04.27.05.52.32; Fri, 27 Apr 2007 05:52:34 -0700 (PDT) Message-ID: <46326366.50907@FreeBSD.org> Date: Fri, 27 Apr 2007 22:56:06 +0200 From: Attilio Rao User-Agent: Thunderbird 1.5 (X11/20060526) MIME-Version: 1.0 To: Alexey Tarasov References: <200704271246.l3RCkoMJ051651@repoman.freebsd.org> In-Reply-To: <200704271246.l3RCkoMJ051651@repoman.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Attilio Rao Cc: Perforce Change Reviews Subject: Re: PERFORCE change 118874 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 12:52:48 -0000 Alexey Tarasov wrote: > http://perforce.freebsd.org/chv.cgi?CH=118874 > > Change 118874 by taleks@taleks_th on 2007/04/27 12:46:48 > > added code from pxe.c. Now need to find way to install NIC irq handler. > > Affected files ... > > .. //depot/projects/soc2007/taleks-pxe_http/pxe_core.c#3 edit > .. //depot/projects/soc2007/taleks-pxe_http/pxe_core.h#3 edit > > Differences ... > > ==== //depot/projects/soc2007/taleks-pxe_http/pxe_core.c#3 (text+ko) ==== > > @@ -1,8 +1,38 @@ > +#include > +#include > #include "pxe_core.h" > #include "pxe_mem.h" > #include "pxe_ip.h" > #include "pxe_mutex.h" > > +#include "btxv86.h" > +#include "pxe.h" > + > + > +/* PXE API calls here will be made in same way as in pxeboot. > + the only difference - installation of isr, that was not needed in pxe.c. > + main problem is that, v86 monitors reflects interrupts, > + we need to change IDT, for correct irq and call pxe_core_isr() from it. > +*/ > + > +/* NOTE: to think about using of this buffers */ > +#define PXE_BUFFER_SIZE 0x2000 > +#define PXE_TFTP_BUFFER_SIZE 512 > +static char scratch_buffer[PXE_BUFFER_SIZE]; > +static char data_buffer[PXE_BUFFER_SIZE]; > +static pxenv_t *pxenv_p = NULL; /* PXENV+ */ > +static pxe_t *pxe_p = NULL; /* !PXE */ > +static BOOTPLAYER bootplayer; /* PXE Cached information. */ > + > +/* defined in pxetramp.s */ > +extern u_int16_t __bangpxeseg; > +extern u_int16_t __bangpxeoff; > +extern void __bangpxeentry(void); > +extern u_int16_t __pxenvseg; > +extern u_int16_t __pxenvoff; > +extern void __pxenventry(void); > + > +/**/ Could you, please, use here uint16_t instead than u_int16_t as style(9) suggests? Attilio