* Adapt to mipsel compiler defining cpumipsel and cpumipsel32 but not cpumips anymore

git-svn-id: trunk@21542 -
This commit is contained in:
pierre 2012-06-08 09:34:36 +00:00
parent be67af4374
commit 651589c9a4
6 changed files with 27 additions and 27 deletions

View File

@ -545,7 +545,7 @@ begin
{$ifdef CPU64} {$ifdef CPU64}
Fppread:=do_syscall(syscall_nr_pread64,Fd,TSysParam(buf),nbytes,TSysParam(OffSet)); Fppread:=do_syscall(syscall_nr_pread64,Fd,TSysParam(buf),nbytes,TSysParam(OffSet));
{$else} {$else}
{$ifdef CPUMIPS32} {$if defined(CPUMIPS32) or defined(CPUMIPSEL32)}
Fppread:=do_syscall(syscall_nr_pread64,Fd,TSysParam(buf),nbytes,0, { align parameters as required with dummy } Fppread:=do_syscall(syscall_nr_pread64,Fd,TSysParam(buf),nbytes,0, { align parameters as required with dummy }
{$ifdef FPC_BIG_ENDIAN} hi(offset),lo(offset){$endif} {$ifdef FPC_BIG_ENDIAN} hi(offset),lo(offset){$endif}
{$ifdef FPC_LITTLE_ENDIAN} lo(offset),hi(offset){$endif} {$ifdef FPC_LITTLE_ENDIAN} lo(offset),hi(offset){$endif}
@ -566,7 +566,7 @@ begin
{$ifdef CPU64} {$ifdef CPU64}
Fppwrite:=do_syscall(syscall_nr_pwrite64,Fd,TSysParam(buf),nbytes,TSysParam(OffSet)); Fppwrite:=do_syscall(syscall_nr_pwrite64,Fd,TSysParam(buf),nbytes,TSysParam(OffSet));
{$else} {$else}
{$ifdef CPUMIPS32} {$if defined(CPUMIPS32) or defined(CPUMIPSEL32)}
Fppwrite:=do_syscall(syscall_nr_pwrite64,Fd,TSysParam(buf),nbytes,0, { align parameters as required with dummy } Fppwrite:=do_syscall(syscall_nr_pwrite64,Fd,TSysParam(buf),nbytes,0, { align parameters as required with dummy }
{$ifdef FPC_BIG_ENDIAN} hi(offset),lo(offset){$endif} {$ifdef FPC_BIG_ENDIAN} hi(offset),lo(offset){$endif}
{$ifdef FPC_LITTLE_ENDIAN} lo(offset),hi(offset){$endif} {$ifdef FPC_LITTLE_ENDIAN} lo(offset),hi(offset){$endif}

View File

@ -189,7 +189,7 @@ const
KD_TEXT0 = 2; {obsolete} KD_TEXT0 = 2; {obsolete}
KD_TEXT1 = 3; {obsolete} KD_TEXT1 = 3; {obsolete}
{$ifdef cpumips} {$if defined(cpumips) or defined(cpumipsel)}
MAP_GROWSDOWN = $1000; { stack-like segment } MAP_GROWSDOWN = $1000; { stack-like segment }
MAP_DENYWRITE = $2000; { ETXTBSY } MAP_DENYWRITE = $2000; { ETXTBSY }
MAP_EXECUTABLE = $4000; { mark it as an executable } MAP_EXECUTABLE = $4000; { mark it as an executable }

View File

@ -87,7 +87,7 @@ Const
{ Constansts for MMAP } { Constansts for MMAP }
MAP_PRIVATE =2; MAP_PRIVATE =2;
{$ifdef cpumips} {$if defined(cpumips) or defined(cpumipsel)}
MAP_ANONYMOUS =$800; MAP_ANONYMOUS =$800;
{$else cpumips} {$else cpumips}
MAP_ANONYMOUS =$20; MAP_ANONYMOUS =$20;
@ -1530,7 +1530,7 @@ const
MAP_FIXED = $10; { Interpret addr exactly } MAP_FIXED = $10; { Interpret addr exactly }
// MAP_ANONYMOUS = $20; { don't use a file } // MAP_ANONYMOUS = $20; { don't use a file }
{$ifdef cpumips} {$if defined(cpumips) or defined(cpumipsel)}
MAP_GROWSDOWN = $1000; { stack-like segment } MAP_GROWSDOWN = $1000; { stack-like segment }
MAP_DENYWRITE = $2000; { ETXTBSY } MAP_DENYWRITE = $2000; { ETXTBSY }
MAP_EXECUTABLE = $4000; { mark it as an executable } MAP_EXECUTABLE = $4000; { mark it as an executable }

View File

@ -271,7 +271,7 @@ CONST
{$if defined(cpui386) or defined(cpux86_64) or defined(cpuia64)} {$if defined(cpui386) or defined(cpux86_64) or defined(cpuia64)}
O_LARGEFILE = $8000; O_LARGEFILE = $8000;
{$endif} {$endif}
{$if defined(cpumips)} {$if defined(cpumips) or defined(cpumipsel)}
O_LARGEFILE = $2000; O_LARGEFILE = $2000;
{$endif} {$endif}
{ mode_t possible values } { mode_t possible values }

View File

@ -28,7 +28,7 @@ Const
SIG_UNBLOCK = 2; SIG_UNBLOCK = 2;
SIG_SETMASK = 4; SIG_SETMASK = 4;
{$else CPUSPARC} {$else CPUSPARC}
{$ifdef CPUMIPS} {$if defined(cpumips) or defined(cpumipsel)}
SA_NOCLDSTOP = 1; SA_NOCLDSTOP = 1;
SA_NOCLDWAIT = $10000; SA_NOCLDWAIT = $10000;
SA_SIGINFO = 8; SA_SIGINFO = 8;

View File

@ -1223,7 +1223,7 @@ Const
{$endif cpuarm} {$endif cpuarm}
{$ifdef cpumips} {$if defined(cpumips) or defined(cpumipsel)}
const const
TCGETA = $5401; TCGETA = $5401;
TCSETA = $5402; TCSETA = $5402;