Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bba49f5 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: [mm] Aliasing VIPT dcache support 4/4



Enforce congruency of userspace shared mappings

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent de2a852c
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,6 @@ generic-y += resource.h
generic-y += scatterlist.h
generic-y += scatterlist.h
generic-y += sembuf.h
generic-y += sembuf.h
generic-y += shmbuf.h
generic-y += shmbuf.h
generic-y += shmparam.h
generic-y += siginfo.h
generic-y += siginfo.h
generic-y += socket.h
generic-y += socket.h
generic-y += sockios.h
generic-y += sockios.h
+0 −3
Original line number Original line Diff line number Diff line
@@ -55,9 +55,6 @@
	: "r"(data), "r"(ptr));		\
	: "r"(data), "r"(ptr));		\
})
})


/* used to give SHMLBA a value to avoid Cache Aliasing */
extern unsigned int ARC_shmlba;

#define ARCH_DMA_MINALIGN      L1_CACHE_BYTES
#define ARCH_DMA_MINALIGN      L1_CACHE_BYTES


/*
/*
+1 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,7 @@
#define _ASM_CACHEFLUSH_H
#define _ASM_CACHEFLUSH_H


#include <linux/mm.h>
#include <linux/mm.h>
#include <asm/shmparam.h>


/*
/*
 * Semantically we need this because icache doesn't snoop dcache/dma.
 * Semantically we need this because icache doesn't snoop dcache/dma.
+3 −0
Original line number Original line Diff line number Diff line
@@ -395,6 +395,9 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,


#include <asm-generic/pgtable.h>
#include <asm-generic/pgtable.h>


/* to cope with aliasing VIPT cache */
#define HAVE_ARCH_UNMAPPED_AREA

/*
/*
 * No page table caches to initialise
 * No page table caches to initialise
 */
 */
+18 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef __ARC_ASM_SHMPARAM_H
#define __ARC_ASM_SHMPARAM_H

/* Handle upto 2 cache bins */
#define	SHMLBA	(2 * PAGE_SIZE)

/* Enforce SHMLBA in shmat */
#define __ARCH_FORCE_SHMLBA

#endif
Loading