-
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: 189375 b: refs/heads/master c: 4539282 h: refs/heads/master i: 189373: 9290c4c 189371: 622ab7c 189367: 7a867ed 189359: 3e07256 189343: 176b802 189311: 0ae8262 v: v3
- Loading branch information
Matt Fleming
authored and
Paul Mundt
committed
Mar 26, 2010
1 parent
f1fcd13
commit cff8ca6
Showing
305 changed files
with
3,407 additions
and
5,211 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: 42be79e37e264557f12860fa4cc84b4de3685954 | ||
refs/heads/master: 4539282dbc20fe612113c8f267d51a90d46a7f50 |
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
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
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.