login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
29
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Yinghai Lu
Subject:
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
Date: Wednesday, December 29, 2010 - 4:37 pm
On Wed, Dec 29, 2010 at 3:30 PM, Yinghai Lu <yinghai@kernel.org> wrote:
quoted text
>>> Index: linux-2.6/arch/x86/include/asm/page_types.h >>> =================================================================== >>> --- linux-2.6.orig/arch/x86/include/asm/page_types.h >>> +++ linux-2.6/arch/x86/include/asm/page_types.h >>> @@ -45,6 +45,11 @@ extern int devmem_is_allowed(unsigned lo >>> extern unsigned long max_low_pfn_mapped; >>> extern unsigned long max_pfn_mapped; >>> >>> +static inline u64 get_max_mapped(void) >>> +{ >>> + return (u64)max_pfn_mapped<<PAGE_SHIFT; >>> +} >>> + >>> extern unsigned long init_memory_mapping(unsigned long start, >>> unsigned long end); >>> >> > >> Furthermore, it seems to me that it would make more >> sense for this to be phys_addr_t instead of u64; would you agree? > > yes.
or could just use unsigned long instead. on 32bit it will be under 4g on 64bit unsigned long is 64bit already. Thanks Yinghai --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/3] memblock related top down
, Yinghai Lu
, (Fri Dec 17, 5:58 pm)
[PATCH 0/6] memblock related further cleanup for x86
, Yinghai Lu
, (Mon Dec 27, 5:47 pm)
[PATCH 1/6] x86: Change get_max_mapped() to inline
, Yinghai Lu
, (Mon Dec 27, 5:47 pm)
[PATCH 2/6] x86, 64bit, numa: Allocate memnodemap under ma ...
, Yinghai Lu
, (Mon Dec 27, 5:48 pm)
[PATCH 3/6] x86, 64bit, numa: Put pgtable to local node memory
, Yinghai Lu
, (Mon Dec 27, 5:48 pm)
[PATCH 4/6] x86: Use early pre-allocated page table buffer ...
, Yinghai Lu
, (Mon Dec 27, 5:48 pm)
[PATCH 5/6] x86, 64bit: Move out cleanup higmap [_brk_end, ...
, Yinghai Lu
, (Mon Dec 27, 5:48 pm)
[PATCH 6/6] x86: Rename e820_table_* to pgt_buf_*
, Yinghai Lu
, (Mon Dec 27, 5:48 pm)
Re: [PATCH 0/3] memblock related top down
, H. Peter Anvin
, (Tue Dec 28, 1:21 pm)
Re: [PATCH 0/3] memblock related top down
, Yinghai Lu
, (Tue Dec 28, 2:36 pm)
Re: [PATCH 0/3] memblock related top down
, H. Peter Anvin
, (Tue Dec 28, 3:09 pm)
Re: [PATCH 0/3] memblock related top down
, Yinghai Lu
, (Tue Dec 28, 3:25 pm)
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
, H. Peter Anvin
, (Wed Dec 29, 4:05 pm)
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
, Yinghai Lu
, (Wed Dec 29, 4:30 pm)
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
, Yinghai Lu
, (Wed Dec 29, 4:37 pm)
Re: [PATCH 1/6] x86: Change get_max_mapped() to inline
, H. Peter Anvin
, (Wed Dec 29, 4:42 pm)
[PATCH -v2 1/6] x86: Change get_max_mapped() to inline
, Yinghai Lu
, (Wed Dec 29, 4:45 pm)
[PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local nod ...
, Yinghai Lu
, (Wed Dec 29, 4:46 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, H. Peter Anvin
, (Wed Dec 29, 4:50 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, Yinghai Lu
, (Wed Dec 29, 5:11 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, David Rientjes
, (Wed Dec 29, 5:39 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, H. Peter Anvin
, (Wed Dec 29, 5:58 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, David Rientjes
, (Wed Dec 29, 6:07 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, H. Peter Anvin
, (Wed Dec 29, 6:53 pm)
Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgtable to local ...
, Ingo Molnar
, (Thu Dec 30, 2:06 am)
[boot crash] Re: [PATCH -v2 3/6] x86, 64bit, numa: Put pgt ...
, Ingo Molnar
, (Thu Dec 30, 3:28 am)
Re: [boot crash] Re: [PATCH -v2 3/6] x86, 64bit, numa: Put ...
, Ingo Molnar
, (Thu Dec 30, 3:30 am)
[build failure] Re: [PATCH -v2 3/6] x86, 64bit, numa: Put ...
, Ingo Molnar
, (Thu Dec 30, 5:01 am)
Re: [build failure] Re: [PATCH -v2 3/6] x86, 64bit, numa: ...
, David Rientjes
, (Thu Dec 30, 11:53 am)
[patch] x86, numa: Fix CONFIG_DEBUG_PER_CPU_MAPS without N ...
, David Rientjes
, (Thu Dec 30, 11:54 am)
Re: [boot crash] Re: [PATCH -v2 3/6] x86, 64bit, numa: Put ...
, Yinghai Lu
, (Thu Dec 30, 2:18 pm)
[PATCH -v2 6/6] x86: Rename e820_table_* to pgt_buf_*
, Yinghai Lu
, (Thu Dec 30, 2:54 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Linus Torvalds
Linux 2.6.34-rc4
Thomas Taranowski
[PATCH] RapidIO: Fix hang on RapidIO doorbell queue full condition
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Denis Bueno
Git clone error
Sam Vilain
Re: RFC: Flat directory for notes, or fan-out? Both!
Oliver Hoffmann
git init --bare versus git --bare init
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate