Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211139
b: refs/heads/master
c: 62bdb28
h: refs/heads/master
i:
  211137: 2c34b0f
  211135: a670d9e
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Sep 29, 2010
1 parent a16046c commit b5c6382
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f44fbd297e1cda5d9ecc9f5321a86fe647c7d4a
refs/heads/master: 62bdb288bf464862a2801b2e53aadc6c4d100fab
14 changes: 6 additions & 8 deletions trunk/arch/mn10300/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
# Makefile for the MN10300-specific memory management code
#

cacheflush-y := cache.o cache-mn10300.o
cacheflush-$(CONFIG_MN10300_CACHE_WBACK) += cache-flush-mn10300.o

cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o

obj-y := \
init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \
misalignment.o dma-alloc.o

ifneq ($(CONFIG_MN10300_CACHE_DISABLED),y)
obj-y += cache.o cache-mn10300.o
ifeq ($(CONFIG_MN10300_CACHE_WBACK),y)
obj-y += cache-flush-mn10300.o
endif
endif
misalignment.o dma-alloc.o $(cacheflush-y)
21 changes: 21 additions & 0 deletions trunk/arch/mn10300/mm/cache-disabled.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Handle the cache being disabled
*
* Copyright (C) 2010 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 Licence
* as published by the Free Software Foundation; either version
* 2 of the Licence, or (at your option) any later version.
*/
#include <linux/mm.h>

/*
* allow userspace to flush the instruction cache
*/
asmlinkage long sys_cacheflush(unsigned long start, unsigned long end)
{
if (end < start)
return -EINVAL;
return 0;
}

0 comments on commit b5c6382

Please sign in to comment.