Commit Graph

225384 Commits

Author SHA1 Message Date
skrll
842c96bd4c Don't probe beyond chan_ntargets in atapi_probe_bus in the "all" case.
PR/48626: ahci_atapi_probe_device panic with kmemguard
2014-03-05 08:45:13 +00:00
martin
17aac1395e It is md.${MACHINE}.${MACHINE_ARCH} 2014-03-05 08:23:16 +00:00
ozaki-r
e5e9a71f64 Tidy up Makefile of cyclic and dtrace modules to support ARM 2014-03-05 06:40:45 +00:00
ozaki-r
f6c17acba3 Add cyclic_machdep.c for ARM
The code is still almost same as i386's one.
2014-03-05 06:35:44 +00:00
matt
668e3207ed Now that maphist is statically initialized, remove initialize tests 2014-03-05 06:27:41 +00:00
ozaki-r
bee7b32afb Add defined(__arm__) 2014-03-05 06:12:00 +00:00
ozaki-r
9d2dfffd73 Use native atomic function instead of DTrace's own one
So we don't need to implement it for each architecture.

This change is from FreeBSD (not as-is though).
2014-03-05 06:06:42 +00:00
msaitoh
74fc44ee86 No functional change:
- Rename function for consistency.
 - Add prototypes.
 - KNF.
2014-03-05 05:56:04 +00:00
matt
1a23213bde Use UVMHIST_INITIALIZER (KERNHIST_INITIALIZER) to statically initialize
maphist.  This allows maphist to used very very early in boot well before
uvm has been initialized.
2014-03-05 05:35:55 +00:00
matt
b35517a661 Add KERNHIST_INITIALIZER(NAME,BUF) macro to be used with KERNHIST_DEFINE to
static initialize a kern_history.  After boot, it still needs to linked
to list of kern_history's and a KERNHIST_LINK_STATIC(NAME) macro was added
to do that.
2014-03-05 05:32:41 +00:00
ginsbach
0b92ede691 Add yet another TLA. 2014-03-05 03:51:25 +00:00
ozaki-r
2d82c07a81 Build net/zlib.c for DTrace
This is needed for building DTrace on ARM.
2014-03-05 03:16:43 +00:00
ozaki-r
7ee4c5ecd0 Fix dtrace_cas32 logic
- compare with cmp, not new
- return old value
2014-03-05 03:09:17 +00:00
matt
92351c0dde frame -> tf
printf out the insn, faulting pc, lr, sp when we get an undefined insn
int the kernel.
2014-03-05 02:18:30 +00:00
matt
a8fe12d68e rearrange some printfs.
when using the extended mmu, make sure to disable ttbr0 until there is an
activated pmap.
2014-03-05 02:17:21 +00:00
matt
477ba34abf push/pop unsaved registers before using printf. 2014-03-05 02:12:24 +00:00
matt
b57d581a95 Only do UVMHIST_LOG is maphist have its entry buffer initialized 2014-03-05 02:10:39 +00:00
ozaki-r
1bf04388c3 Use uint32_t instead of u_int32_t 2014-03-05 02:00:24 +00:00
mrg
cbd3ef8c8a mknative-gcc for GCC 4.8 and coldfire. 2014-03-05 00:14:50 +00:00
mrg
79269683ba coldfire does not want m68k/t-floatlib.
enable powerpc*-netbsd* -- ie, match ppc64.
2014-03-05 00:13:41 +00:00
joerg
a369f38ac1 Disable abs() checking, a lot of computations get implicit truncations
or use unsigned values.
2014-03-04 21:08:08 +00:00
mrg
bc1bc906ca partial mknative-gcc for gcc 4.8 and ppc64. 2014-03-04 21:07:38 +00:00
joerg
f6d86cb881 Make pointer NULL check non-fatal for a bogus condition. 2014-03-04 21:07:22 +00:00
joerg
5c4c6caf71 Make the abs() use check non-fatal for a bogus use in the LFS cleanerd. 2014-03-04 21:06:47 +00:00
joerg
3dfb7837bb When using Clang, disable integrated assembler for genassym. It creates
syntactically invalid assembler, which is normally not a problem as it
is also using -S.
2014-03-04 21:06:02 +00:00
joerg
1e03b295f8 Update build glue for LLVM/Clang r202566. News:
- match ARM CPU default of GCC
- better support for SPARC64
- type checkings for abs/fabs
- null pointer checks against struct member
- various other improvements
2014-03-04 21:05:05 +00:00
joerg
f7ecfbd2ed Import LLVM 3.5svn r202566. 2014-03-04 20:49:27 +00:00
joerg
0b1d2313d3 Import LLVM 3.5svn r202566. 2014-03-04 20:32:45 +00:00
joerg
83820d9427 Import Clang 3.5svn r202566. 2014-03-04 19:53:10 +00:00
joerg
985bd56043 Import Clang 3.5svn r202566. 2014-03-04 19:41:04 +00:00
joerg
6ccf4859e4 Add GENASSYM_CPPFLAGS in two more places. 2014-03-04 17:57:56 +00:00
agc
ed05b112a5 check the correct field in the structure in dsa_verify - pointed out by
joerg - thanks!
2014-03-04 17:29:06 +00:00
macallan
1890dda80c on 601 CPUs skip to normal memcpy if both source and destination are 32bit
aligned
2014-03-04 17:05:14 +00:00
matt
ab7ecd2ca6 Don't export __sync* if _KERNEL || _STANDALONE are defined.
(except if _RUMPKERNEL is defined)
2014-03-04 16:15:28 +00:00
matt
3b7a8ad971 Remove duplicate END(y) macro 2014-03-04 15:27:58 +00:00
matt
0374bc4ba7 Don't byte swap the data, assume the bus_space will do it. 2014-03-04 15:24:38 +00:00
joerg
9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
mrg
bf58d1e73a forgotten mknative-gcc 4.8 for mips64el. 2014-03-04 13:47:32 +00:00
martin
f53fda53b2 Rename md.evbppc to md.evbppc-powerpc, to separate it from the evbppc64
one (which is nonexistant for now).
2014-03-04 11:53:48 +00:00
ozaki-r
07efccf499 Add missing END for each function 2014-03-04 11:07:40 +00:00
ozaki-r
bc132bbc2a Get rid of unused variable definition za from mount.h
There is no user for it. Even worse, it breaks dtrace build for arm.
2014-03-04 09:24:42 +00:00
mrg
354055da20 bump local pkg version. 2014-03-04 09:16:04 +00:00
mrg
fe6ccc8ae5 don't look for po/Makefile. 2014-03-04 09:12:09 +00:00
mrg
b5a718ea7b mknative-gcc 4.8 for most platforms. missing: ppc64, m68010, ia64, coldfire. 2014-03-04 08:56:52 +00:00
mrg
c9d652c862 include dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h netbsd.h
and netbsd-elf.h on powerpc64-netbsd.

port netbsd64.h forward from GCC changes.  (it's a pity that
a vast portion of linux64.h isn't in some common header that
netbsd64.h and freebsd64.h could also used.  there's 100s of
lines of copypasta here, oh well.)
2014-03-04 08:43:12 +00:00
matt
93bd3693a8 Add a different version vfp_fpscr_changable if FPU_VFP was not defined.
If no FPU was found, reinit vfp_fpscr_changeable/default to values appropriate
for softfloat.
2014-03-04 08:32:23 +00:00
matt
6040f5ca22 compat16 -> compat_16 2014-03-04 08:25:11 +00:00
matt
4fa1971b77 Fix #if/#endif nesting 2014-03-04 07:01:26 +00:00
matt
c1987519cf #include <m68k/m68k.h> 2014-03-04 06:38:08 +00:00
matt
f2d0e50b73 fix typo. 2014-03-04 06:36:41 +00:00