Commit Graph

1144 Commits

Author SHA1 Message Date
mrg
4773cc203b avoid a GCC warning with this:
+#if defined(__GNUC__) && (__GNUC__ >= 5) && defined(__OPTIMIZE__)
+       x.fp_sign = 0;
+#endif

(ridiculous, but seems better than disabling the warning entirely.)
2016-03-23 05:25:51 +00:00
mrg
65f5251eae remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for.  very few other targets claim they're done so just remove these.
2016-03-22 08:25:22 +00:00
christos
d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos
4d497c90e6 Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
2016-01-23 21:22:13 +00:00
ozaki-r
01554394be Fix #endif; it should be after __END_DECLS
This unbreaks the build of sun2.
2016-01-05 00:47:08 +00:00
christos
d075aff38a disable code that does not work for sun2/coldfire 2015-12-29 16:02:37 +00:00
christos
3f78fc62e3 make this compile for c++ 2015-12-25 16:19:38 +00:00
christos
3feb613f34 get rid of dup fenv. 2015-12-25 06:03:06 +00:00
christos
d5137ecf34 fenv for m68k 2015-12-24 14:12:39 +00:00
maxv
389924615a Add some {} when the meaning is too ambiguous. From Brainy. 2015-10-18 17:13:32 +00:00
christos
b88569ce68 For processors that have memory breakpoints, add macros for them to help
libproc
2015-09-25 16:05:17 +00:00
christos
5020ab68d5 Provide access to pc/sp/syscall-return registers like we have for mcontext 2015-09-15 15:49:02 +00:00
uebayasi
dd204a345e In kernel lib build, print message when things not only start bug also end. 2015-09-06 15:34:55 +00:00
uebayasi
44e9385020 Declare dependency on fpsp.o via newly introduced ${MD_LIBS} instead of
${MD_OBJS}.

${MD_OBJS} should be used only for objects that must be linked first (i.e.,
start code).  Objects have to be compiled following common compile rules,
and have to be generated into common places (i.e., top of kernel build
directory).

${MD_LIBS} defines libraries that are built by separate makefiles, under
separate directories.  `Makefile.kern.inc' doesn't know intermediate library
objects.
2015-09-06 02:17:30 +00:00
uebayasi
6437e17d1f Fix m68k build. 2015-09-04 09:18:11 +00:00
pooka
01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
kamil
f874bd0561 Improve spelling: regsiter -> register
This change is non-functional.

Approved by <riastradh>, <pgoyette>
2015-07-11 10:32:45 +00:00
martin
e7a3928268 Make clock_t unsigned int everywhere.
Ok: matt@, mrg@
2015-06-17 14:32:31 +00:00
christos
ebbed00d76 adjust to new trace_{enter,exit} signatures. 2015-03-07 18:54:57 +00:00
isaki
f4c31ffb3e For the extended precision, the MSB of the mantissa is an integer
part, and this bit must be ignored at Infinity.
found by tests/lib/libc/stdlib/t_strtod.c::strtold_inf.
2015-02-05 12:23:27 +00:00
isaki
cbb3de29ae Fix typo in comment. pointed out by Y.Sugahara. 2015-02-05 12:22:06 +00:00
snj
f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
christos
3e46630230 fix cut-n-paste 2014-09-21 16:32:51 +00:00
matt
81ca7445e9 Avoid trigraphs 2014-09-01 08:21:26 +00:00
martin
1e232ed083 Revert previous (SCN*FAST*) and make PRI*FAST* identical.
Should fix the default (gcc 4.5 based) build.
2014-08-17 20:22:41 +00:00
martin
b9e7c24bbc Fix the SCN*FAST* defines 2014-08-15 08:59:58 +00:00
martin
adeb9b3e44 Fix editor mishap 2014-08-15 07:53:37 +00:00
matt
82a12988ef Include <sys/common_int_types.h> if __UINTPTR_TYPE__ is defined. 2014-08-13 22:56:56 +00:00
matt
0b2cac531b Include <sys/common_int_const.h> if __INTMAX_C_SUFFIX__ is defined. 2014-08-13 22:51:58 +00:00
matt
7c5094c243 Include <sys/common_init_limits.h> if __SIG_ATOMIC_MAX__ is defined. 2014-08-13 22:31:06 +00:00
matt
2534797f07 include <sys/common_int_mwgwtypes.h> if __UINT_FAST64_TYPE__ is defined. 2014-08-13 22:25:39 +00:00
matt
efe99ca41d include <sys/common_int_fmtio.h> if __INTPTR_FMTd__ is defined 2014-08-13 19:48:17 +00:00
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