Skip to content

Commit d5fad48

Browse files
Zong Lipalmer-dabbelt
authored andcommitted
RISC-V: Add conditional macro for zone of DMA32
The DMA32 is for 64-bit usage. Signed-off-by: Zong Li <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 021c917 commit d5fad48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/mm/init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ static void __init zone_sizes_init(void)
2828
{
2929
unsigned long max_zone_pfns[MAX_NR_ZONES] = { 0, };
3030

31+
#ifdef CONFIG_ZONE_DMA32
3132
max_zone_pfns[ZONE_DMA32] = PFN_DOWN(min(4UL * SZ_1G, max_low_pfn));
33+
#endif
3234
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
3335

3436
free_area_init_nodes(max_zone_pfns);

0 commit comments

Comments
 (0)