Commit Graph

120982 Commits

Author SHA1 Message Date
jakllsch 28bbad2d7d Obtain CR0_PE constant from <x86/specialreg.h> rather than a local #define. 2013-12-24 19:00:56 +00:00
matt fd8c0f1ad6 Make sure _edata is aligned to a 8-byte boundary. 2013-12-24 17:03:07 +00:00
matt fac6cd2816 Make sure _edata starts on a 8-byte boundary. 2013-12-24 17:00:39 +00:00
mlelstv 266e035aaa don't treat adjacent members as a larger array
Coverity CID 977367
2013-12-24 16:51:24 +00:00
christos 36443d4a52 fix debugging output printfs to use __func__ so they print the correct names. 2013-12-24 15:48:53 +00:00
christos 0a2552741e use __func__ 2013-12-24 15:42:56 +00:00
christos 54a8b0e862 replace strcpy with copystr and remove useless strcpy (Maxime Villard) 2013-12-24 14:47:04 +00:00
degroote e8b006b990 fix a typo in the log ouput of ipsec4_get_policy 2013-12-24 13:57:06 +00:00
njoly 32701b7213 Regen for fcntl64(). 2013-12-24 13:41:55 +00:00
njoly 71c7929bf4 Reduce diffs between arches, add fcntl64() to m68k. 2013-12-24 13:41:25 +00:00
hannken 7e0115bce6 It is not the task of sysvbfs_open() to check for unlinked nodes. 2013-12-24 09:56:18 +00:00
hannken 905b6b7730 It is not the task of tmpfs_open() to check for unlinked nodes.
Fix tmpfs_lookup() to always return ENOENT when looking up from
an unlinked directory.
2013-12-24 09:23:33 +00:00
skrll be521dde4c Remove local getsn and use cngetsn. 2013-12-23 15:34:16 +00:00
skrll c6f4b22b79 Revert previous commit. It was an accident. 2013-12-23 13:08:00 +00:00
msaitoh 70dd5b41f9 CPUID leaf 2 and 4 are only for Intel processors.
Almost the same as usr.sbin/cpuctl/arch/i386.c rev. 1.52.
2013-12-23 11:40:57 +00:00
msaitoh a608d207ef regen. 2013-12-23 10:05:09 +00:00
msaitoh 5874195e0a Add Intel C2000 devices. 2013-12-23 10:04:49 +00:00
kiyohara 4200b0bab8 Support to check the clock gating for Armada XP in armadaxp.c.
Also move the checking for clock gate of Kirkwood into kirkwood.c.
2013-12-23 04:12:09 +00:00
kiyohara c17671e989 Move Misc Registers from mvsocreg.h to armadaxpreg.h. These registers only
Armada XP.  The misc_base initializes in initarm() instead of mvsoc_bootstrap().
2013-12-23 03:19:43 +00:00
kiyohara bde63c5a67 Fixup model value for Kirkwood 88F6192.
Thanks for lwazidub at gmail com.
Add some KIRKWOOD_MISC_* Registers.
s/AUDIOSDIO/AUDIO/.
2013-12-23 02:52:47 +00:00
kiyohara add0f253cc Enable mvgbe and makphy. 2013-12-23 02:37:35 +00:00
kiyohara 9745ea1238 Support Basic Mode for Armada XP. 2013-12-23 02:23:25 +00:00
rkujawa 7598b3c28a Changes to ACA500 support:
- Add support for second (aux) CF slot.
- Rework wdc attachment to be more sane.
- Add support for clockport on ACA500.
- Fix style where appropriate.
2013-12-22 23:02:38 +00:00
mlelstv e0271abc62 Preallocate command and status buffers as auto allocation cannot
happen in intrrupt context.
2013-12-22 18:30:21 +00:00
mlelstv 9dd2780596 Catch illegal memory allocations in softints. 2013-12-22 18:29:25 +00:00
matt 7532101325 Now that cngetc supports -1 as a return value from the cn_getc routine,
let cngetc loop until a character is available so it can call the critpoll
hooks.
2013-12-22 18:20:46 +00:00
matt 51abc2a7e7 raise spl to IPL_HIGH when calling cngetc. Make sure to call
do_critpollhooks() when outputing and getting input.
2013-12-22 18:05:40 +00:00
njoly b50661d98e CTASSERT that native to compat errno translation tables are kept in
sync with native errno list.

Remove extra entries (linux) which resulted in bad translated values,
and add missing ones (ibcs2, osf1 and svr4) which made some out of
bounds accesses.
2013-12-22 17:14:22 +00:00
matt 7aa5a25a2b Use arm_cksumdata instead of .L_cksumdata
pop {..., pc} instead of pop {..., lr}; RET
2013-12-22 16:29:42 +00:00
nonaka 68be9a10fc regen 2013-12-22 07:25:01 +00:00
nonaka b87af9359a Added some Realtek devices. 2013-12-22 07:24:33 +00:00
rkujawa f7bd7656e0 Add preliminary support for the Individual Computers ACA500 in the form of acahf
driver. If ACA500 is equipped with supported accelerator with MMU, it allows
running NetBSD on an Amiga 500.

Since ACA is not autoconf-aware, and the probe procedure does not exist yet, the
driver is activated with the ACA500_SUPPORT kernel option. The acahf driver
is commented out in the GENERIC kernel for now (at least until it stops being
very experimental and hackish).

When it comes to ACA-specific hardware, for now the boot CF slot works. Support for everything else is incoming...
2013-12-22 02:21:51 +00:00
skrll 04e9e004ed Check interp after reading it. Checking newly allocated memory doesn't
work.

Hi Christos.
2013-12-21 17:44:33 +00:00
tsutsui a6e2218d95 Add and enable wsmux(4) in GENERIC (for mlterm-fb demonstration). 2013-12-21 17:12:36 +00:00
kiyohara 91d01b24a6 Add Marvell 88E1543. Tested on OPENBLOCKS_AX3. 2013-12-21 15:20:39 +00:00
kiyohara e18003215d Regen. 2013-12-21 15:18:21 +00:00
kiyohara 9b43ff34a8 Add Marvell 88E1543 Quad Port Gb PHY 2013-12-21 15:16:23 +00:00
christos 39826d358b Consistency checks for the length of the interpreter (the length includes
the trailing NUL): make sure it is not empty and has the proper length.
From Maxime Villard
2013-12-21 14:41:02 +00:00
msaitoh e73c08c0cd regen. 2013-12-21 09:24:11 +00:00
msaitoh 974c26e26d Add some Intel E600 and EG20T devices. 2013-12-21 09:23:36 +00:00
joerg a060b1754e Fix typo. 2013-12-20 12:46:42 +00:00
pooka 6971bddad3 include shmif_dumpbus 2013-12-20 10:13:24 +00:00
pooka 1150b99ea3 use _KERNEL_RCSID only in _KERNEL, _RCSID elsewhere 2013-12-20 10:00:59 +00:00
pooka 1a7f9ac66c header massage, mostly improves portability 2013-12-20 09:06:35 +00:00
matt 015a4426f3 When restoring SPRSR, use spsr_fsxc not spsr_all so bits[23-8] are restored.
This should fix use of simd instructions that rely on the GE bits.
2013-12-20 07:01:06 +00:00
matt 053c552b29 If we are exec'ing AAPCS and running on armv6+, disable alignment faults
since gcc 4.8 will generate code that uses unaligned accesses.
2013-12-20 06:50:28 +00:00
matt 173c27211d Add CPU_IS_ARMV6_P() macro 2013-12-20 06:48:09 +00:00
jakllsch d5501e90a2 Add support for the brandless "QF9700" USB 1.1 to 10Mbit/s Ethernet adapter.
The multicast filter doesn't appear to work, so put the chip in promisc
mode so that IPv6 NDP works.
2013-12-20 01:17:54 +00:00
jakllsch b1c1d4380e regen 2013-12-20 01:06:21 +00:00
jakllsch 550d9d9378 Add QF9700 USB Ethernet. 2013-12-20 01:05:26 +00:00
joerg 9373e80503 Use explicit register pairs as arguments for ldrd. 2013-12-19 23:48:44 +00:00
mlelstv 757ba59472 cpu_infos is a NULL terminated array, not an array followed by a 0 byte. 2013-12-19 23:36:07 +00:00
joerg bf8998f579 Make SYMTAB_SPACE a plain number, the expression creates invalid syntax
constructs with Clang.
2013-12-19 22:45:38 +00:00
joerg ffb4683716 Bump SYMTAB_SPACE to 600k for clang. 2013-12-19 22:45:02 +00:00
joerg cab640eb16 ist_maps is only used by code in #if 0, so apply it here as well. 2013-12-19 22:13:38 +00:00
rmind 4aae4db7db Add shm_open(3) and shm_unlink(3) to support POSIX shared memory objects.
They are implemented using tmpfs (mounted at /var/shm).

Discussed on tech-{kern,userlevel} (quite a while ago).
2013-12-19 19:11:50 +00:00
msaitoh 60fd7f72f9 Add support for FTDI FT230X. 2013-12-19 08:22:40 +00:00
msaitoh a60de8f7b3 regen. 2013-12-19 08:22:13 +00:00
msaitoh 196684f4fb Add FTDI FT230X. 2013-12-19 08:21:49 +00:00
pooka c0dbaf1358 install rumperr.h 2013-12-18 20:14:02 +00:00
pooka 796ef7fdf2 regen 2013-12-18 20:12:08 +00:00
pooka 31ca0a94e8 generate errno -> str routine (for portable programs) 2013-12-18 20:10:58 +00:00
skrll 4c748a0caf Remove unused variable 2013-12-18 13:03:59 +00:00
skrll 615e0974de Initialise len in ti_iic_do_{read,write}.
Is this worth a pullups?
2013-12-18 12:54:35 +00:00
skrll e1d983db73 Deal with unused variables. 2013-12-18 12:54:01 +00:00
skrll 2c7ba894dc Remove unused variable. 2013-12-18 12:53:26 +00:00
skrll 2facbfc501 Remove unused variables. 2013-12-18 12:52:47 +00:00
skrll cfac49f5f3 Silence gcc 4.8 2013-12-18 12:43:59 +00:00
macallan 612b1d90d4 get rid of /dev/fb support which has never been used for anything other than
some highly experimental code in xf86/Xsun
2013-12-18 11:53:17 +00:00
martin 19817e28e0 The "close" call returns no arguments 2013-12-18 10:09:56 +00:00
msaitoh 5aff38d633 Fix comment. 2013-12-18 03:20:19 +00:00
alnsn ceb0a8f1ae Turn on executable allocator an use module_map with UVM_KMF_EXEC flag.
This should fix execution of code generated by librumpkern_sljit.
Also enable global lock.
2013-12-17 22:39:23 +00:00
njoly b647d3d5d8 Cleanup compat linux errnos by adding generic errnos in a single file.
Use it for all arches except alpha and mips.
Add a few missing native to linux errno conversions.
2013-12-17 22:14:24 +00:00
martin 4d03a889b8 Free pathbuf in an error path.
From Maxime Villard.
2013-12-17 20:45:22 +00:00
martin 89c87ea341 Instead of voodo casts use simple byte pointer arithmetic and memcpy to
create the "packed" binary format we pass out to userland when querying
the router/prefix list.
2013-12-17 20:25:00 +00:00
jakllsch 3b480d7c2c Add an ID for VIA VT1705. 2013-12-17 17:13:46 +00:00
martin fff1da5204 Remove unused variables. 2013-12-17 16:00:23 +00:00
pooka 7d5558e88d fix tyop 2013-12-17 14:30:18 +00:00
joerg e6e0935156 Mark bcmrng_write_4, bcmccb_write_4 and bcmccb_read_4 as unused 2013-12-17 13:13:26 +00:00
joerg df74496f3d armgic_priority_to_ipl is only used in #if 0'd code, so apply that as
well.
2013-12-17 13:12:45 +00:00
joerg 1f704fde40 delta can't be negative. Wrapped value is seen as large positive, so
covered already.
2013-12-17 13:11:18 +00:00
joerg 9d9e9fc48d Initialiase nop count to avoid uninitalised use warnings from Clang.
XXX Nop should be spelled in a better way
2013-12-17 01:29:39 +00:00
joerg b6c4ec7e11 Mark tmr0_read and tmr1_read as unused. 2013-12-17 01:28:56 +00:00
joerg 9b22fabbbc Nuke __raise. 2013-12-17 01:28:04 +00:00
joerg 0c87c94ac0 Write out register pairs for strd. 2013-12-17 01:27:21 +00:00
joerg 599ef1ce3d ib_get is not used in the evbarm/OPENRD kernel, so mark it as such. 2013-12-17 01:17:39 +00:00
joerg f0be17a3a4 Fix memset arguments. 2013-12-17 01:00:16 +00:00
lneto ae5a3d714d added luasystm files (for some reason it wasn't done in the last commit) 2013-12-17 00:02:22 +00:00
lneto 1c57b8e8aa renamed luacore to luasystm 2013-12-16 23:54:26 +00:00
lneto b716fbc627 using luaL_register() in luapmf 2013-12-16 23:35:48 +00:00
palle 418e019b05 Updates to pmap_bootstrap() for sun4v - parts from OpenBSD - OK martin@ 2013-12-16 20:17:34 +00:00
jakllsch 31df9552fd Use (new) mii_mpd_rev in struct mii_softc rather than providing our own
mii_revision in struct rgephy_softc.
2013-12-16 18:29:57 +00:00
mrg c15bdfe60d apply __diagused where appropriate. 2013-12-16 15:49:40 +00:00
mrg f67d132c4b avoid unused variables outside of diag code. 2013-12-16 15:49:25 +00:00
mrg a2d73b560f use (void) when we don't care about the return value 2013-12-16 15:49:00 +00:00
mrg 9408126e02 apply __diagused where appropriate and remove useless variables 2013-12-16 15:48:29 +00:00
mrg 635e88e2a7 - remove unused variables
- use (void) when we don't care about the return value
- move variables inside their usage #if
2013-12-16 15:46:57 +00:00
mrg d07fd9689b - remove unused variables
- use (void) when we don't care about the return value
2013-12-16 15:45:29 +00:00
mrg 8f515fa69b apply __diagused where appropriate. 2013-12-16 15:44:41 +00:00
pooka f5bd9f4075 Translate return values for emulations, e.g. Linux. For ports without
__HAVE_MINIMAL_EMUL, we simply look up the values from p->p_emul->e_errno.
For ports which cannot afford to keep an extra pointer per emul structure
around, we hope there is __HAVE_SYSCALL_INTERN support and thread the
errno values through p_emuldata.  Notably, we cannot alter the syscall
method like most ports do with syscall_intern, since they do it via
p_mdproc, so MI code is not possible there.
2013-12-16 15:36:29 +00:00
skrll 3f73102cea Use #if defined in previous. 2013-12-16 12:08:14 +00:00
skrll 40f7ff546c Backout the ED/QH change removal in [eo]hci_device_request.
Reports of the KASSERT firing mean this needs more thought/testing.
2013-12-16 10:04:20 +00:00
htodd 3ebdd249d0 Fix build. 2013-12-16 01:51:19 +00:00
pooka c4a2c1fa88 XXXgcc Wuninitialized kludge 2013-12-15 21:18:01 +00:00
pooka e546a6c273 Allow overriding CTASSERT. This helps with building NetBSD sources with
compilers that don't support __COUNTER__ -- shifting the CTASSERTs
around to avoid __LINE__ conflicts is a hopeless struggle.
2013-12-15 21:15:41 +00:00
pgoyette 2b1203b7ab Make the auto-unload timeout configurable via sysctl, and if the timeout
is set to zero, disable all auto-unloads (even those that were "scheduled"
previously).
2013-12-15 21:09:50 +00:00
jakllsch 2bc43492e1 Correct a KASSERT's logic (SET vs. GET). 2013-12-15 18:50:25 +00:00
joerg 69fd5d473d Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
2013-12-15 18:08:37 +00:00
para ed410bc93c mark variable usage, fix non DIAGNOSTIC non DEBUG build 2013-12-15 17:15:34 +00:00
mbalmer 3f37aa7ac8 lcr is only used when COM_16650 is defined; unbreak the build 2013-12-15 15:55:39 +00:00
skrll 0bc393adf1 Only attempt to set 64byte fifo for 16750 when COM_16750 is defined.
Hi kiyohara.

PR/48359 NetBSD/cobalt 6.99.25 GENERIC kernel freeze at initializing com0
2013-12-15 11:06:57 +00:00
skrll 76e8011a73 Now that usbd_new_device has been fixed there is no need to touch QHs/EDs
in [eo]hci_device_request.

KASSERT the address and maximum packet length just in case.
2013-12-15 10:25:23 +00:00
skrll 1fecb92877 Trailing whitespace 2013-12-15 09:14:09 +00:00
skrll a85d34a9ea Trailing whitespace. 2013-12-15 09:13:47 +00:00
christos dbf7e7e879 Add -Wno-uninitialized with -Os so that we don't get spurious gcc warnings. 2013-12-15 07:52:53 +00:00
pgoyette f63e4f52f1 Regen 2013-12-15 04:24:53 +00:00
pgoyette b11d18ff35 Add ASMedia ASM1042 xHCI USB3 controller 2013-12-15 04:21:52 +00:00
christos 26892b74da Add linted comments. 2013-12-15 03:45:07 +00:00
christos cfda4afeac only prevent autounload, not regular unload when we have exports 2013-12-14 22:04:03 +00:00
tsutsui 612c55f831 Initialize capabilities in struct wsscreen_descr per omrasops settings.
Now REVERSE characters are drawn properly.
2013-12-14 19:51:13 +00:00
tsutsui b31c3e581b Make omrasops copycols() op work even if columns are not 32 bit aligned.
This means command line editing works properly in any cases.

The bitcopy strategies for 1bpp copycols() op are taken from
recently fixed MI sys/dev/rasops/rasops_bitops.h.
GETBITS() and PUTBITS() m68k asm macro are taken from hp300.

Tested on both 1bpp (on LUNA-II) and 4bpp (on LUNA) framebuffers.
2013-12-14 19:27:41 +00:00
njoly 6d25749476 Regen. 2013-12-14 17:35:11 +00:00
njoly d491161468 Use native/rump syscalls for pread/pwrite instead of linux ones
which only exist to deal with PAD argument.
2013-12-14 17:34:47 +00:00
christos d956cedc98 don't allow the nfs server module to unload if it has exported filesystems. 2013-12-14 16:19:28 +00:00
jakllsch 1c2bdb3538 In xhci_init() use aprint_debug_dev() instead of device_printf(). 2013-12-14 16:03:04 +00:00
matt 6dbb00d82d If we can't enable VFP/VFP2 via the CPACCESS register, bail since there
isn't a VFP.
2013-12-14 15:47:18 +00:00
njoly f820357119 Regen. 2013-12-14 10:30:50 +00:00
njoly 3fa945c034 Add syscall wrapper for mknodat(2) to deal with PAD argument difference
between rump and linux versions.
2013-12-14 10:29:45 +00:00
skrll a07e26d1c4 Comment out unsed variable. Left for reference. 2013-12-14 10:00:42 +00:00
skrll c329d2d44d Remove unused variables. 2013-12-14 09:58:03 +00:00
skrll 7c36e1d910 Sprinkle __unused. 2013-12-14 09:52:33 +00:00
pgoyette 4a5c98c1a5 Add SYS_compat_60__lwp_park to the list of syscalls that can be resolved by loading kernel modules.
This seems to address my PR kern/48027
2013-12-14 06:27:57 +00:00
nakayama 00399ad2af Remove duplicate/unused declarations. 2013-12-14 05:28:47 +00:00
jakllsch 2b8a2516f8 Put previous (RTK_HWREV_8168F) in numeric sort order like its neighbors. 2013-12-13 20:52:48 +00:00
christos 32742370f4 use CPU_INFO_ITERATOR instead of int. 2013-12-13 10:31:05 +00:00
pedro 584364e2ea regen 2013-12-13 07:14:13 +00:00
pedro 4cc7c4eb88 Add entries for Atheros AR9462 and a new flavour of Intel Haswell
Integrated Graphics Device; OK rmind@ mbalmer@
2013-12-13 07:11:09 +00:00
dsl 25a3e10fc1 Since regs->fxstate is actually of type 'struct fxsave64' use a structure
copy instead of a 'not obviously incorrect' memcpy().
2013-12-12 22:41:03 +00:00
matt a9c8f9282e Make ptrdiff_t available in the kernel. 2013-12-12 17:53:03 +00:00
nonaka 23185d9d77 regen 2013-12-12 15:08:16 +00:00
nonaka 24fb0dda05 Added some MediaTek wifi adapters. 2013-12-12 15:07:40 +00:00
nonaka 9d6d8d8e31 regen 2013-12-12 15:05:55 +00:00
nonaka 4644af88a5 Added Radeon HD6320 Graphics. 2013-12-12 15:05:07 +00:00
pooka f11ea73cc4 regen 2013-12-11 23:14:03 +00:00
pooka 87860d8cc5 need to grab KTRFACv[n] too 2013-12-11 23:13:48 +00:00
dsl 1173bfa79b Remove the fields that were used to save the i387 fp state on interrupt.
They were written but never read.
Possibly they should be saved for 32 bit processes, but that might be a relic
  from real i387 where the fpu was actully asynchronous.
2013-12-11 22:06:51 +00:00
pooka ef738750b7 reregengen 2013-12-11 09:45:01 +00:00
pooka e69be3f980 create rump kernel wrapper for utrace() too 2013-12-11 09:40:56 +00:00
msaitoh 7abb5a02b6 Make new function named tsc_is_invariant() to avoid code duplication.
The behavior of acpicpu_md_flags() will change on some CPUs because
the detecting code of invariant TSC is replaced with newer code.
2013-12-11 02:14:08 +00:00
joerg aceb213538 Allow kernel code to access constant databases by moving cdbr(3) and the
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00