From owner-freebsd-amd64@FreeBSD.ORG Thu Oct 30 06:02:18 2014 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0DF2060B for ; Thu, 30 Oct 2014 06:02:18 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D01DA6B4 for ; Thu, 30 Oct 2014 06:02:17 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id rd18so4577042iec.27 for ; Wed, 29 Oct 2014 23:02:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=nmOESFwRXsAMfElKnrQEVLCTy3txkyd0PM4s/fLdKFM=; b=RWvuA2tUp1LdmpP3CIJ6A3P3EuMU0JQ3fVZJQCs87WE2H6sxZKtah+ueVliD78jtil bSfyURsB4pJWHdUULyW3pBdz0qmLpLvvKebeDkldtDlN/+yiIIjnEOSz/bdkM8xSss1N ZJy2hxnFMPlupi2jWuGZBKePP9c5dztmJ1q+Dh+vpEqF/zwp+V45B+KKYa9OjoS+lGVf s2jtui8rIkPO8DFOEw5bhjL7FkFMbj86X/xJiyx513/ZCXIdhCMDJ4+0+EV8aShpb2f1 vWklRT0VWj0QP8V6koAHayhEUU4mhUTkNaHMXFEUKj6P83ttOcdiv7BFmuhcGqVbCpcF lhJA== X-Gm-Message-State: ALoCoQkYyEOoOZlM/sETLLRQ1vw/Dnl0CPOkgttFiK1H/VnzJwU2k4TP19DZHgfLPa8F2AVHU9F1 MIME-Version: 1.0 X-Received: by 10.107.163.142 with SMTP id m136mr16755587ioe.32.1414648560530; Wed, 29 Oct 2014 22:56:00 -0700 (PDT) Received: by 10.107.34.202 with HTTP; Wed, 29 Oct 2014 22:56:00 -0700 (PDT) In-Reply-To: <201410071050.34285.jhb@freebsd.org> References: <201410071050.34285.jhb@freebsd.org> Date: Thu, 30 Oct 2014 11:26:00 +0530 Message-ID: Subject: Re: memory type e820 From: Sourish Mazumder To: John Baldwin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-amd64@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 06:02:18 -0000 I have nvram device in my system. I am able to detect the nvram device address by scanning the bios_smap. How do I add this new found nvram memory into kernel address space? On Tue, Oct 7, 2014 at 8:20 PM, John Baldwin wrote: > On Wednesday, September 24, 2014 5:12:37 am Sourish Mazumder wrote: > > Hi, > > > > Does freebsd has a linux equivalent of the function e820_any_mapped() ? > > This function is used to scan the system memory for a specific type. > > > > How to scan the system memory in freebsd? > > There is not an equivalent function, no. There is phys_avail[] (memory > pages > available for the VM system to use, doesn't include some early allocations > such as the message buffer) and dump_avail[] (all memory pages). > > What are you trying to scan for? > > -- > John Baldwin > -- Sourish Mazumder 9986309755