https://github.com/torvalds/linux
Revision 6137e4166004e2ec383ac05d5ca15831f4668806 authored by Max Filippov on 15 February 2018, 00:12:54 UTC, committed by Max Filippov on 17 February 2018, 03:19:54 UTC
If a DMA buffer is allocated in high memory and kernel mapping is
required use dma_common_contiguous_remap to map buffer to the vmalloc
region and dma_common_free_remap to unmap it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 6ac5a11
Raw File
Tip revision: 6137e4166004e2ec383ac05d5ca15831f4668806 authored by Max Filippov on 15 February 2018, 00:12:54 UTC
xtensa: support DMA buffers in high memory
Tip revision: 6137e41
irq_regs.c
/* saved per-CPU IRQ register pointer
 *
 * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
 */
#include <linux/export.h>
#include <linux/percpu.h>
#include <asm/irq_regs.h>

#ifndef ARCH_HAS_OWN_IRQ_REGS
DEFINE_PER_CPU(struct pt_regs *, __irq_regs);
EXPORT_PER_CPU_SYMBOL(__irq_regs);
#endif
back to top