-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 189398 b: refs/heads/master c: b7b7fa4 h: refs/heads/master v: v3
- Loading branch information
Jeff Mahoney
authored and
Frederic Weisbecker
committed
Mar 30, 2010
1 parent
7c0dfea
commit ccd110f
Showing
129 changed files
with
2,362 additions
and
3,920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 5193d7a7f500cfbbfc0de221e808208199723521 | ||
refs/heads/master: b7b7fa43103a9fb30dbcc60cbd5161fdfc25f904 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> | ||
* Copyright (C) 2008-2009 PetaLogix | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_SEGMENT_H | ||
#define _ASM_MICROBLAZE_SEGMENT_H | ||
|
||
# ifndef __ASSEMBLY__ | ||
|
||
typedef struct { | ||
unsigned long seg; | ||
} mm_segment_t; | ||
|
||
/* | ||
* On Microblaze the fs value is actually the top of the corresponding | ||
* address space. | ||
* | ||
* The fs value determines whether argument validity checking should be | ||
* performed or not. If get_fs() == USER_DS, checking is performed, with | ||
* get_fs() == KERNEL_DS, checking is bypassed. | ||
* | ||
* For historical reasons, these macros are grossly misnamed. | ||
* | ||
* For non-MMU arch like Microblaze, KERNEL_DS and USER_DS is equal. | ||
*/ | ||
# define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | ||
|
||
# ifndef CONFIG_MMU | ||
# define KERNEL_DS MAKE_MM_SEG(0) | ||
# define USER_DS KERNEL_DS | ||
# else | ||
# define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF) | ||
# define USER_DS MAKE_MM_SEG(TASK_SIZE - 1) | ||
# endif | ||
|
||
# define get_ds() (KERNEL_DS) | ||
# define get_fs() (current_thread_info()->addr_limit) | ||
# define set_fs(val) (current_thread_info()->addr_limit = (val)) | ||
|
||
# define segment_eq(a, b) ((a).seg == (b).seg) | ||
|
||
# endif /* __ASSEMBLY__ */ | ||
#endif /* _ASM_MICROBLAZE_SEGMENT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.