Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f62fb4cf
Commit
f62fb4cf
authored
Nov 21, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added arch/um/kernel/skas/util/*, which I missed somehow.
parent
46228a2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
arch/um/kernel/skas/util/Makefile
arch/um/kernel/skas/util/Makefile
+10
-0
arch/um/kernel/skas/util/mk_ptregs.c
arch/um/kernel/skas/util/mk_ptregs.c
+50
-0
No files found.
arch/um/kernel/skas/util/Makefile
0 → 100644
View file @
f62fb4cf
all
:
mk_ptregs
mk_ptregs
:
mk_ptregs.o
$(CC)
-o
mk_ptregs mk_ptregs.o
mk_ptregs.o
:
mk_ptregs.c
$(CC)
-c
$<
clean
:
$(RM)
-f
mk_ptregs
*
.o
*
~
arch/um/kernel/skas/util/mk_ptregs.c
0 → 100644
View file @
f62fb4cf
#include <asm/ptrace.h>
#include <asm/user.h>
#define PRINT_REG(name, val) printf("#define HOST_%s %d\n", (name), (val))
int
main
(
int
argc
,
char
**
argv
)
{
printf
(
"/* Automatically generated by "
"arch/um/kernel/skas/util/mk_ptregs */
\n
"
);
printf
(
"
\n
"
);
printf
(
"#ifndef __SKAS_PT_REGS_
\n
"
);
printf
(
"#define __SKAS_PT_REGS_
\n
"
);
printf
(
"
\n
"
);
printf
(
"#define HOST_FRAME_SIZE %d
\n
"
,
FRAME_SIZE
);
printf
(
"#define HOST_FP_SIZE %d
\n
"
,
sizeof
(
struct
user_i387_struct
)
/
sizeof
(
unsigned
long
));
printf
(
"#define HOST_XFP_SIZE %d
\n
"
,
sizeof
(
struct
user_fxsr_struct
)
/
sizeof
(
unsigned
long
));
PRINT_REG
(
"IP"
,
EIP
);
PRINT_REG
(
"SP"
,
UESP
);
PRINT_REG
(
"EFLAGS"
,
EFL
);
PRINT_REG
(
"EAX"
,
EAX
);
PRINT_REG
(
"EBX"
,
EBX
);
PRINT_REG
(
"ECX"
,
ECX
);
PRINT_REG
(
"EDX"
,
EDX
);
PRINT_REG
(
"ESI"
,
ESI
);
PRINT_REG
(
"EDI"
,
EDI
);
PRINT_REG
(
"EBP"
,
EBP
);
PRINT_REG
(
"CS"
,
CS
);
PRINT_REG
(
"SS"
,
SS
);
PRINT_REG
(
"DS"
,
DS
);
PRINT_REG
(
"FS"
,
FS
);
PRINT_REG
(
"ES"
,
ES
);
PRINT_REG
(
"GS"
,
GS
);
printf
(
"
\n
"
);
printf
(
"#endif
\n
"
);
return
(
0
);
}
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Emacs will notice this stuff at the end of the file and automatically
* adjust the settings for this buffer only. This must remain at the end
* of the file.
* ---------------------------------------------------------------------------
* Local variables:
* c-file-style: "linux"
* End:
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment