Further VxWorks changes from Bob Bradley <bob@chaoticsoftware.com>, this
time involving VxWorks on MIPS
This commit is contained in:
parent
057a04398d
commit
c798868d96
@ -560,7 +560,8 @@ my %table=(
|
|||||||
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
|
"vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
|
||||||
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
|
"vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:::::",
|
||||||
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
|
"vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:::::",
|
||||||
"vxworks-ppc860","ccppc:-g -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
|
"vxworks-ppc860","ccppc:-nostdinc -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:::::",
|
||||||
|
"vxworks-mipsle","ccmips:-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -DL_ENDIAN -EL -Wl,-EL -mips2 -mno-branch-likely -G 0 -fno-builtin -msoft-float -DCPU=MIPS32 -DMIPSEL -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r::::::::::::::::ranlibmips:",
|
||||||
|
|
||||||
##### Compaq Non-Stop Kernel (Tandem)
|
##### Compaq Non-Stop Kernel (Tandem)
|
||||||
"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::",
|
"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::",
|
||||||
|
11
e_os.h
11
e_os.h
@ -174,6 +174,13 @@ extern "C" {
|
|||||||
#define closesocket(s) close(s)
|
#define closesocket(s) close(s)
|
||||||
#define readsocket(s,b,n) recv((s),(b),(n),0)
|
#define readsocket(s,b,n) recv((s),(b),(n),0)
|
||||||
#define writesocket(s,b,n) send((s),(b),(n),0)
|
#define writesocket(s,b,n) send((s),(b),(n),0)
|
||||||
|
#elif defined(OPENSSL_SYS_VXWORKS)
|
||||||
|
#define get_last_socket_error() errno
|
||||||
|
#define clear_socket_error() errno=0
|
||||||
|
#define ioctlsocket(a,b,c) ioctl((a),(b),(int)(c))
|
||||||
|
#define closesocket(s) close(s)
|
||||||
|
#define readsocket(s,b,n) read((s),(b),(n))
|
||||||
|
#define writesocket(s,b,n) write((s),(char *)(b),(n))
|
||||||
#else
|
#else
|
||||||
#define get_last_socket_error() errno
|
#define get_last_socket_error() errno
|
||||||
#define clear_socket_error() errno=0
|
#define clear_socket_error() errno=0
|
||||||
@ -538,10 +545,6 @@ extern char *sys_errlist[]; extern int sys_nerr;
|
|||||||
#define TTY_STRUCT int
|
#define TTY_STRUCT int
|
||||||
|
|
||||||
#define sleep(a) taskDelay((a) * sysClkRateGet())
|
#define sleep(a) taskDelay((a) * sysClkRateGet())
|
||||||
#if defined(ioctlsocket)
|
|
||||||
#undef ioctlsocket
|
|
||||||
#endif
|
|
||||||
#define ioctlsocket(a,b,c) ioctl((a),(b),*(int*)(c))
|
|
||||||
|
|
||||||
#include <vxWorks.h>
|
#include <vxWorks.h>
|
||||||
#include <sockLib.h>
|
#include <sockLib.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user