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
b764939b
Commit
b764939b
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 1.0pre1
parent
a6b61aab
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
218 additions
and
218 deletions
+218
-218
Makefile
Makefile
+3
-3
drivers/block/Makefile
drivers/block/Makefile
+0
-3
drivers/block/README.sbpcd
drivers/block/README.sbpcd
+7
-17
drivers/block/mcd.c
drivers/block/mcd.c
+4
-1
drivers/block/sbpcd.c
drivers/block/sbpcd.c
+56
-58
drivers/char/keyboard.c
drivers/char/keyboard.c
+18
-0
drivers/net/3c501.c
drivers/net/3c501.c
+1
-4
drivers/net/3c503.c
drivers/net/3c503.c
+2
-16
drivers/net/3c507.c
drivers/net/3c507.c
+1
-1
drivers/net/at1700.c
drivers/net/at1700.c
+5
-10
drivers/net/depca.c
drivers/net/depca.c
+5
-5
drivers/net/eexpress.c
drivers/net/eexpress.c
+4
-4
drivers/net/hp.c
drivers/net/hp.c
+12
-21
drivers/net/lance.c
drivers/net/lance.c
+6
-6
drivers/net/ne.c
drivers/net/ne.c
+2
-3
drivers/net/slip.c
drivers/net/slip.c
+22
-23
fs/exec.c
fs/exec.c
+1
-0
include/linux/keyboard.h
include/linux/keyboard.h
+8
-0
include/linux/msg.h
include/linux/msg.h
+1
-1
include/linux/sbpcd.h
include/linux/sbpcd.h
+3
-10
include/linux/sched.h
include/linux/sched.h
+2
-1
include/linux/timex.h
include/linux/timex.h
+0
-2
kernel/fork.c
kernel/fork.c
+1
-0
kernel/sys.c
kernel/sys.c
+33
-16
net/inet/ip.c
net/inet/ip.c
+1
-1
net/inet/tcp.c
net/inet/tcp.c
+7
-6
net/unix/proc.c
net/unix/proc.c
+2
-1
net/unix/sock.c
net/unix/sock.c
+7
-5
net/unix/unix.h
net/unix/unix.h
+4
-0
No files found.
Makefile
View file @
b764939b
VERSION
=
0.99
VERSION
=
pre-1
PATCHLEVEL
=
15
PATCHLEVEL
=
0
ALPHA
=
j
ALPHA
=
all
:
Version zImage
all
:
Version zImage
...
...
drivers/block/Makefile
View file @
b764939b
...
@@ -37,9 +37,6 @@ endif
...
@@ -37,9 +37,6 @@ endif
ifdef
CONFIG_SBPCD
ifdef
CONFIG_SBPCD
OBJS
:=
$(OBJS)
sbpcd.o
OBJS
:=
$(OBJS)
sbpcd.o
SRCS
:=
$(SRCS)
sbpcd.c
SRCS
:=
$(SRCS)
sbpcd.c
ifdef
PATCHLEVEL
CFLAGS
:=
$(CFLAGS)
-DPATCHLEVEL
=
$(PATCHLEVEL)
endif
endif
#CONFIG_SBPCD
endif
#CONFIG_SBPCD
ifdef
CONFIG_BLK_DEV_HD
ifdef
CONFIG_BLK_DEV_HD
...
...
drivers/block/README.sbpcd
View file @
b764939b
This is release 1.
2
of the SoundBlaster Pro (Matsushita, Kotobuki,
This is release 1.
3
of the SoundBlaster Pro (Matsushita, Kotobuki,
Panasonic, CreativeLabs, Aztech) CD-ROM driver for Linux.
Panasonic, CreativeLabs, Aztech) CD-ROM driver for Linux.
The driver is able to drive the whole family of IDE-style
The driver is able to drive the whole family of IDE-style
...
@@ -6,10 +6,10 @@ Matsushita/Kotobuki/Panasonic drives (the "double speed" versions
...
@@ -6,10 +6,10 @@ Matsushita/Kotobuki/Panasonic drives (the "double speed" versions
like CR-562 and CR-563, too), and it will work with the soundcard
like CR-562 and CR-563, too), and it will work with the soundcard
interfaces (SB Pro, SB 16, Galaxy, SoundFX, ...) and/or with
interfaces (SB Pro, SB 16, Galaxy, SoundFX, ...) and/or with
the "no-sound" cards (Panasonic CI-101P, LaserMate, Aztech, ...).
the "no-sound" cards (Panasonic CI-101P, LaserMate, Aztech, ...).
The interface type has to get configured
, because the behavior
The interface type has to get configured
in /usr/include/linux/sbpcd.h,
is different.
because the behavior
is different.
The driver respects different drive firmware releases - my drive
The driver respects different drive firmware releases - my
old
drive
is a 2.11, but it should work with "old" drives <2.01 ... >3.00
is a 2.11, but it should work with "old" drives <2.01 ... >3.00
and with "new" drives (which count the releases around 0.75 or
and with "new" drives (which count the releases around 0.75 or
1.00).
1.00).
...
@@ -23,20 +23,14 @@ Each drive has to get a unique minor number (0...3), corresponding
...
@@ -23,20 +23,14 @@ Each drive has to get a unique minor number (0...3), corresponding
to it's drive ID. The drive IDs may be selected freely from 0 to 3 -
to it's drive ID. The drive IDs may be selected freely from 0 to 3 -
they must not be in consecutive order.
they must not be in consecutive order.
If this driver doesn't work with your equipment, mail me a
description, please.
The driver supports reading of data from the CD and playing of
The driver supports reading of data from the CD and playing of
audio tracks. The audio part should run with WorkMan, xcdplayer,
audio tracks. The audio part should run with WorkMan, xcdplayer,
with the "non-X11" products CDplayer and WorkBone - tell me if
with the "non-X11" products CDplayer and WorkBone - tell me if
it is not compatible with other software.
it is not compatible with other software.
MultiSession is supported, "ManySession" (see below) alternatively.
MultiSession is supported, "ManySession" (see below) alternatively.
Photo CDs should work, too. At ftp.gwdg.de:/pub/linux/hpcdtoppm
Photo CDs work, too. At ftp.gwdg.de:/pub/linux/hpcdtoppm/ is a package
is a package to convert photo CD image files.
to convert photo CD image files.
I did not have a chance to play with XA or mixed mode CDs yet.
Send one over, if you would like sbpcd to support that.
The transfer rate will reach 150 kB/sec with standard drives and
The transfer rate will reach 150 kB/sec with standard drives and
the full 300 kB/sec with double-speed drives.
the full 300 kB/sec with double-speed drives.
...
@@ -127,7 +121,7 @@ If you would like the support of reading "in-between" sessions,
...
@@ -127,7 +121,7 @@ If you would like the support of reading "in-between" sessions,
drop me a mail and some food for the soul. :-)
drop me a mail and some food for the soul. :-)
Those "many-session" CDs can get made by CDROM writers like
Those "many-session" CDs can get made by CDROM writers like
Philips CDD 521.
Philips CDD 521.
With this feature enabled
, it is impossible to read true
If you enable this feature
, it is impossible to read true
multisession CDs.
multisession CDs.
...
@@ -194,10 +188,6 @@ Known problems:
...
@@ -194,10 +188,6 @@ Known problems:
Currently, the detection of disk change or removal does not
Currently, the detection of disk change or removal does not
work as good as it should.
work as good as it should.
Further, I do not know if this driver can live together with a
SCSI CD-ROM driver and/or device, but I hope so.
Bug reports, comments, wishes, donations (technical information
Bug reports, comments, wishes, donations (technical information
is a donation, too :-) etc. to
is a donation, too :-) etc. to
...
...
drivers/block/mcd.c
View file @
b764939b
...
@@ -852,7 +852,10 @@ mcd_init(unsigned long mem_start, unsigned long mem_end)
...
@@ -852,7 +852,10 @@ mcd_init(unsigned long mem_start, unsigned long mem_end)
mcd_port
);
mcd_port
);
return
mem_start
;
return
mem_start
;
}
}
if
(
result
[
0
]
==
result
[
1
]
&&
result
[
1
]
==
result
[
2
])
return
mem_start
;
printk
(
"mcd: Mitsumi version : %02X %c %x
\n
"
,
printk
(
"mcd: Mitsumi version : %02X %c %x
\n
"
,
result
[
0
],
result
[
1
],
result
[
2
]);
result
[
0
],
result
[
1
],
result
[
2
]);
...
...
drivers/block/sbpcd.c
View file @
b764939b
This diff is collapsed.
Click to expand it.
drivers/char/keyboard.c
View file @
b764939b
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
#define SIZE(x) (sizeof(x)/sizeof((x)[0]))
#define SIZE(x) (sizeof(x)/sizeof((x)[0]))
#define KBD_REPORT_ERR
#define KBD_REPORT_UNKN
#ifndef KBD_DEFMODE
#ifndef KBD_DEFMODE
#define KBD_DEFMODE ((1 << VC_REPEAT) | (1 << VC_META))
#define KBD_DEFMODE ((1 << VC_REPEAT) | (1 << VC_META))
#endif
#endif
...
@@ -209,6 +212,17 @@ static void keyboard_interrupt(int int_pt_regs)
...
@@ -209,6 +212,17 @@ static void keyboard_interrupt(int int_pt_regs)
}
else
if
(
scancode
==
0xfe
)
{
}
else
if
(
scancode
==
0xfe
)
{
resend
=
1
;
resend
=
1
;
goto
end_kbd_intr
;
goto
end_kbd_intr
;
}
else
if
(
scancode
==
0
)
{
#ifdef KBD_REPORT_ERR
printk
(
"keyboard buffer overflow
\n
"
);
#endif
goto
end_kbd_intr
;
}
else
if
(
scancode
==
0xff
)
{
#ifdef KBD_REPORT_ERR
printk
(
"keyboard error
\n
"
);
#endif
prev_scancode
=
0
;
goto
end_kbd_intr
;
}
}
tty
=
TTY_TABLE
(
0
);
tty
=
TTY_TABLE
(
0
);
kbd
=
kbd_table
+
fg_console
;
kbd
=
kbd_table
+
fg_console
;
...
@@ -267,13 +281,17 @@ static void keyboard_interrupt(int int_pt_regs)
...
@@ -267,13 +281,17 @@ static void keyboard_interrupt(int int_pt_regs)
if
(
e0_keys
[
scancode
])
if
(
e0_keys
[
scancode
])
scancode
=
e0_keys
[
scancode
];
scancode
=
e0_keys
[
scancode
];
else
if
(
!
raw_mode
)
{
else
if
(
!
raw_mode
)
{
#ifdef KBD_REPORT_UNKN
printk
(
"keyboard: unknown scancode e0 %02x
\n
"
,
scancode
);
printk
(
"keyboard: unknown scancode e0 %02x
\n
"
,
scancode
);
#endif
goto
end_kbd_intr
;
goto
end_kbd_intr
;
}
}
}
}
}
else
if
(
scancode
>=
E0_BASE
&&
!
raw_mode
)
{
}
else
if
(
scancode
>=
E0_BASE
&&
!
raw_mode
)
{
#ifdef KBD_REPORT_UNKN
printk
(
"keyboard: scancode (%02x) not in range 00 - %2x
\n
"
,
printk
(
"keyboard: scancode (%02x) not in range 00 - %2x
\n
"
,
scancode
,
E0_BASE
-
1
);
scancode
,
E0_BASE
-
1
);
#endif
goto
end_kbd_intr
;
goto
end_kbd_intr
;
}
}
...
...
drivers/net/3c501.c
View file @
b764939b
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
*/
*/
static
char
*
version
=
static
char
*
version
=
"3c501.c:
v13.13 1993
Donald Becker (becker@super.org).
\n
"
;
"3c501.c:
3/3/94
Donald Becker (becker@super.org).
\n
"
;
/*
/*
Braindamage remaining:
Braindamage remaining:
...
@@ -302,9 +302,6 @@ el_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -302,9 +302,6 @@ el_start_xmit(struct sk_buff *skb, struct device *dev)
if
(
skb
->
len
<=
0
)
if
(
skb
->
len
<=
0
)
return
0
;
return
0
;
if
(
el_debug
>
2
)
printk
(
"%s: el_start_xmit(%d)..."
,
dev
->
name
,
skb
->
len
);
/* Avoid timer-based retransmission conflicts. */
/* Avoid timer-based retransmission conflicts. */
if
(
set_bit
(
0
,
(
void
*
)
&
dev
->
tbusy
)
!=
0
)
if
(
set_bit
(
0
,
(
void
*
)
&
dev
->
tbusy
)
!=
0
)
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
...
...
drivers/net/3c503.c
View file @
b764939b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
*/
*/
static
char
*
version
=
static
char
*
version
=
"3c503.c:v0.99.1
3 8/30
/93 Donald Becker (becker@super.org)
\n
"
;
"3c503.c:v0.99.1
5k 3/3
/93 Donald Becker (becker@super.org)
\n
"
;
#include <linux/config.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -200,9 +200,6 @@ el2probe1(int ioaddr, struct device *dev)
...
@@ -200,9 +200,6 @@ el2probe1(int ioaddr, struct device *dev)
dev
->
mem_end
=
dev
->
rmem_end
=
dev
->
mem_start
+
EL2_MEMSIZE
;
dev
->
mem_end
=
dev
->
rmem_end
=
dev
->
mem_start
+
EL2_MEMSIZE
;
dev
->
rmem_start
=
TX_PAGES
*
256
+
dev
->
mem_start
;
dev
->
rmem_start
=
TX_PAGES
*
256
+
dev
->
mem_start
;
}
}
if
(
ei_debug
>
2
)
printk
(
"
\n
3c503: memory params start=%#5x rstart=%#5x end=%#5x rend=%#5x.
\n
"
,
dev
->
mem_start
,
dev
->
rmem_start
,
dev
->
mem_end
,
dev
->
rmem_end
);
/* Finish setting the board's parameters. */
/* Finish setting the board's parameters. */
ei_status
.
name
=
"3C503"
;
ei_status
.
name
=
"3C503"
;
...
@@ -228,7 +225,7 @@ el2probe1(int ioaddr, struct device *dev)
...
@@ -228,7 +225,7 @@ el2probe1(int ioaddr, struct device *dev)
dev
->
stop
=
&
el2_close
;
dev
->
stop
=
&
el2_close
;
if
(
dev
->
mem_start
)
if
(
dev
->
mem_start
)
printk
(
"
\n
%s: %s with shared memory at %#6
x-%#6
x,
\n
"
,
printk
(
"
\n
%s: %s with shared memory at %#6
lx-%#6l
x,
\n
"
,
dev
->
name
,
ei_status
.
name
,
dev
->
mem_start
,
dev
->
mem_end
-
1
);
dev
->
name
,
ei_status
.
name
,
dev
->
mem_start
,
dev
->
mem_end
-
1
);
else
else
printk
(
"
\n
%s: %s using programmed I/O (REJUMPER for SHARED MEMORY).
\n
"
,
printk
(
"
\n
%s: %s using programmed I/O (REJUMPER for SHARED MEMORY).
\n
"
,
...
@@ -352,9 +349,6 @@ el2_block_output(struct device *dev, int count,
...
@@ -352,9 +349,6 @@ el2_block_output(struct device *dev, int count,
if
(
ei_debug
>
2
&&
memcmp
(
dest_addr
,
buf
,
count
))
if
(
ei_debug
>
2
&&
memcmp
(
dest_addr
,
buf
,
count
))
printk
(
"%s: 3c503 send_packet() bad memory copy @ %#5x.
\n
"
,
printk
(
"%s: 3c503 send_packet() bad memory copy @ %#5x.
\n
"
,
dev
->
name
,
(
int
)
dest_addr
);
dev
->
name
,
(
int
)
dest_addr
);
else
if
(
ei_debug
>
4
)
printk
(
"%s: 3c503 send_packet() good memory copy @ %#5x.
\n
"
,
dev
->
name
,
(
int
)
dest_addr
);
return
;
return
;
}
}
/* No shared memory, put the packet out the slow way. */
/* No shared memory, put the packet out the slow way. */
...
@@ -395,19 +389,11 @@ el2_block_input(struct device *dev, int count, char *buf, int ring_offset)
...
@@ -395,19 +389,11 @@ el2_block_input(struct device *dev, int count, char *buf, int ring_offset)
if
(
dev
->
mem_start
+
ring_offset
+
count
>
end_of_ring
)
{
if
(
dev
->
mem_start
+
ring_offset
+
count
>
end_of_ring
)
{
/* We must wrap the input move. */
/* We must wrap the input move. */
int
semi_count
=
end_of_ring
-
(
dev
->
mem_start
+
ring_offset
);
int
semi_count
=
end_of_ring
-
(
dev
->
mem_start
+
ring_offset
);
if
(
ei_debug
>
4
)
printk
(
"%s: 3c503 block_input() @ %#5x+%x=%5x.
\n
"
,
dev
->
name
,
dev
->
mem_start
,
ring_offset
,
dev
->
mem_start
+
ring_offset
);
memcpy
(
buf
,
(
char
*
)
dev
->
mem_start
+
ring_offset
,
semi_count
);
memcpy
(
buf
,
(
char
*
)
dev
->
mem_start
+
ring_offset
,
semi_count
);
count
-=
semi_count
;
count
-=
semi_count
;
memcpy
(
buf
+
semi_count
,
(
char
*
)
dev
->
rmem_start
,
count
);
memcpy
(
buf
+
semi_count
,
(
char
*
)
dev
->
rmem_start
,
count
);
return
dev
->
rmem_start
+
count
;
return
dev
->
rmem_start
+
count
;
}
}
if
(
ei_debug
>
4
)
printk
(
"%s: 3c503 block_input() @ %#5x+%x=%5x.
\n
"
,
dev
->
name
,
dev
->
mem_start
,
ring_offset
,
dev
->
mem_start
+
ring_offset
);
memcpy
(
buf
,
(
char
*
)
dev
->
mem_start
+
ring_offset
,
count
);
memcpy
(
buf
,
(
char
*
)
dev
->
mem_start
+
ring_offset
,
count
);
return
ring_offset
+
count
;
return
ring_offset
+
count
;
}
}
...
...
drivers/net/3c507.c
View file @
b764939b
...
@@ -394,7 +394,7 @@ int el16_probe1(struct device *dev, short ioaddr)
...
@@ -394,7 +394,7 @@ int el16_probe1(struct device *dev, short ioaddr)
dev
->
if_port
=
(
inb
(
ioaddr
+
ROM_CONFIG
)
&
0x80
)
?
1
:
0
;
dev
->
if_port
=
(
inb
(
ioaddr
+
ROM_CONFIG
)
&
0x80
)
?
1
:
0
;
dev
->
irq
=
inb
(
ioaddr
+
IRQ_CONFIG
)
&
0x0f
;
dev
->
irq
=
inb
(
ioaddr
+
IRQ_CONFIG
)
&
0x0f
;
printk
(
", IRQ %d, %sternal xcvr, memory %#
x-%#
x.
\n
"
,
dev
->
irq
,
printk
(
", IRQ %d, %sternal xcvr, memory %#
lx-%#l
x.
\n
"
,
dev
->
irq
,
dev
->
if_port
?
"ex"
:
"in"
,
dev
->
mem_start
,
dev
->
mem_end
-
1
);
dev
->
if_port
?
"ex"
:
"in"
,
dev
->
mem_start
,
dev
->
mem_end
-
1
);
if
(
net_debug
)
if
(
net_debug
)
...
...
drivers/net/at1700.c
View file @
b764939b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*/
*/
static
char
*
version
=
static
char
*
version
=
"at1700.c:v0.0
5 2/9
/94 Donald Becker (becker@super.org)
\n
"
;
"at1700.c:v0.0
6 3/3
/94 Donald Becker (becker@super.org)
\n
"
;
#include <linux/config.h>
#include <linux/config.h>
...
@@ -412,7 +412,7 @@ net_send_packet(struct sk_buff *skb, struct device *dev)
...
@@ -412,7 +412,7 @@ net_send_packet(struct sk_buff *skb, struct device *dev)
/* For ethernet, fill in the header. This should really be done by a
/* For ethernet, fill in the header. This should really be done by a
higher level, rather than duplicated for each ethernet adaptor. */
higher level, rather than duplicated for each ethernet adaptor. */
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
+
1
,
dev
))
{
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
{
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
arp_queue
(
skb
);
arp_queue
(
skb
);
return
0
;
return
0
;
...
@@ -425,11 +425,7 @@ net_send_packet(struct sk_buff *skb, struct device *dev)
...
@@ -425,11 +425,7 @@ net_send_packet(struct sk_buff *skb, struct device *dev)
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
else
{
else
{
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
unsigned
char
*
buf
=
(
void
*
)(
skb
+
1
);
unsigned
char
*
buf
=
skb
->
data
;
if
(
net_debug
>
4
)
printk
(
"%s: Transmitting a packet of length %d.
\n
"
,
dev
->
name
,
skb
->
len
);
/* Turn off the possible Tx interrupts. */
/* Turn off the possible Tx interrupts. */
outb
(
0x00
,
ioaddr
+
TX_INTR
);
outb
(
0x00
,
ioaddr
+
TX_INTR
);
...
@@ -561,14 +557,13 @@ net_rx(struct device *dev)
...
@@ -561,14 +557,13 @@ net_rx(struct device *dev)
skb
->
len
=
pkt_len
;
skb
->
len
=
pkt_len
;
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
/* 'skb+1' points to the start of sk_buff data area. */
insw
(
ioaddr
+
DATAPORT
,
skb
->
data
,
(
pkt_len
+
1
)
>>
1
);
insw
(
ioaddr
+
DATAPORT
,
(
void
*
)(
skb
+
1
),
(
pkt_len
+
1
)
>>
1
);
if
(
net_debug
>
5
)
{
if
(
net_debug
>
5
)
{
int
i
;
int
i
;
printk
(
"%s: Rxed packet of length %d: "
,
dev
->
name
,
pkt_len
);
printk
(
"%s: Rxed packet of length %d: "
,
dev
->
name
,
pkt_len
);
for
(
i
=
0
;
i
<
14
;
i
++
)
for
(
i
=
0
;
i
<
14
;
i
++
)
printk
(
" %02x"
,
((
unsigned
char
*
)(
skb
+
1
))
[
i
]);
printk
(
" %02x"
,
skb
->
data
[
i
]);
printk
(
".
\n
"
);
printk
(
".
\n
"
);
}
}
...
...
drivers/net/depca.c
View file @
b764939b
...
@@ -782,7 +782,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -782,7 +782,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
}
}
/* Fill in the ethernet header. */
/* Fill in the ethernet header. */
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
+
1
,
dev
))
{
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
{
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
arp_queue
(
skb
);
arp_queue
(
skb
);
return
0
;
return
0
;
...
@@ -814,7 +814,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -814,7 +814,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
int
entry
=
lp
->
cur_tx
++
;
int
entry
=
lp
->
cur_tx
++
;
int
len
;
int
len
;
long
skbL
=
skb
->
len
;
long
skbL
=
skb
->
len
;
char
*
p
=
(
char
*
)
(
skb
+
1
)
;
char
*
p
=
(
char
*
)
skb
->
data
;
entry
&=
lp
->
rmask
;
/* Ring around buffer number. */
entry
&=
lp
->
rmask
;
/* Ring around buffer number. */
buf
=
(
unsigned
char
*
)(
lp
->
tx_ring
[
entry
].
base
&
0x00ffffff
);
buf
=
(
unsigned
char
*
)(
lp
->
tx_ring
[
entry
].
base
&
0x00ffffff
);
...
@@ -835,7 +835,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -835,7 +835,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
lp
->
tx_ring
[
entry
].
misc
=
0x0000
;
lp
->
tx_ring
[
entry
].
misc
=
0x0000
;
/* copy the data from the socket buffer to the net memory */
/* copy the data from the socket buffer to the net memory */
memcpy
((
unsigned
char
*
)(
buf
),
(
unsigned
char
*
)(
skb
+
1
)
,
len
);
memcpy
((
unsigned
char
*
)(
buf
),
skb
->
data
,
len
);
/* Hand over buffer ownership to the LANCE */
/* Hand over buffer ownership to the LANCE */
if
(
skbL
<=
0
)
lp
->
tx_ring
[
entry
].
base
|=
(
T_ENP
);
if
(
skbL
<=
0
)
lp
->
tx_ring
[
entry
].
base
|=
(
T_ENP
);
...
@@ -859,7 +859,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -859,7 +859,7 @@ depca_start_xmit(struct sk_buff *skb, struct device *dev)
dev
->
tbusy
=
0
;
dev
->
tbusy
=
0
;
/* Copy ethernet header to the new buffer */
/* Copy ethernet header to the new buffer */
memcpy
((
unsigned
char
*
)
buf
,
(
unsigned
char
*
)(
skb
+
1
)
,
PKT_HDR_LEN
);
memcpy
((
unsigned
char
*
)
buf
,
skb
->
data
,
PKT_HDR_LEN
);
/* Determine length of data buffer */
/* Determine length of data buffer */
len
=
((
skbL
>
DAT_SZ
)
?
DAT_SZ
:
skbL
);
/* skbL too long */
len
=
((
skbL
>
DAT_SZ
)
?
DAT_SZ
:
skbL
);
/* skbL too long */
...
@@ -998,7 +998,7 @@ depca_rx(struct device *dev)
...
@@ -998,7 +998,7 @@ depca_rx(struct device *dev)
skb
->
mem_addr
=
skb
;
skb
->
mem_addr
=
skb
;
skb
->
len
=
pkt_len
;
skb
->
len
=
pkt_len
;
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
memcpy
(
(
unsigned
char
*
)(
skb
+
1
)
,
memcpy
(
skb
->
data
,
(
unsigned
char
*
)(
lp
->
rx_ring
[
entry
].
base
&
0x00ffffff
),
(
unsigned
char
*
)(
lp
->
rx_ring
[
entry
].
base
&
0x00ffffff
),
pkt_len
);
pkt_len
);
/*
/*
...
...
drivers/net/eexpress.c
View file @
b764939b
...
@@ -278,7 +278,7 @@ static short init_words[] = {
...
@@ -278,7 +278,7 @@ static short init_words[] = {
#endif
#endif
/* 0x0056: A continuous transmit command, only here for testing. */
/* 0x0056: A continuous transmit command, only here for testing. */
0
,
CmdTx
,
DUMP_DATA
,
DUMP_DATA
+
8
,
0x8
0
3ff
,
-
1
,
DUMP_DATA
,
0
,
0
,
CmdTx
,
DUMP_DATA
,
DUMP_DATA
+
8
,
0x83ff
,
-
1
,
DUMP_DATA
,
0
,
};
};
/* Index to functions, as function prototypes. */
/* Index to functions, as function prototypes. */
...
@@ -513,7 +513,7 @@ eexp_send_packet(struct sk_buff *skb, struct device *dev)
...
@@ -513,7 +513,7 @@ eexp_send_packet(struct sk_buff *skb, struct device *dev)
/* For ethernet, fill in the header. This should really be done by a
/* For ethernet, fill in the header. This should really be done by a
higher level, rather than duplicated for each ethernet adaptor. */
higher level, rather than duplicated for each ethernet adaptor. */
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
+
1
,
dev
))
{
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
{
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
arp_queue
(
skb
);
arp_queue
(
skb
);
return
0
;
return
0
;
...
@@ -525,7 +525,7 @@ eexp_send_packet(struct sk_buff *skb, struct device *dev)
...
@@ -525,7 +525,7 @@ eexp_send_packet(struct sk_buff *skb, struct device *dev)
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
printk
(
"%s: Transmitter access conflict.
\n
"
,
dev
->
name
);
else
{
else
{
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
short
length
=
ETH_ZLEN
<
skb
->
len
?
skb
->
len
:
ETH_ZLEN
;
unsigned
char
*
buf
=
(
void
*
)(
skb
+
1
)
;
unsigned
char
*
buf
=
skb
->
data
;
/* Disable the 82586's input to the interrupt line. */
/* Disable the 82586's input to the interrupt line. */
outb
(
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
outb
(
irqrmap
[
dev
->
irq
],
ioaddr
+
SET_IRQ
);
...
@@ -982,7 +982,7 @@ eexp_rx(struct device *dev)
...
@@ -982,7 +982,7 @@ eexp_rx(struct device *dev)
outw
(
data_buffer_addr
+
10
,
ioaddr
+
READ_PTR
);
outw
(
data_buffer_addr
+
10
,
ioaddr
+
READ_PTR
);
insw
(
ioaddr
,
(
void
*
)(
skb
+
1
)
,
(
pkt_len
+
1
)
>>
1
);
insw
(
ioaddr
,
skb
->
data
,
(
pkt_len
+
1
)
>>
1
);
#ifdef HAVE_NETIF_RX
#ifdef HAVE_NETIF_RX
netif_rx
(
skb
);
netif_rx
(
skb
);
...
...
drivers/net/hp.c
View file @
b764939b
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*/
*/
static
char
*
version
=
static
char
*
version
=
"hp.c:v0.99.15
c 2/11
/94 Donald Becker (becker@super.org)
\n
"
;
"hp.c:v0.99.15
k 3/3
/94 Donald Becker (becker@super.org)
\n
"
;
#include <linux/config.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -177,31 +177,22 @@ hp_reset_8390(struct device *dev)
...
@@ -177,31 +177,22 @@ hp_reset_8390(struct device *dev)
{
{
int
hp_base
=
dev
->
base_addr
-
NIC_OFFSET
;
int
hp_base
=
dev
->
base_addr
-
NIC_OFFSET
;
int
saved_config
=
inb_p
(
hp_base
+
HP_CONFIGURE
);
int
saved_config
=
inb_p
(
hp_base
+
HP_CONFIGURE
);
int
reset_start_time
=
jiffies
;
if
(
ei_debug
>
1
)
printk
(
"resetting the 8390 time=%d..."
,
jiffies
);
if
(
ei_debug
>
1
)
printk
(
"resetting the 8390 time=%
l
d..."
,
jiffies
);
outb_p
(
0x00
,
hp_base
+
HP_CONFIGURE
);
outb_p
(
0x00
,
hp_base
+
HP_CONFIGURE
);
ei_status
.
txing
=
0
;
ei_status
.
txing
=
0
;
/* Pause just a few cycles for the hardware reset to take place. */
sti
();
SLOW_DOWN_IO
;
/* We shouldn't use the boguscount for timing, but this hasn't been
SLOW_DOWN_IO
;
checked yet, and you could hang your machine if jiffies break... */
{
int
boguscount
=
150000
;
while
(
jiffies
-
reset_start_time
<
2
)
if
(
boguscount
--
<
0
)
{
printk
(
"jiffy failure (t=%d)..."
,
jiffies
);
break
;
}
}
outb_p
(
saved_config
,
hp_base
+
HP_CONFIGURE
);
outb_p
(
saved_config
,
hp_base
+
HP_CONFIGURE
);
while
((
inb_p
(
hp_base
+
NIC_OFFSET
+
EN0_ISR
)
&
ENISR_RESET
)
==
0
)
SLOW_DOWN_IO
;
SLOW_DOWN_IO
;
if
(
jiffies
-
reset_start_time
>
2
)
{
printk
(
"%s: hp_reset_8390() did not complete.
\n
"
,
dev
->
name
);
if
((
inb_p
(
hp_base
+
NIC_OFFSET
+
EN0_ISR
)
&
ENISR_RESET
)
==
0
)
return
;
printk
(
"%s: hp_reset_8390() did not complete.
\n
"
,
dev
->
name
);
}
if
(
ei_debug
>
1
)
printk
(
"8390 reset done (%d)."
,
jiffies
);
if
(
ei_debug
>
1
)
printk
(
"8390 reset done (%ld)."
,
jiffies
);
return
;
}
}
/* Block input and output, similar to the Crynwr packet driver. If you
/* Block input and output, similar to the Crynwr packet driver. If you
...
...
drivers/net/lance.c
View file @
b764939b
...
@@ -512,7 +512,7 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -512,7 +512,7 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
}
}
/* Fill in the ethernet header. */
/* Fill in the ethernet header. */
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
+
1
,
dev
))
{
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
{
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
arp_queue
(
skb
);
arp_queue
(
skb
);
return
0
;
return
0
;
...
@@ -553,11 +553,11 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -553,11 +553,11 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
/* If any part of this buffer is >16M we must copy it to a low-memory
/* If any part of this buffer is >16M we must copy it to a low-memory
buffer. */
buffer. */
if
((
int
)(
skb
+
1
)
+
skb
->
len
>
0x01000000
)
{
if
((
int
)(
skb
->
data
)
+
skb
->
len
>
0x01000000
)
{
if
(
lance_debug
>
5
)
if
(
lance_debug
>
5
)
printk
(
"%s: bouncing a high-memory packet (%#x).
\n
"
,
printk
(
"%s: bouncing a high-memory packet (%#x).
\n
"
,
dev
->
name
,
(
int
)(
skb
+
1
));
dev
->
name
,
(
int
)(
skb
->
data
));
memcpy
(
&
lp
->
tx_bounce_buffs
[
entry
],
skb
+
1
,
skb
->
len
);
memcpy
(
&
lp
->
tx_bounce_buffs
[
entry
],
skb
->
data
,
skb
->
len
);
lp
->
tx_ring
[
entry
].
base
=
lp
->
tx_ring
[
entry
].
base
=
(
int
)(
lp
->
tx_bounce_buffs
+
entry
)
|
0x83000000
;
(
int
)(
lp
->
tx_bounce_buffs
+
entry
)
|
0x83000000
;
if
(
skb
->
free
)
if
(
skb
->
free
)
...
@@ -567,7 +567,7 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -567,7 +567,7 @@ lance_start_xmit(struct sk_buff *skb, struct device *dev)
code that we are still using it. */
code that we are still using it. */
if
(
skb
->
free
==
0
)
if
(
skb
->
free
==
0
)
skb_kept_by_device
(
skb
);
skb_kept_by_device
(
skb
);
lp
->
tx_ring
[
entry
].
base
=
(
int
)(
skb
+
1
)
|
0x83000000
;
lp
->
tx_ring
[
entry
].
base
=
(
int
)(
skb
->
data
)
|
0x83000000
;
}
}
lp
->
cur_tx
++
;
lp
->
cur_tx
++
;
...
@@ -733,7 +733,7 @@ lance_rx(struct device *dev)
...
@@ -733,7 +733,7 @@ lance_rx(struct device *dev)
skb
->
mem_addr
=
skb
;
skb
->
mem_addr
=
skb
;
skb
->
len
=
pkt_len
;
skb
->
len
=
pkt_len
;
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
memcpy
(
(
unsigned
char
*
)
(
skb
+
1
)
,
memcpy
(
skb
->
data
,
(
unsigned
char
*
)(
lp
->
rx_ring
[
entry
].
base
&
0x00ffffff
),
(
unsigned
char
*
)(
lp
->
rx_ring
[
entry
].
base
&
0x00ffffff
),
pkt_len
);
pkt_len
);
#ifdef HAVE_NETIF_RX
#ifdef HAVE_NETIF_RX
...
...
drivers/net/ne.c
View file @
b764939b
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
/* Routines for the NatSemi-based designs (NE[12]000). */
/* Routines for the NatSemi-based designs (NE[12]000). */
static
char
*
version
=
static
char
*
version
=
"ne.c:v0.99-15
b 2/8
/94 Donald Becker (becker@super.org)
\n
"
;
"ne.c:v0.99-15
k 3/3
/94 Donald Becker (becker@super.org)
\n
"
;
#include <linux/config.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -156,7 +156,6 @@ static int neprobe1(int ioaddr, struct device *dev, int verbose)
...
@@ -156,7 +156,6 @@ static int neprobe1(int ioaddr, struct device *dev, int verbose)
if
(
wordlength
==
2
)
{
if
(
wordlength
==
2
)
{
/* We must set the 8390 for word mode. */
/* We must set the 8390 for word mode. */
int
tmp
;
outb_p
(
0x49
,
ioaddr
+
EN0_DCFG
);
outb_p
(
0x49
,
ioaddr
+
EN0_DCFG
);
/* We used to reset the ethercard here, but it doesn't seem
/* We used to reset the ethercard here, but it doesn't seem
to be necessary. */
to be necessary. */
...
@@ -265,7 +264,7 @@ ne_reset_8390(struct device *dev)
...
@@ -265,7 +264,7 @@ ne_reset_8390(struct device *dev)
int
tmp
=
inb_p
(
NE_BASE
+
NE_RESET
);
int
tmp
=
inb_p
(
NE_BASE
+
NE_RESET
);
int
reset_start_time
=
jiffies
;
int
reset_start_time
=
jiffies
;
if
(
ei_debug
>
1
)
printk
(
"resetting the 8390 t=%d..."
,
jiffies
);
if
(
ei_debug
>
1
)
printk
(
"resetting the 8390 t=%
l
d..."
,
jiffies
);
ei_status
.
txing
=
0
;
ei_status
.
txing
=
0
;
outb_p
(
tmp
,
NE_BASE
+
NE_RESET
);
outb_p
(
tmp
,
NE_BASE
+
NE_RESET
);
...
...
drivers/net/slip.c
View file @
b764939b
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* Alan Cox : KISS AX.25 and AXUI IP support
* Alan Cox : KISS AX.25 and AXUI IP support
* Michael Riepe : Automatic CSLIP recognition added
* Michael Riepe : Automatic CSLIP recognition added
* Charles Hedrick : CSLIP header length problem fix.
* Charles Hedrick : CSLIP header length problem fix.
* Alan Cox : Corrected non-IP cases of the above.
*/
*/
#include <asm/segment.h>
#include <asm/segment.h>
...
@@ -552,37 +553,35 @@ sl_xmit(struct sk_buff *skb, struct device *dev)
...
@@ -552,37 +553,35 @@ sl_xmit(struct sk_buff *skb, struct device *dev)
/* We were not, so we are now... :-) */
/* We were not, so we are now... :-) */
if
(
skb
!=
NULL
)
{
if
(
skb
!=
NULL
)
{
#ifdef CONFIG_AX25
#ifdef CONFIG_AX25
if
(
sl
->
mode
&
SL_MODE_AX25
)
if
(
sl
->
mode
&
SL_MODE_AX25
)
{
{
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
if
(
!
skb
->
arp
&&
dev
->
rebuild_header
(
skb
->
data
,
dev
))
{
{
skb
->
dev
=
dev
;
skb
->
dev
=
dev
;
arp_queue
(
skb
);
arp_queue
(
skb
);
return
0
;
return
0
;
}
}
skb
->
arp
=
1
;
skb
->
arp
=
1
;
}
}
#endif
#endif
sl_lock
(
sl
);
sl_lock
(
sl
);
size
=
skb
->
len
;
size
=
skb
->
len
;
if
(
!
(
sl
->
mode
&
SL_MODE_AX25
))
{
if
(
size
<
sizeof
(
struct
iphdr
))
if
(
size
<
sizeof
(
struct
iphdr
))
{
{
printk
(
"Runt IP frame fed to slip!
\n
"
);
printk
(
"Runt IP frame fed to slip!
\n
"
);
}
else
{
size
=
((
struct
iphdr
*
)(
skb
->
data
))
->
tot_len
;
size
=
ntohs
(
size
);
}
}
}
else
{
size
=
((
struct
iphdr
*
)(
skb
->
data
))
->
tot_len
;
size
=
ntohs
(
size
);
/* sl_hex_dump(skb->data,skb->len);*/
/* sl_hex_dump(skb->data,skb->len);*/
sl_encaps
(
sl
,
skb
->
data
,
size
);
sl_encaps
(
sl
,
skb
->
data
,
size
);
}
if
(
skb
->
free
)
if
(
skb
->
free
)
kfree_skb
(
skb
,
FREE_WRITE
);
kfree_skb
(
skb
,
FREE_WRITE
);
}
}
return
(
0
);
return
(
0
);
}
}
/* Return the frame type ID. This is normally IP but maybe be AX.25. */
/* Return the frame type ID. This is normally IP but maybe be AX.25. */
static
unsigned
short
static
unsigned
short
sl_type_trans
(
struct
sk_buff
*
skb
,
struct
device
*
dev
)
sl_type_trans
(
struct
sk_buff
*
skb
,
struct
device
*
dev
)
...
...
fs/exec.c
View file @
b764939b
...
@@ -692,6 +692,7 @@ static int do_execve(char * filename, char ** argv, char ** envp, struct pt_regs
...
@@ -692,6 +692,7 @@ static int do_execve(char * filename, char ** argv, char ** envp, struct pt_regs
retval
=
fn
(
&
bprm
,
regs
);
retval
=
fn
(
&
bprm
,
regs
);
if
(
retval
==
0
)
{
if
(
retval
==
0
)
{
iput
(
bprm
.
inode
);
iput
(
bprm
.
inode
);
current
->
did_exec
=
1
;
return
0
;
return
0
;
}
}
fmt
++
;
fmt
++
;
...
...
include/linux/keyboard.h
View file @
b764939b
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#define KG_CTRL 2
#define KG_CTRL 2
#define KG_ALT 3
#define KG_ALT 3
#define KG_ALTGR 1
#define KG_ALTGR 1
#define KG_SHIFTL 4
#define KG_SHIFTR 5
#define KG_CTRLL 6
#define KG_CTRLR 7
#define NR_KEYS 128
#define NR_KEYS 128
#define NR_KEYMAPS 16
#define NR_KEYMAPS 16
...
@@ -115,6 +119,10 @@ extern char *func_table[NR_FUNC];
...
@@ -115,6 +119,10 @@ extern char *func_table[NR_FUNC];
#define K_CTRL K(KT_SHIFT,KG_CTRL)
#define K_CTRL K(KT_SHIFT,KG_CTRL)
#define K_ALT K(KT_SHIFT,KG_ALT)
#define K_ALT K(KT_SHIFT,KG_ALT)
#define K_ALTGR K(KT_SHIFT,KG_ALTGR)
#define K_ALTGR K(KT_SHIFT,KG_ALTGR)
#define K_SHIFTL K(KT_SHIFT,KG_SHIFTL)
#define K_SHIFTR K(KT_SHIFT,KG_SHIFTR)
#define K_CTRLL K(KT_SHIFT,KG_CTRLL)
#define K_CTRLR K(KT_SHIFT,KG_CTRLR)
#define NR_SHIFT 4
#define NR_SHIFT 4
...
...
include/linux/msg.h
View file @
b764939b
...
@@ -52,7 +52,7 @@ struct msginfo {
...
@@ -52,7 +52,7 @@ struct msginfo {
};
};
#define MSGMNI 128
/* <= 1K */
/* max # of msg queue identifiers */
#define MSGMNI 128
/* <= 1K */
/* max # of msg queue identifiers */
#define MSGMAX 40
80
/* <= 4080
*/
/* max size of message (bytes) */
#define MSGMAX 40
56
/* <= 4056
*/
/* max size of message (bytes) */
#define MSGMNB 16384
/* ? */
/* default max size of a message queue */
#define MSGMNB 16384
/* ? */
/* default max size of a message queue */
/* unused */
/* unused */
...
...
include/linux/sbpcd.h
View file @
b764939b
...
@@ -35,12 +35,8 @@
...
@@ -35,12 +35,8 @@
* LASERMATE (CI-101P) adresses typically are 0x0300, 0x0310, ...
* LASERMATE (CI-101P) adresses typically are 0x0300, 0x0310, ...
* there are some soundcards on the market with 0x0630, 0x0650, ...
* there are some soundcards on the market with 0x0630, 0x0650, ...
*
*
* obey! changed against v0.4 !!!
* for SBPRO cards, specify the CDROM address - no longer the audio address!
* example: if your SBPRO audio address is 0x220, specify 0x230.
* example: if your SBPRO audio address is 0x220, specify 0x230.
*
*
* a fill-in is not always necessary - the driver does auto-probing now,
* with the here specified address first...
*/
*/
#define CDROM_PORT 0x0230
#define CDROM_PORT 0x0230
...
@@ -73,7 +69,9 @@
...
@@ -73,7 +69,9 @@
#define DBG_DID 16
/* drive ID test */
#define DBG_DID 16
/* drive ID test */
#define DBG_RES 17
/* drive reset info */
#define DBG_RES 17
/* drive reset info */
#define DBG_SPI 18
/* SpinUp test */
#define DBG_SPI 18
/* SpinUp test */
#define DBG_000 19
/* unnecessary information */
#define DBG_IOS 19
/* ioctl trace: "subchannel" */
#define DBG_IO2 20
/* ioctl trace: general */
#define DBG_000 21
/* unnecessary information */
/*==========================================================================*/
/*==========================================================================*/
/*==========================================================================*/
/*==========================================================================*/
...
@@ -420,12 +418,7 @@ Read XA Parameter:
...
@@ -420,12 +418,7 @@ Read XA Parameter:
/*
/*
* use "REP INSB" for strobing the data in:
* use "REP INSB" for strobing the data in:
*/
*/
#if PATCHLEVEL<15
#define READ_DATA(port, buf, nr) \
__asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","dx","di")
#else
#define READ_DATA(port, buf, nr) insb(port, buf, nr)
#define READ_DATA(port, buf, nr) insb(port, buf, nr)
#endif
/*==========================================================================*/
/*==========================================================================*/
/*
/*
...
...
include/linux/sched.h
View file @
b764939b
...
@@ -183,6 +183,7 @@ struct task_struct {
...
@@ -183,6 +183,7 @@ struct task_struct {
int
elf_executable
:
1
;
int
elf_executable
:
1
;
int
dumpable
:
1
;
int
dumpable
:
1
;
int
swappable
:
1
;
int
swappable
:
1
;
int
did_exec
:
1
;
unsigned
long
start_code
,
end_code
,
end_data
,
start_brk
,
brk
,
start_stack
,
start_mmap
;
unsigned
long
start_code
,
end_code
,
end_data
,
start_brk
,
brk
,
start_stack
,
start_mmap
;
unsigned
long
arg_start
,
arg_end
,
env_start
,
env_end
;
unsigned
long
arg_start
,
arg_end
,
env_start
,
env_end
;
int
pid
,
pgrp
,
session
,
leader
;
int
pid
,
pgrp
,
session
,
leader
;
...
@@ -263,7 +264,7 @@ struct task_struct {
...
@@ -263,7 +264,7 @@ struct task_struct {
/* schedlink */
&init_task,&init_task, \
/* schedlink */
&init_task,&init_task, \
/* signals */
{{ 0, },}, \
/* signals */
{{ 0, },}, \
/* stack */
0,(unsigned long) &init_kernel_stack, \
/* stack */
0,(unsigned long) &init_kernel_stack, \
/* ec,brk... */
0,0,0,0,0,0,0,0,0,0,0,0, \
/* ec,brk... */
0,0,0,0,0,0,0,0,0,0,0,0,
0,
\
/* argv.. */
0,0,0,0, \
/* argv.. */
0,0,0,0, \
/* pid etc.. */
0,0,0,0, \
/* pid etc.. */
0,0,0,0, \
/* suppl grps*/
{NOGROUP,}, \
/* suppl grps*/
{NOGROUP,}, \
...
...
include/linux/timex.h
View file @
b764939b
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#ifndef _LINUX_TIMEX_H
#ifndef _LINUX_TIMEX_H
#define _LINUX_TIMEX_H
#define _LINUX_TIMEX_H
#include <linux/unistd.h>
/*
/*
* The following defines establish the engineering parameters of the PLL
* The following defines establish the engineering parameters of the PLL
* model. The HZ variable establishes the timer interrupt frequency, 100 Hz
* model. The HZ variable establishes the timer interrupt frequency, 100 Hz
...
...
kernel/fork.c
View file @
b764939b
...
@@ -136,6 +136,7 @@ asmlinkage int sys_fork(struct pt_regs regs)
...
@@ -136,6 +136,7 @@ asmlinkage int sys_fork(struct pt_regs regs)
goto
bad_fork_free
;
goto
bad_fork_free
;
task
[
nr
]
=
p
;
task
[
nr
]
=
p
;
*
p
=
*
current
;
*
p
=
*
current
;
p
->
did_exec
=
0
;
p
->
kernel_stack_page
=
0
;
p
->
kernel_stack_page
=
0
;
p
->
state
=
TASK_UNINTERRUPTIBLE
;
p
->
state
=
TASK_UNINTERRUPTIBLE
;
p
->
flags
&=
~
(
PF_PTRACED
|
PF_TRACESYS
);
p
->
flags
&=
~
(
PF_PTRACED
|
PF_TRACESYS
);
...
...
kernel/sys.c
View file @
b764939b
...
@@ -461,32 +461,49 @@ asmlinkage int sys_brk(unsigned long brk)
...
@@ -461,32 +461,49 @@ asmlinkage int sys_brk(unsigned long brk)
* OK, I think I have the protection semantics right.... this is really
* OK, I think I have the protection semantics right.... this is really
* only important on a multi-user system anyway, to make sure one user
* only important on a multi-user system anyway, to make sure one user
* can't send a signal to a process owned by another. -TYT, 12/12/91
* can't send a signal to a process owned by another. -TYT, 12/12/91
*
* Auch. Had to add the 'did_exec' flag to conform completely to POSIX.
* LBT 04.03.94
*/
*/
asmlinkage
int
sys_setpgid
(
pid_t
pid
,
pid_t
pgid
)
asmlinkage
int
sys_setpgid
(
pid_t
pid
,
pid_t
pgid
)
{
{
int
i
;
struct
task_struct
*
p
;
if
(
!
pid
)
if
(
!
pid
)
pid
=
current
->
pid
;
pid
=
current
->
pid
;
if
(
!
pgid
)
if
(
!
pgid
)
pgid
=
current
->
pid
;
pgid
=
pid
;
if
(
pgid
<
0
)
if
(
pgid
<
0
)
return
-
EINVAL
;
return
-
EINVAL
;
for
(
i
=
0
;
i
<
NR_TASKS
;
i
++
)
for_each_task
(
p
)
{
if
(
task
[
i
]
&&
(
task
[
i
]
->
pid
==
pid
)
&&
if
(
p
->
pid
==
pid
)
((
task
[
i
]
->
p_pptr
==
current
)
||
goto
found_task
;
(
task
[
i
]
->
p_opptr
==
current
)
||
}
(
task
[
i
]
==
current
)))
{
if
(
task
[
i
]
->
leader
)
return
-
EPERM
;
if
((
task
[
i
]
->
session
!=
current
->
session
)
||
((
pgid
!=
pid
)
&&
(
session_of_pgrp
(
pgid
)
!=
current
->
session
)))
return
-
EPERM
;
task
[
i
]
->
pgrp
=
pgid
;
return
0
;
}
return
-
ESRCH
;
return
-
ESRCH
;
found_task:
if
(
p
->
p_pptr
==
current
||
p
->
p_opptr
==
current
)
{
if
(
p
->
session
!=
current
->
session
)
return
-
EPERM
;
if
(
p
->
did_exec
)
return
-
EACCES
;
}
else
if
(
p
!=
current
)
return
-
ESRCH
;
if
(
p
->
leader
)
return
-
EPERM
;
if
(
pgid
!=
pid
)
{
struct
task_struct
*
tmp
;
for_each_task
(
tmp
)
{
if
(
tmp
->
pgrp
==
pgid
&&
tmp
->
session
==
current
->
session
)
goto
ok_pgid
;
}
return
-
EPERM
;
}
ok_pgid:
p
->
pgrp
=
pgid
;
return
0
;
}
}
asmlinkage
int
sys_getpgid
(
pid_t
pid
)
asmlinkage
int
sys_getpgid
(
pid_t
pid
)
...
...
net/inet/ip.c
View file @
b764939b
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
* Alan Cox : Use ip_tos/ip_ttl settings
* Alan Cox : Use ip_tos/ip_ttl settings
* Alan Cox : Fragmentation bogosity removed
* Alan Cox : Fragmentation bogosity removed
* (Thanks to Mark.Bush@prg.ox.ac.uk)
* (Thanks to Mark.Bush@prg.ox.ac.uk)
* Dmitry Gordchanin : Send of a raw packet crash fix.
* Dmitry Gor
o
dchanin : Send of a raw packet crash fix.
* Alan Cox : Silly ip bug when an overlength
* Alan Cox : Silly ip bug when an overlength
* fragment turns up. Now frees the
* fragment turns up. Now frees the
* queue.
* queue.
...
...
net/inet/tcp.c
View file @
b764939b
...
@@ -592,14 +592,15 @@ void tcp_send_check(struct tcphdr *th, unsigned long saddr,
...
@@ -592,14 +592,15 @@ void tcp_send_check(struct tcphdr *th, unsigned long saddr,
static
void
tcp_send_skb
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
static
void
tcp_send_skb
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
{
{
int
size
;
int
size
;
struct
tcphdr
*
th
=
skb
->
h
.
th
;
/* length of packet (not counting length of pre-tcp headers) */
/* length of packet (not counting length of pre-tcp headers) */
size
=
skb
->
len
-
((
unsigned
char
*
)
skb
->
h
.
th
-
skb
->
data
);
size
=
skb
->
len
-
((
unsigned
char
*
)
th
-
skb
->
data
);
/* sanity check it.. */
/* sanity check it.. */
if
(
size
<
sizeof
(
struct
tcphdr
)
||
size
>
skb
->
len
)
{
if
(
size
<
sizeof
(
struct
tcphdr
)
||
size
>
skb
->
len
)
{
printk
(
"tcp_send_skb: bad skb (skb = %p, data = %p, th = %p, len = %lu)
\n
"
,
printk
(
"tcp_send_skb: bad skb (skb = %p, data = %p, th = %p, len = %lu)
\n
"
,
skb
,
skb
->
data
,
skb
->
h
.
th
,
skb
->
len
);
skb
,
skb
->
data
,
th
,
skb
->
len
);
kfree_skb
(
skb
,
FREE_WRITE
);
kfree_skb
(
skb
,
FREE_WRITE
);
return
;
return
;
}
}
...
@@ -607,7 +608,7 @@ static void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
...
@@ -607,7 +608,7 @@ static void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
/* If we have queued a header size packet.. */
/* If we have queued a header size packet.. */
if
(
size
==
sizeof
(
struct
tcphdr
))
{
if
(
size
==
sizeof
(
struct
tcphdr
))
{
/* If its got a syn or fin its notionally included in the size..*/
/* If its got a syn or fin its notionally included in the size..*/
if
(
!
skb
->
h
.
th
->
syn
&&
!
skb
->
h
.
th
->
fin
)
{
if
(
!
th
->
syn
&&
!
th
->
fin
)
{
printk
(
"tcp_send_skb: attempt to queue a bogon.
\n
"
);
printk
(
"tcp_send_skb: attempt to queue a bogon.
\n
"
);
kfree_skb
(
skb
,
FREE_WRITE
);
kfree_skb
(
skb
,
FREE_WRITE
);
return
;
return
;
...
@@ -615,10 +616,10 @@ static void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
...
@@ -615,10 +616,10 @@ static void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
}
}
/* We need to complete and send the packet. */
/* We need to complete and send the packet. */
tcp_send_check
(
skb
->
h
.
th
,
sk
->
saddr
,
sk
->
daddr
,
size
,
sk
);
tcp_send_check
(
th
,
sk
->
saddr
,
sk
->
daddr
,
size
,
sk
);
skb
->
h
.
seq
=
sk
->
write_seq
;
skb
->
h
.
seq
=
ntohl
(
th
->
seq
)
+
size
-
4
*
th
->
doff
;
if
(
after
(
sk
->
write_seq
,
sk
->
window_seq
)
||
if
(
after
(
sk
b
->
h
.
seq
,
sk
->
window_seq
)
||
(
sk
->
retransmits
&&
sk
->
timeout
==
TIME_WRITE
)
||
(
sk
->
retransmits
&&
sk
->
timeout
==
TIME_WRITE
)
||
sk
->
packets_out
>=
sk
->
cong_window
)
{
sk
->
packets_out
>=
sk
->
cong_window
)
{
DPRINTF
((
DBG_TCP
,
"sk->cong_window = %d, sk->packets_out = %d
\n
"
,
DPRINTF
((
DBG_TCP
,
"sk->cong_window = %d, sk->packets_out = %d
\n
"
,
...
...
net/unix/proc.c
View file @
b764939b
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
* Fred Baumgarten, <dc6iq@insu1.etec.uni-kalrsruhe.de>
* Fred Baumgarten, <dc6iq@insu1.etec.uni-kalrsruhe.de>
*
*
* Fixes:
* Fixes:
* Dmitry Gorodchanin : /proc locking fix
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
...
@@ -43,7 +44,7 @@ int unix_get_info(char *buffer)
...
@@ -43,7 +44,7 @@ int unix_get_info(char *buffer)
pos
+=
sprintf
(
pos
,
"Num RefCount Protocol Flags Type St Path
\n
"
);
pos
+=
sprintf
(
pos
,
"Num RefCount Protocol Flags Type St Path
\n
"
);
for
(
i
=
0
;
i
<
NSOCKETS
;
i
++
)
{
for
(
i
=
0
;
i
<
NSOCKETS
;
i
++
)
{
if
(
unix_datas
[
i
].
refcnt
)
{
if
(
unix_datas
[
i
].
refcnt
>
0
)
{
pos
+=
sprintf
(
pos
,
"%2d: %08X %08X %08lX %04X %02X"
,
i
,
pos
+=
sprintf
(
pos
,
"%2d: %08X %08X %08lX %04X %02X"
,
i
,
unix_datas
[
i
].
refcnt
,
unix_datas
[
i
].
refcnt
,
unix_datas
[
i
].
protocol
,
unix_datas
[
i
].
protocol
,
...
...
net/unix/sock.c
View file @
b764939b
...
@@ -13,11 +13,12 @@
...
@@ -13,11 +13,12 @@
* Fixes:
* Fixes:
* Alan Cox : Verify Area
* Alan Cox : Verify Area
* NET2E Team : Page fault locks
* NET2E Team : Page fault locks
* Dmitry Gorodchanin : /proc locking
*
*
* To Do:
* To Do:
*
*
Some nice person is looking into Unix sockets done properly. NET3
*
Change to the NET2E3 code for Unix domain sockets in general. The
*
will replace all of this and include datagram sockets and socket
*
read/write logic is much better and cleaner.
*
options - so please stop asking me for them 8-)
*
*
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -237,7 +238,7 @@ unix_data_lookup(struct sockaddr_un *sockun, int sockaddr_len,
...
@@ -237,7 +238,7 @@ unix_data_lookup(struct sockaddr_un *sockun, int sockaddr_len,
struct
unix_proto_data
*
upd
;
struct
unix_proto_data
*
upd
;
for
(
upd
=
unix_datas
;
upd
<=
last_unix_data
;
++
upd
)
{
for
(
upd
=
unix_datas
;
upd
<=
last_unix_data
;
++
upd
)
{
if
(
upd
->
refcnt
&&
upd
->
socket
&&
if
(
upd
->
refcnt
>
0
&&
upd
->
socket
&&
upd
->
socket
->
state
==
SS_UNCONNECTED
&&
upd
->
socket
->
state
==
SS_UNCONNECTED
&&
upd
->
sockaddr_un
.
sun_family
==
sockun
->
sun_family
&&
upd
->
sockaddr_un
.
sun_family
==
sockun
->
sun_family
&&
upd
->
inode
==
inode
)
return
(
upd
);
upd
->
inode
==
inode
)
return
(
upd
);
...
@@ -254,7 +255,7 @@ unix_data_alloc(void)
...
@@ -254,7 +255,7 @@ unix_data_alloc(void)
cli
();
cli
();
for
(
upd
=
unix_datas
;
upd
<=
last_unix_data
;
++
upd
)
{
for
(
upd
=
unix_datas
;
upd
<=
last_unix_data
;
++
upd
)
{
if
(
!
upd
->
refcnt
)
{
if
(
!
upd
->
refcnt
)
{
upd
->
refcnt
=
1
;
upd
->
refcnt
=
-
1
;
/* unix domain socket not yet initialised - bgm */
sti
();
sti
();
upd
->
socket
=
NULL
;
upd
->
socket
=
NULL
;
upd
->
sockaddr_len
=
0
;
upd
->
sockaddr_len
=
0
;
...
@@ -328,6 +329,7 @@ unix_proto_create(struct socket *sock, int protocol)
...
@@ -328,6 +329,7 @@ unix_proto_create(struct socket *sock, int protocol)
upd
->
protocol
=
protocol
;
upd
->
protocol
=
protocol
;
upd
->
socket
=
sock
;
upd
->
socket
=
sock
;
UN_DATA
(
sock
)
=
upd
;
UN_DATA
(
sock
)
=
upd
;
upd
->
refcnt
=
1
;
/* Now its complete - bgm */
dprintf
(
1
,
"UNIX: create: allocated data 0x%x
\n
"
,
upd
);
dprintf
(
1
,
"UNIX: create: allocated data 0x%x
\n
"
,
upd
);
return
(
0
);
return
(
0
);
}
}
...
...
net/unix/unix.h
View file @
b764939b
...
@@ -15,6 +15,9 @@
...
@@ -15,6 +15,9 @@
* Ross Biro, <bir7@leland.Stanford.Edu>
* Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
*
*
* Fixes:
* Dmitry Gorodchanin - proc locking
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* as published by the Free Software Foundation; either version
...
@@ -27,6 +30,7 @@
...
@@ -27,6 +30,7 @@
struct
unix_proto_data
{
struct
unix_proto_data
{
int
refcnt
;
/* cnt of reference 0=free */
int
refcnt
;
/* cnt of reference 0=free */
/* -1=not initialised -bgm */
struct
socket
*
socket
;
/* socket we're bound to */
struct
socket
*
socket
;
/* socket we're bound to */
int
protocol
;
int
protocol
;
struct
sockaddr_un
sockaddr_un
;
struct
sockaddr_un
sockaddr_un
;
...
...
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