cregit-Linux how code gets into the kernel

Release 4.14 arch/cris/arch-v32/kernel/cache.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/module.h>
#include <asm/io.h>
#include <arch/cache.h>
#include <arch/hwregs/dma.h>

/* This file is used to workaround a cache bug, Guinness TR 106. */


inline void flush_dma_descr(struct dma_descr_data *descr, int flush_buf) { /* Flush descriptor to make sure we get correct in_eop and after. */ asm volatile ("ftagd [%0]" :: "r" (descr)); /* Flush buffer pointed out by descriptor. */ if (flush_buf) cris_flush_cache_range(phys_to_virt((unsigned)descr->buf), (unsigned)(descr->after - descr->buf)); }

Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson49100.00%1100.00%
Total49100.00%1100.00%

EXPORT_SYMBOL(flush_dma_descr);
void flush_dma_list(struct dma_descr_data *descr) { while (1) { flush_dma_descr(descr, 1); if (descr->eol) break; descr = phys_to_virt((unsigned)descr->next); } }

Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson42100.00%1100.00%
Total42100.00%1100.00%

EXPORT_SYMBOL(flush_dma_list); /* From cacheflush.S */ EXPORT_SYMBOL(cris_flush_cache); /* From cacheflush.S */ EXPORT_SYMBOL(cris_flush_cache_range);

Overall Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson12699.21%266.67%
Greg Kroah-Hartman10.79%133.33%
Total127100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.