From f6fffbd5b0a83bd161e8f6417a4d034f72268217 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 10 Mar 2013 19:31:10 +0000 Subject: AT91SAM3 now supports kernel-mode heap; SAM3U-EK knsh configuration converted to use kconfig-frontends tool git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5726 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c') diff --git a/nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c b/nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c index ef8553e9c..b2d3850ea 100644 --- a/nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c +++ b/nuttx/arch/arm/src/sam3u/sam3u_mpuinit.c @@ -1,7 +1,7 @@ /**************************************************************************** * arch/arm/src/common/sam3u_mpuinit.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -102,17 +102,26 @@ void sam3u_mpuinitialize(void) } /**************************************************************************** - * Name: sam3u_mpuheap + * Name: sam3u_mpu_uheap and sam3u_mpu_uheap * * Description: - * Map a heap region (probably needs to extension to handle external SRAM). + * Map a user- or kernel-heap region. + * + * This logic may need an extension to handle external SRAM). * ****************************************************************************/ -void sam3u_mpuheap(uintptr_t start, size_t size) +void sam3u_mpu_uheap(uintptr_t start, size_t size) { mpu_userintsram(start, size); } +#ifdef CONFIG_MM_KERNEL_HEAP +void sam3u_mpu_kheap(uintptr_t start, size_t size) +{ + mpu_privintsram(start, size); +} +#endif + #endif /* CONFIG_NUTTX_KERNEL */ -- cgit v1.2.3