patch-1.3.45 linux/arch/ppc/kernel/stubs.c

Next file: linux/arch/ppc/kernel/test.S
Previous file: linux/arch/ppc/kernel/signal.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/arch/ppc/kernel/stubs.c linux/arch/ppc/kernel/stubs.c
@@ -0,0 +1,114 @@
+#include <linux/in.h>
+
+void sys_ptrace(void) { _panic("sys_ptrace"); }
+void sys_iopl(void) { _panic("sys_iopl"); }
+void sys_vm86(void) { _panic("sys_vm86"); }
+void sys_modify_ldt(void) { _panic("sys_modify_ldt"); }
+void sys_quotactl(void) { _panic("sys_quotactl"); }
+
+void sys_pipe(void) {_panic("sys_pipe"); }
+void sys_ipc(void) {_panic("sys_ipc"); }
+void sys_mmap(void) {_panic("sys_mmap"); }
+void sys_readdir(void) {_panic("sys_readdir"); }
+
+
+halt()
+{
+	_printk("\n...Halt!\n");
+	abort();
+}
+
+_panic(char *msg)
+{
+	_printk("Panic: %s\n", msg);
+	printk("Panic: %s\n", msg);
+	abort();
+}
+
+_warn(char *msg)
+{
+	_printk("*** Warning: %s UNIMPLEMENTED!\n", msg);
+}
+
+extern unsigned short _ip_fast_csum(unsigned char *buf, int len);
+
+unsigned short
+ip_fast_csum(unsigned char *buf, int len)
+{
+	unsigned short _val;
+	_val = _ip_fast_csum(buf, len);
+#if 0	
+	printk("IP CKSUM(%x, %d) = %x\n", buf, len, _val);
+#endif	
+	return (_val);
+}
+
+extern unsigned short _ip_compute_csum(unsigned char *buf, int len);
+
+unsigned short
+ip_compute_csum(unsigned char *buf, int len)
+{
+	unsigned short _val;
+	_val = _ip_compute_csum(buf, len);
+#if 0	
+	printk("Compute IP CKSUM(%x, %d) = %x\n", buf, len, _val);
+#endif	
+	return (_val);
+}
+
+unsigned short
+_udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
+
+unsigned short
+udp_check(unsigned char *buf, int len, int saddr, int daddr)
+{
+	unsigned short _val;
+	int hdr;
+	hdr = (len << 16) + IPPROTO_UDP;
+	_val = _udp_check(buf, len, saddr, daddr, hdr);
+#if 0	
+	printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
+	dump_buf(buf, len);
+#endif	
+	return (_val);
+}
+#if 0
+unsigned short
+_tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr);
+
+unsigned short
+tcp_check(unsigned char *buf, int len, int saddr, int daddr)
+{
+	unsigned short _val;
+	int hdr;
+	hdr = (len << 16) + IPPROTO_TCP;
+	if (saddr == 0) saddr = ip_my_addr();
+	_val = _tcp_check(buf, len, saddr, daddr, hdr);
+#if 0	
+	printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val);
+	dump_buf(buf, len);
+#endif	
+	return (_val);
+}
+#endif
+_do_bottom_half()
+{
+	_enable_interrupts(1);
+	do_bottom_half();
+	_disable_interrupts();
+}
+
+unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum)
+{
+  panic("csum_partial");
+}
+
+
+unsigned int csum_partial_copy(char *src, char *dst, int len, int sum)
+{
+  panic("csum_partial_copy");
+}
+
+unsigned int csum_tcpudp_magic()
+{
+  }
Binary files v1.3.44/linux/arch/ppc/kernel/test and linux/arch/ppc/kernel/test differ

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this