Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
17bfa639
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
17bfa639
编写于
11月 21, 2007
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Special layout for SH-5 stat.h and user.h.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
c8eef880
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
69 addition
and
1 deletion
+69
-1
include/asm-sh/stat.h
include/asm-sh/stat.h
+62
-1
include/asm-sh/user.h
include/asm-sh/user.h
+7
-0
未找到文件。
include/asm-sh/stat.h
浏览文件 @
17bfa639
...
...
@@ -15,6 +15,66 @@ struct __old_kernel_stat {
unsigned
long
st_ctime
;
};
#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
struct
stat
{
unsigned
short
st_dev
;
unsigned
short
__pad1
;
unsigned
long
st_ino
;
unsigned
short
st_mode
;
unsigned
short
st_nlink
;
unsigned
short
st_uid
;
unsigned
short
st_gid
;
unsigned
short
st_rdev
;
unsigned
short
__pad2
;
unsigned
long
st_size
;
unsigned
long
st_blksize
;
unsigned
long
st_blocks
;
unsigned
long
st_atime
;
unsigned
long
st_atime_nsec
;
unsigned
long
st_mtime
;
unsigned
long
st_mtime_nsec
;
unsigned
long
st_ctime
;
unsigned
long
st_ctime_nsec
;
unsigned
long
__unused4
;
unsigned
long
__unused5
;
};
/* This matches struct stat64 in glibc2.1, hence the absolutely
* insane amounts of padding around dev_t's.
*/
struct
stat64
{
unsigned
short
st_dev
;
unsigned
char
__pad0
[
10
];
unsigned
long
st_ino
;
unsigned
int
st_mode
;
unsigned
int
st_nlink
;
unsigned
long
st_uid
;
unsigned
long
st_gid
;
unsigned
short
st_rdev
;
unsigned
char
__pad3
[
10
];
long
long
st_size
;
unsigned
long
st_blksize
;
unsigned
long
st_blocks
;
/* Number 512-byte blocks allocated. */
unsigned
long
__pad4
;
/* future possible st_blocks high bits */
unsigned
long
st_atime
;
unsigned
long
st_atime_nsec
;
unsigned
long
st_mtime
;
unsigned
long
st_mtime_nsec
;
unsigned
long
st_ctime
;
unsigned
long
st_ctime_nsec
;
/* will be high 32 bits of ctime someday */
unsigned
long
__unused1
;
unsigned
long
__unused2
;
};
#else
struct
stat
{
unsigned
long
st_dev
;
unsigned
long
st_ino
;
...
...
@@ -67,11 +127,12 @@ struct stat64 {
unsigned
long
st_mtime_nsec
;
unsigned
long
st_ctime
;
unsigned
long
st_ctime_nsec
;
unsigned
long
st_ctime_nsec
;
unsigned
long
long
st_ino
;
};
#define STAT_HAVE_NSEC 1
#endif
#endif
/* __ASM_SH_STAT_H */
include/asm-sh/user.h
浏览文件 @
17bfa639
...
...
@@ -27,12 +27,19 @@
* to write an integer number of pages.
*/
#if defined(__SH5__) || defined(CONFIG_CPU_SH5)
struct
user
fpu_struct
{
unsigned
long
fp_regs
[
32
];
unsigned
int
fpscr
;
};
#else
struct
user_fpu_struct
{
unsigned
long
fp_regs
[
16
];
unsigned
long
xfp_regs
[
16
];
unsigned
long
fpscr
;
unsigned
long
fpul
;
};
#endif
struct
user
{
struct
pt_regs
regs
;
/* entire machine state */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录