Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92301
b: refs/heads/master
c: d5adb02
h: refs/heads/master
i:
  92299: b8c668a
v: v3
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed Apr 23, 2008
1 parent d96e38f commit 556bbec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 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: 1ebc723cf04b55e7aeeec2e758293575d29a9c2b
refs/heads/master: d5adb029efad3c51db376d620319abe65d1efc21
6 changes: 6 additions & 0 deletions trunk/arch/blackfin/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ int _access_ok(unsigned long addr, unsigned long size)
return 1;
if (addr >= memory_mtd_end && (addr + size) <= physical_mem_end)
return 1;

#ifdef CONFIG_ROMFS_MTD_FS
/* For XIP, allow user space to use pointers within the ROMFS. */
if (addr >= memory_mtd_start && (addr + size) <= memory_mtd_end)
return 1;
#endif
#else
if (addr >= memory_start && (addr + size) <= physical_mem_end)
return 1;
Expand Down
5 changes: 3 additions & 2 deletions trunk/include/asm-blackfin/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ static inline void wrusp(unsigned long usp)

/*
* User space process size: 1st byte beyond user address space.
* Fairly meaningless on nommu. Parts of user programs can be scattered
* in a lot of places, so just disable this by setting it to 0xFFFFFFFF.
*/
extern unsigned long memory_end;
#define TASK_SIZE (memory_end)
#define TASK_SIZE 0xFFFFFFFF

#ifdef __KERNEL__
#define STACK_TOP TASK_SIZE
Expand Down

0 comments on commit 556bbec

Please sign in to comment.