Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40718
b: refs/heads/master
c: 4833ed0
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Nov 5, 2006
1 parent 7cfc87a commit d062c72
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 80 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59359ff87700f5e742c96a55da9cf0819984c128
refs/heads/master: 4833ed094097323f5f219820f6ebdc8dd66f501f
3 changes: 2 additions & 1 deletion trunk/arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
#include <asm/mxcc.h>
#include <asm/thread_info.h>
#include <asm/param.h>
#include <asm/unistd.h>

#include <asm/asmmacro.h>

#define curptr g6

#define NR_SYSCALLS 300 /* Each OS is different... */

/* These are just handy. */
#define _SV save %sp, -STACKFRAME_SZ, %sp
#define _RS restore
Expand Down
5 changes: 2 additions & 3 deletions trunk/arch/sparc/kernel/systbls.S
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sys_call_table:
/*285*/ .long sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64
/*290*/ .long sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
/*295*/ .long sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
/*300*/ .long sys_set_robust_list, sys_get_robust_list, sys_migrate_pages
/*300*/ .long sys_set_robust_list, sys_get_robust_list

#ifdef CONFIG_SUNOS_EMUL
/* Now the SunOS syscall table. */
Expand Down Expand Up @@ -190,7 +190,6 @@ sunos_sys_table:
/*290*/ .long sunos_nosys, sunos_nosys, sunos_nosys
.long sunos_nosys, sunos_nosys, sunos_nosys
.long sunos_nosys, sunos_nosys, sunos_nosys
.long sunos_nosys
/*300*/ .long sunos_nosys, sunos_nosys, sunos_nosys
.long sunos_nosys, sunos_nosys, sunos_nosys

#endif
3 changes: 2 additions & 1 deletion trunk/arch/sparc64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
#include <asm/auxio.h>
#include <asm/sfafsr.h>
#include <asm/pil.h>
#include <asm/unistd.h>

#define curptr g6

#define NR_SYSCALLS 300 /* Each OS is different... */

.text
.align 32

Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/sparc64/kernel/systbls.S
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sys_call_table32:
.word sys_mkdirat, sys_mknodat, sys_fchownat, compat_sys_futimesat, compat_sys_fstatat64
/*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
.word sys_fchmodat, sys_faccessat, compat_sys_pselect6, compat_sys_ppoll, sys_unshare
/*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list, compat_sys_migrate_pages
/*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list

#endif /* CONFIG_COMPAT */

Expand Down Expand Up @@ -149,7 +149,7 @@ sys_call_table:
.word sys_mkdirat, sys_mknodat, sys_fchownat, sys_futimesat, sys_fstatat64
/*290*/ .word sys_unlinkat, sys_renameat, sys_linkat, sys_symlinkat, sys_readlinkat
.word sys_fchmodat, sys_faccessat, sys_pselect6, sys_ppoll, sys_unshare
/*300*/ .word sys_set_robust_list, sys_get_robust_list, sys_migrate_pages
/*300*/ .word sys_set_robust_list, sys_get_robust_list

#if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \
defined(CONFIG_SOLARIS_EMUL_MODULE)
Expand Down Expand Up @@ -262,7 +262,5 @@ sunos_sys_table:
/*290*/ .word sunos_nosys, sunos_nosys, sunos_nosys
.word sunos_nosys, sunos_nosys, sunos_nosys
.word sunos_nosys, sunos_nosys, sunos_nosys
.word sunos_nosys
/*300*/ .word sunos_nosys, sunos_nosys, sunos_nosys

.word sunos_nosys, sunos_nosys, sunos_nosys
#endif
9 changes: 3 additions & 6 deletions trunk/include/asm-sparc/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,12 @@
#define __NR_unshare 299
#define __NR_set_robust_list 300
#define __NR_get_robust_list 301
#define __NR_migrate_pages 302

#define NR_SYSCALLS 303

#ifdef __KERNEL__
/* WARNING: You MAY NOT add syscall numbers larger than 302, since
/* WARNING: You MAY NOT add syscall numbers larger than 301, since
* all of the syscall tables in the Sparc kernel are
* sized to have 302 entries (starting at zero). Therefore
* find a free slot in the 0-302 range.
* sized to have 301 entries (starting at zero). Therefore
* find a free slot in the 0-301 range.
*/

#define _syscall0(type,name) \
Expand Down
10 changes: 3 additions & 7 deletions trunk/include/asm-sparc64/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,16 +320,12 @@
#define __NR_unshare 299
#define __NR_set_robust_list 300
#define __NR_get_robust_list 301
#define __NR_migrate_pages 302

#define NR_SYSCALLS 303

#ifdef __KERNEL__

/* WARNING: You MAY NOT add syscall numbers larger than 302, since
/* WARNING: You MAY NOT add syscall numbers larger than 301, since
* all of the syscall tables in the Sparc kernel are
* sized to have 302 entries (starting at zero). Therefore
* find a free slot in the 0-302 range.
* sized to have 301 entries (starting at zero). Therefore
* find a free slot in the 0-301 range.
*/

#define _syscall0(type,name) \
Expand Down
14 changes: 7 additions & 7 deletions trunk/include/linux/ipx.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

struct sockaddr_ipx {
sa_family_t sipx_family;
__u16 sipx_port;
__u32 sipx_network;
__be16 sipx_port;
__be32 sipx_network;
unsigned char sipx_node[IPX_NODE_LEN];
__u8 sipx_type;
unsigned char sipx_zero; /* 16 byte fill */
Expand All @@ -23,13 +23,13 @@ struct sockaddr_ipx {
#define IPX_CRTITF 1

struct ipx_route_definition {
__u32 ipx_network;
__u32 ipx_router_network;
__be32 ipx_network;
__be32 ipx_router_network;
unsigned char ipx_router_node[IPX_NODE_LEN];
};

struct ipx_interface_definition {
__u32 ipx_network;
__be32 ipx_network;
unsigned char ipx_device[16];
unsigned char ipx_dlink_type;
#define IPX_FRAME_NONE 0
Expand All @@ -55,8 +55,8 @@ struct ipx_config_data {
*/

struct ipx_route_def {
__u32 ipx_network;
__u32 ipx_router_network;
__be32 ipx_network;
__be32 ipx_router_network;
#define IPX_ROUTE_NO_ROUTER 0
unsigned char ipx_router_node[IPX_NODE_LEN];
unsigned char ipx_device[16];
Expand Down
22 changes: 11 additions & 11 deletions trunk/include/net/ipx.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#include <linux/list.h>

struct ipx_address {
__u32 net;
__be32 net;
__u8 node[IPX_NODE_LEN];
__u16 sock;
__be16 sock;
};

#define ipx_broadcast_node "\377\377\377\377\377\377"
Expand All @@ -28,7 +28,7 @@ struct ipx_address {
struct ipxhdr {
__u16 ipx_checksum __attribute__ ((packed));
#define IPX_NO_CHECKSUM 0xFFFF
__u16 ipx_pktsize __attribute__ ((packed));
__be16 ipx_pktsize __attribute__ ((packed));
__u8 ipx_tctrl;
__u8 ipx_type;
#define IPX_TYPE_UNKNOWN 0x00
Expand All @@ -48,14 +48,14 @@ static __inline__ struct ipxhdr *ipx_hdr(struct sk_buff *skb)

struct ipx_interface {
/* IPX address */
__u32 if_netnum;
__be32 if_netnum;
unsigned char if_node[IPX_NODE_LEN];
atomic_t refcnt;

/* physical device info */
struct net_device *if_dev;
struct datalink_proto *if_dlink;
unsigned short if_dlink_type;
__be16 if_dlink_type;

/* socket support */
unsigned short if_sknum;
Expand All @@ -71,7 +71,7 @@ struct ipx_interface {
};

struct ipx_route {
__u32 ir_net;
__be32 ir_net;
struct ipx_interface *ir_intrfc;
unsigned char ir_routed;
unsigned char ir_router_node[IPX_NODE_LEN];
Expand All @@ -82,10 +82,10 @@ struct ipx_route {
#ifdef __KERNEL__
struct ipx_cb {
u8 ipx_tctrl;
u32 ipx_dest_net;
u32 ipx_source_net;
__be32 ipx_dest_net;
__be32 ipx_source_net;
struct {
u32 netnum;
__be32 netnum;
int index;
} last_hop;
};
Expand All @@ -97,7 +97,7 @@ struct ipx_sock {
struct sock sk;
struct ipx_address dest_addr;
struct ipx_interface *intrfc;
unsigned short port;
__be16 port;
#ifdef CONFIG_IPX_INTERN
unsigned char node[IPX_NODE_LEN];
#endif
Expand Down Expand Up @@ -132,7 +132,7 @@ extern struct ipx_interface *ipx_primary_net;
extern int ipx_proc_init(void);
extern void ipx_proc_exit(void);

extern const char *ipx_frame_name(unsigned short);
extern const char *ipx_frame_name(__be16);
extern const char *ipx_device_name(struct ipx_interface *intrfc);

static __inline__ void ipxitf_hold(struct ipx_interface *intrfc)
Expand Down
Loading

0 comments on commit d062c72

Please sign in to comment.