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
dabc5efe
Commit
dabc5efe
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.1.37pre6
parent
379e85a6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
18 deletions
+17
-18
arch/i386/kernel/traps.c
arch/i386/kernel/traps.c
+4
-4
include/asm-i386/spinlock.h
include/asm-i386/spinlock.h
+6
-10
kernel/printk.c
kernel/printk.c
+2
-0
net/core/sysctl_net_core.c
net/core/sysctl_net_core.c
+5
-4
No files found.
arch/i386/kernel/traps.c
View file @
dabc5efe
...
...
@@ -122,7 +122,7 @@ static void show_registers(struct pt_regs *regs)
unsigned
long
esp
;
unsigned
short
ss
;
unsigned
long
*
stack
,
addr
,
module_start
,
module_end
;
extern
char
start_kernel
,
_etext
;
extern
char
_stext
,
_etext
;
esp
=
(
unsigned
long
)
&
regs
->
esp
;
ss
=
KERNEL_DS
;
...
...
@@ -130,8 +130,8 @@ static void show_registers(struct pt_regs *regs)
esp
=
regs
->
esp
;
ss
=
regs
->
xss
&
0xffff
;
}
printk
(
"CPU: %d
\n
"
,
smp_processor_id
());
printk
(
"EIP: %04x:[<%08lx>]
\n
EFLAGS: %08lx
\n
"
,
0xffff
&
regs
->
xcs
,
regs
->
eip
,
regs
->
eflags
);
printk
(
"CPU: %d
\n
EIP: %04x:[<%08lx>]
\n
EFLAGS: %08lx
\n
"
,
smp_processor_id
(),
0xffff
&
regs
->
xcs
,
regs
->
eip
,
regs
->
eflags
);
printk
(
"eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx
\n
"
,
regs
->
eax
,
regs
->
ebx
,
regs
->
ecx
,
regs
->
edx
);
printk
(
"esi: %08lx edi: %08lx ebp: %08lx esp: %08lx
\n
"
,
...
...
@@ -165,7 +165,7 @@ static void show_registers(struct pt_regs *regs)
* down the cause of the crash will be able to figure
* out the call path that was taken.
*/
if
(((
addr
>=
(
unsigned
long
)
&
start_kernel
)
&&
if
(((
addr
>=
(
unsigned
long
)
&
_stext
)
&&
(
addr
<=
(
unsigned
long
)
&
_etext
))
||
((
addr
>=
module_start
)
&&
(
addr
<=
module_end
)))
{
if
(
i
&&
((
i
%
8
)
==
0
))
...
...
include/asm-i386/spinlock.h
View file @
dabc5efe
...
...
@@ -149,18 +149,14 @@ typedef struct {
#define write_lock(rw) \
asm volatile("\n1:\t" \
"lock ; btsl $31,%0\n\t" \
"jc 3f\n\t" \
"testl $0x7fffffff,%0\n\t" \
"jne 4f\n" \
"2:\n" \
"jc 4f\n" \
"2:\ttestl $0x7fffffff,%0\n\t" \
"jne 3f\n" \
".section .text.lock,\"ax\"\n" \
"3:\ttestl $-1,%0\n\t" \
"js 3b\n\t" \
"lock ; btsl $31,%0\n\t" \
"jc 3b\n" \
"4:\ttestl $0x7fffffff,%0\n\t" \
"3:\tlock ; btrl $31,%0\n" \
"4:\tcmp $0,%0\n\t" \
"jne 4b\n\t" \
"jmp
2
b\n" \
"jmp
1
b\n" \
".previous" \
:"=m" (__dummy_lock(&(rw)->lock)))
...
...
kernel/printk.c
View file @
dabc5efe
...
...
@@ -231,7 +231,9 @@ asmlinkage int printk(const char *fmt, ...)
msg_level
=
-
1
;
}
__restore_flags
(
flags
);
#if 0 /* debugging - avoid this if we're deadlocked */
wake_up_interruptible(&log_wait);
#endif
return
i
;
}
...
...
net/core/sysctl_net_core.c
View file @
dabc5efe
...
...
@@ -16,14 +16,15 @@ extern __u32 sysctl_rmem_default;
ctl_table
core_table
[]
=
{
{
NET_CORE_WMEM_MAX
,
"wmem_max"
,
&
sysctl_wmem_max
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
&
proc_dointvec
},
{
NET_CORE_RMEM_MAX
,
"rmem_max"
,
&
sysctl_rmem_max
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
&
proc_dointvec
},
{
NET_CORE_WMEM_DEFAULT
,
"wmem_default"
,
&
sysctl_wmem_default
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
&
proc_dointvec
},
{
NET_CORE_RMEM_DEFAULT
,
"rmem_default"
,
&
sysctl_rmem_default
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
&
proc_dointvec
},
{
0
}
};
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