Commit Graph

1112 Commits

Author SHA1 Message Date
matt
8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
christos
3ff79dba35 adjust to new signature; return consistent stuff. 0 is ok -1 is error 2014-04-05 18:44:32 +00:00
apb
7b4ce92677 procfs_getcpuinfstr's len argument contains the buffer size on entry,
and the number of bytes used on return.  Use the actual buffer size in a
snprintf call, instead of sizeof(*buf), which is always 1.
2014-03-29 11:34:13 +00:00
christos
b2543b9136 use cpu_{g,s}etmodel 2014-03-24 20:06:31 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
tsutsui
649d306ebb Add a common source of m68k bus error and address error handlers.
This will be included from each MD locore.s as other common m68k
asm files like trap_subr.s and support.s etc.
2014-03-15 09:22:36 +00:00
christos
21d590390b make it clean after itself, use standard rules files 2014-01-10 16:41:16 +00:00
isaki
9050bf24ca FLOGNP1(-0.0) is -0.0, not +0.0. Found by XM6i. 2014-01-04 13:23:22 +00:00
dsl
95739e63cd Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
  process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
  just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
  to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
2014-01-04 00:10:02 +00:00
dsl
be74e0a9c9 Change the type of the 'cookie' that holds the state of the core dump file
from 'void *' to the actual type 'struct coredump_iostate *'.
In most of the code the contents of the structure are still unknown.
This just stops the wrong type of pointer being passed to the 'void *'
parameter.
I hope I've found everything, amd64 GENERIC and i386 GENERIC & ALL compile.
2014-01-01 18:57:15 +00:00
isaki
2b1afc88b6 indent fix in a comment. 2014-01-01 05:23:40 +00:00
isaki
3eedc36da9 Fix a sign when a source or destination is either (plus/minus)zero
or (plus/minus)infinity.  Found by XM6i.
2014-01-01 05:22:22 +00:00
christos
c1e26d7e6a add ifdefs for kernel only variable 2013-11-07 01:49:46 +00:00
martin
0fad0c7d31 Comment unused stuff (for documentation purposes) 2013-10-25 21:32:45 +00:00
martin
ee579d18b5 Mark a potentially unused variable 2013-10-25 20:53:02 +00:00
martin
d9955df1e4 Mark a potentialy unused variable 2013-10-25 20:51:14 +00:00
martin
bb4c7c9014 Mark a diagnostic-only variable 2013-10-25 20:45:35 +00:00
martin
bdb645204a Change a few __unused to __diagused/__debugused 2013-10-25 09:46:10 +00:00
martin
d3e65eabc6 Remove unused variable 2013-10-19 19:13:51 +00:00
martin
7e04d278d2 Mark a variable that is only tested in DIAGNOSTIC kernels as potentially
unused.
2013-10-19 19:03:30 +00:00
isaki
f5af824fa5 Check whether we have an FPU regardless of FPU_EMULATE option.
It prevents a kernel panic when we don't have an FPU and FPU_EMULATE
option is not set.
Thanks tsutsui@ for advice.
2013-10-14 12:20:05 +00:00
isaki
0d986a3507 FATANH(-0) is -0, not +0.
This bug was introduced by the mistake of my test program.
Last week, I talked about the probelm (my FATANH(-0) returns +0 ?)
by NetBSD seminar at Open Source Conference 2013 Hiroshima,
and tsutsui@ confirmed that returns -0.
2013-10-11 03:37:08 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
chs
18ec38ea7c switch to ELF naming for local labels. 2013-09-07 19:06:29 +00:00
matt
02096e2d37 Convert to motorola style. 2013-08-01 13:42:52 +00:00
matt
cb0d6358fc Move to motorola syntax
Change all branches to use j.. instead of b.. (branches now use byte offsets)
(this causes it to go from 932 to 848 bytes of text)
Add GETCURPCB macro.
(binary identical before the b -> j changes)
2013-07-22 17:52:21 +00:00
matt
cc7b19c021 use mvz[wb] when possible 2013-07-22 03:37:17 +00:00
matt
32e8c32db8 Use motorola syntax
Adjust for coldfire
(no binary difference for non-coldfire
2013-07-22 03:30:38 +00:00
matt
cc2211c874 pte and pmap files for the soft tlb on coldfire cpus.
(uncompiled and mostly probably wrong.)
2013-07-18 22:24:53 +00:00
matt
8f26ebd43e Adjust LEA_LCL, GOT_SETUP, INTERRUPT_{SAVE,RESTORE}REG for Coldfire 2013-07-18 22:21:31 +00:00
matt
a515bdc6b9 Teach to use coldfire isac byterev if available, otherwise let the compiler
figure it since there is rorw instruction to fall back on.
2013-07-18 22:20:48 +00:00
matt
76ed77addb Fix some definitions 2013-07-18 22:18:31 +00:00
matt
2b6e03e7ed Coldfire FPU looks like the 68010 FPU (no long double) 2013-07-18 22:17:57 +00:00
matt
68f3caa6de Export fpreg.h for libc 2013-07-17 05:42:02 +00:00
matt
7b231464eb Make INTERRUPT_{SAVE,RESTORE}REG visible to userland 2013-07-16 23:01:05 +00:00
matt
b3065f5358 Remove non __ELF__ clauses.
Add GOT_SETUP and LEA_LCL macros.
2013-07-16 22:23:15 +00:00
matt
b97b6cbaca Add an END macro. reorder EXTBL macro 2013-07-16 21:01:03 +00:00
isaki
f01440c2cd Revise the algorithm after Step3.
almost written by Y.Sugahara and minor modify by me.
This works for all input of FMOD/FREM and of course solves PR/47810.
2013-05-11 12:52:42 +00:00
isaki
388a353677 R := X even if L < 0 in Step2, according to algorithm of the comment.
This solves many cases of |X| < |Y|.
2013-05-05 13:25:20 +00:00
isaki
283cf893ef Rename modrem -> is_mod for a readability. 2013-05-05 13:17:15 +00:00
isaki
77f57d5580 M68010 -> __mc68010__, pointed out by tsutsui@ 2013-04-21 02:50:48 +00:00
isaki
2cb1fdf4a5 Rewrite around BFFFO inline asm.
o Prepare C version of BFFFO (from XM6i).
  It is helpful in running FPE on other platforms (for example, for a
  test).  It is also helpful in porting to non-m68k 3rd party :)
o A BFFFO is supported on 68020 or later (though I'm not sure whether
  sun2/68010 uses this FPE correctly or not).
2013-04-20 09:32:28 +00:00
isaki
70153dd489 Support sinh(-0.0) and tanh(-0.0). 2013-04-20 07:33:05 +00:00
isaki
0cee51ef54 Support sin(-0.0). 2013-04-20 07:32:45 +00:00
isaki
adcd4b71b5 Clean up some useless codes. 2013-04-20 05:27:05 +00:00
isaki
1db93fc92a Support tan(-0.0). 2013-04-20 05:09:41 +00:00
isaki
956d42b4aa Fix typo in comment. 2013-04-20 04:55:44 +00:00
isaki
026814fd27 Terminate a loop in EXT_FRACBITS(64bits) instead of FP_NMANT(83bits).
I don't know why the mantissa of the accumulator is 83bits, but 64bits
or more are not affected.
2013-04-20 04:54:22 +00:00
isaki
5d5a7da8b2 Break a loop off to avoid a long loop even if the precision is not enough. 2013-04-20 04:38:51 +00:00
isaki
c5ad1dc3ef Update a list of implement/unimplement functions. 2013-04-20 03:26:11 +00:00