This commit is contained in:
root 2011-06-21 12:55:17 +02:00
parent b8a0282d90
commit a2a2c5064f
3 changed files with 14 additions and 45 deletions

View file

@ -6,18 +6,18 @@ DRIVERDIRS = drivers/net drivers/char
KERNDIRS = libkern kernel mm fs arch/$(ARCH)/kernel arch/$(ARCH)/mm arch/$(ARCH)/scc $(LWIPDIRS) $(DRIVERDIRS)
SUBDIRS = $(KERNDIRS)
CC_FOR_TARGET=i386-unknown-linux-gnu-gcc
CXX_FOR_TARGET=i386-unknown-linux-gnu-g++
GCC_FOR_TARGET=i386-unknown-linux-gnu-gcc
AR_FOR_TARGET=i386-unknown-linux-gnu-ar
AS_FOR_TARGET=i386-unknown-linux-gnu-as
LD_FOR_TARGET=i386-unknown-linux-gnu-ld
NM_FOR_TARGET=i386-unknown-linux-gnu-nm
OBJDUMP_FOR_TARGET=i386-unknown-linux-gnu-objdump
OBJCOPY_FOR_TARGET=i386-unknown-linux-gnu-objcopy
RANLIB_FOR_TARGET=i386-unknown-linux-gnu-ranlib
STRIP_FOR_TARGET=i386-unknown-linux-gnu-strip
READELF_FOR_TARGET=i386-unknown-linux-gnu-readelf
CC_FOR_TARGET=gcc
CXX_FOR_TARGET=g++
GCC_FOR_TARGET=gcc
AR_FOR_TARGET=ar
AS_FOR_TARGET=as
LD_FOR_TARGET=ld
NM_FOR_TARGET=nm
OBJDUMP_FOR_TARGET=objdump
OBJCOPY_FOR_TARGET=objcopy
RANLIB_FOR_TARGET=ranlib
STRIP_FOR_TARGET=strip
READELF_FOR_TARGET=readelf
NASM = nasm
EMU=qemu
GDB=gdb

View file

@ -1,4 +1,4 @@
C_source := main.c tasks.c syscall.c tests.c echo.c ping.c server.c client.c init.c
C_source := main.c tasks.c syscall.c tests.c echo.c ping.c init.c
MODULE := kernel
include $(TOPDIR)/Makefile.inc

View file

@ -26,8 +26,6 @@
#include <metalsvm/syscall.h>
#ifdef CONFIG_ROCKCREEK
#include <asm/icc.h>
//#include <server.h>
//#include <client.h>
#include <asm/RCCE_lib.h>
#include <asm/RCCE.h>
#include <asm/RCCE_lib.h>
@ -147,41 +145,12 @@ __inline int get_core_no(void)
void* server_task(void* e)
{
int i = 0;
char msg[7][60] ={"Hello you0 i have muc fun thogh!","Hello you1 here is a little smily for you!","Hello you2 whaaaaaaaaaaaaaaaaaaaaaaaaats uuuuuuuuuuuuuuuuuuuuuuuuuuuuup!","Hello you3! see this? this is fun ufun funfunfunfunf","Hello you4!"
,"Hello you5! ogogogogoogoggoogogogogogog","Hello you6!AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa"};
server_init(5555,2);
Sleep(500);
srv_sendBuffer(0,"Hello you!",sizeof("Hello you!"));
Sleep(800);
while(1)
{
srv_sendBuffer(0,msg[i],sizeof(msg[i]));
i = (++i) % 7;
Sleep(100);
}
return NULL;
}
void* client_task(void* e)
{
unsigned char netbuffer[100] = "Total Tolle Mega Initialisierung hier geht mega viel text ab mindestens 800 NULLEN";
client_init();
Sleep(1000);
while (
cli_ConnectTo("192.168.0.1",5555,0));
Sleep(1000);
cli_sendBuffer("Hallo Welt",sizeof("Hallo Welt"));
Sleep(2000);
while(1)
{
cli_sendBuffer(netbuffer,sizeof(netbuffer));
Sleep(1000);
}
return NULL;
}
int test_init(void)