Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932183AbbKQQzK (ORCPT ); Tue, 17 Nov 2015 11:55:10 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36597 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752147AbbKQQzH (ORCPT ); Tue, 17 Nov 2015 11:55:07 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: read physical address space From: yalin wang In-Reply-To: Date: Wed, 18 Nov 2015 00:28:01 +0800 Cc: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: To: alan hopes X-Mailer: Apple Mail (2.3094) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 481 Lines: 13 you should access it like this: printk ( *(int*)kmap(pays_to_page(pays_addr))); pays address must be mapped into virtual address before access it . > On Nov 17, 2015, at 23:21, alan hopes wrote: > > phys_addr -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/