aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a new global struct pwconf to store etcpath, rootdir and struct userconfBaptiste Daroussin2015-06-077-113/+86
| | | | | | | | Do not add anymore -R and -V to arglist Add an error message if both -V and -R are set in arguments Notes: svn path=/head/; revision=284118
* Fix pw userdel -r not deleting homedirBaptiste Daroussin2015-06-071-1/+1
| | | | Notes: svn path=/head/; revision=284117
* Include header libi386.h to silence the clang warning of implicit declarationMarcelo Araujo2015-06-071-0/+1
| | | | | | | | | | of functions biospci_*. Differential Revision: D2668 Reviewed by: rodrigc Notes: svn path=/head/; revision=284116
* Stop checking for ARM_TP_ADDRESS when we mean to check if building forAndrew Turner2015-06-075-26/+32
| | | | | | | ARMv6 or later. Notes: svn path=/head/; revision=284115
* Test explicitly the result of strcmp to be consistent with the rest of the codeBaptiste Daroussin2015-06-071-1/+1
| | | | Notes: svn path=/head/; revision=284114
* Improve readability by reducing indentations levelsBaptiste Daroussin2015-06-071-9/+11
| | | | Notes: svn path=/head/; revision=284113
* Remove one level of indentationBaptiste Daroussin2015-06-071-7/+6
| | | | Notes: svn path=/head/; revision=284112
* Move user deletion code into a separate function to improve readabilityBaptiste Daroussin2015-06-071-106/+115
| | | | Notes: svn path=/head/; revision=284111
* Instead of always casting the pw_checkname input to u_char * and casting it backBaptiste Daroussin2015-06-073-11/+12
| | | | | | | to char *, change pw_checkname to directly take char * in input Notes: svn path=/head/; revision=284110
* Remove pc_cpu, it was duplicating pc_cpuid so was unneeded.Andrew Turner2015-06-075-10/+2
| | | | Notes: svn path=/head/; revision=284109
* Sync with NetBSD:Baptiste Daroussin2015-06-072-19/+20
| | | | | | | | | | | | | - fix types of rl_completion_entry_function and rl_add_defun - call update pos before completion to refresh the screen From Thomas Eriksson Adjust API to a more modern readline (Ryo Onodera) remove duplicate declaration Notes: svn path=/head/; revision=284108
* compat nvpair.h: make sure that the names are mangled only for kernelAndriy Gapon2015-06-071-0/+4
| | | | | | | | | | | | | | | | Currently there is no good reason to mangle the userland API. The change was introduced in eac1d566b46edef765754203bef22c75c1699966, r279437. Also see https://reviews.freebsd.org/D1881. I am still convinced that nv should not have introduced intentionally conflicting API. Discussed with: rstone X-MFC with: r279437 Sponsored by: ClusterHQ Notes: svn path=/head/; revision=284107
* Implement '-s' to copy as symlink, similar to the current -l link(2) handling.Bryan Drewery2015-06-074-28/+46
| | | | | | | | | | | | This is also implemented in at least GNU coreutils cp. While here also improve the '-l' handling to not open(2) the source file as it does not actually need the descriptor. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=284106
* Cleanup some indentation issues.Bryan Drewery2015-06-071-9/+8
| | | | Notes: svn path=/head/; revision=284105
* Update print_INTEL_TLB() by the tag values from the Intel SDMKonstantin Belousov2015-06-065-3/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rev. 55. The modern CPUs cache and TLB descriptions looked quite questionable without the update, e.g. Haswell i7 4770S reported: Data TLB: 4 KB pages, 4-way set associative, 64 entries L2 cache: 256 kbytes, 8-way associative, 64 bytes/line After the update, the report is: Data TLB: 1 GByte pages, 4-way set associative, 4 entries Data TLB: 4 KB pages, 4-way set associative, 64 entries Instruction TLB: 2M/4M pages, fully associative, 8 entries Instruction TLB: 4KByte pages, 8-way set associative, 64 entries 64-Byte prefetching Shared 2nd-Level TLB: 4 KByte/2MByte pages, 8-way associative, 1024 entries L2 cache: 256 kbytes, 8-way associative, 64 bytes/line Some tags were apparently removed from the table 3-21, Vol. 2A. Keep them around, but add a comment stating the removal. Update the format line for cpu_stdext_feature according to the bits from the SDM rev.55. It appears that Haswells do not store %cs and %ds values in the FPU save area. Store content of the %ecx register from the CPUID leaf 0x7 subleaf 0 as cpu_stdext_feature2 and print defined bits from it, again acording to SDM rev. 55. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=284104
* Rework exception entry to help with DTrace. We now store the stack pointerAndrew Turner2015-06-061-8/+13
| | | | | | | | | before adjusting it to store any registers. This is needed as DTrace may need to adjust the kernel stack pointer, and previously the new stack pointer would have needed to be checked incase it was changed. Notes: svn path=/head/; revision=284103
* Set the correct UBLDR_LOADADDR for the Wandboard andGlen Barber2015-06-062-2/+2
| | | | | | | | | | | Cubox/Hummingboard images. Submitted by: ian MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=284102
* Readd the warning level gcc 4.2 still complainsBaptiste Daroussin2015-06-061-0/+2
| | | | Notes: svn path=/head/; revision=284097
* Re-introduce this - it doesn't compile clean on a mips targetAdrian Chadd2015-06-061-0/+1
| | | | | | | (eg CARAMBOLA2.) Notes: svn path=/head/; revision=284095
* Change BUS_PROBE_HOOVER from -500 to -1000000. We have PCI bus driversMarcel Moolenaar2015-06-061-1/+1
| | | | | | | | | | | return -1000 and -10000 to establish a pecking order and we don't want catch-all or match-all drivers to attach instead of them. With this change poto(4) can be compiled into the kernel (or preloaded from the loader), without impact. Notes: svn path=/head/; revision=284088
* Turns out amd64 is hit too by ix. When it works, turn it back on.Warner Losh2015-06-061-1/+0
| | | | Notes: svn path=/head/; revision=284087
* Revert previous change. The magical constants can't be changedMarcel Moolenaar2015-06-065-5/+5
| | | | | | | | | | | | | (easily) without having to go to other drivers to change the magical return values. This wouldn't be so bad if there were proper defines for these constants. In particular dev/acpica/acpi_pcib_pci.c returns -1000 as the probe priority and it's expected that this driver gets to attach over the common PCI bus drivers. Notes: svn path=/head/; revision=284086
* libdtrace: allow D libraries to declare dependencies on kernel modulesMark Johnston2015-06-065-0/+100
| | | | | | | | | | | | | | | The "depends_on module" pragma can be used to declare a dependency on a DTrace module, which for kernel probes corresponds to a KLD. Such dependencies cannot be checked if the KLD is compiled into the kernel. Therefore, allow a module dependency to be satisfied if either a kernel module or a KLD with the specified name is loaded. Differential Revision: https://reviews.freebsd.org/D2653 Reviewed by: gnn, rpaulo Reported by: gnn Notes: svn path=/head/; revision=284085
* ix module doesn't compile on i386, so remove it from the build.Warner Losh2015-06-061-1/+1
| | | | | | | It can be restored when it builds again. Notes: svn path=/head/; revision=284084
* Map the LAW for the RouterBoard's NAND LBC memory.Justin Hibbits2015-06-061-0/+12
| | | | | | | | | | | | | | | | | | | Without creating a LAW entry, any access to the NAND hangs the CPU. The original intent was to add a quirk to map all of the RouterBoard's LBC address space in one shot, which would fix it for both NAND and the CF, and that's probably still in the cards. However, for now, this makes NAND usable without a separate hack. Things left before the RouterBoard can run standalone: * Add partitions to the NAND (not specified by the FDT, which we currently require). * Create a YAFFS partition for the kernel. The Mikrotik boot loader requires a 4MB partition at the beginning of NAND, with a file called 'kernel' in the root. Notes: svn path=/head/; revision=284083
* unionfs: fix suspendability check bugsMark Johnston2015-06-061-8/+1
| | | | | | | | | | | | | - MNTK_SUSPENDABLE is set in mnt_kern_flag, not mnt_flag. - The lower layer of a unionfs mount is read-only, so the mount should be suspendable iff the upper layer is suspendable. - Remove a couple of superfluous comments. Differential Revision: https://reviews.freebsd.org/D2714 Reviewed by: kib, mjg Notes: svn path=/head/; revision=284082
* Add proto_busdma.c to the module.Marcel Moolenaar2015-06-061-0/+1
| | | | Notes: svn path=/head/; revision=284081
* Add DMA tag management to the C library and Python binding.Marcel Moolenaar2015-06-067-12/+385
| | | | Notes: svn path=/head/; revision=284080
* DMA support part 1: DMA tag create & destroyMarcel Moolenaar2015-06-066-20/+293
| | | | | | | | | | Create a special resource (= device special file) for management of tags and maps, as well as for mapping memory into the address space. DMA resources are managed using the PROTO_IOC_BUSDMA ioctl. Part 1 implements tag creation, derivation and destruction. Notes: svn path=/head/; revision=284079
* Don't return -10000 as the probe priority. That's lower than whatMarcel Moolenaar2015-06-065-5/+5
| | | | | | | | | | | | | | | | | BUS_PROBE_HOOVER is. Drivers like proto(4), when compiled into the kernel or preloaded, will render your system useless by virtue of attaching to your PCI busses. Return BUS_PROBE_GENERIC instead. It's just the next priority up from BUS_PROBE_HOOVER. No other meaning has been give to its use. While BUS_PROBE_DEFAULT seems like a better candidate, it's hard not to think that there must be some reason why these drivers return -10000 in the first place. Differential Revision: D2705 Notes: svn path=/head/; revision=284078
* Include a header required for vtophys().Ruslan Bukin2015-06-061-0/+1
| | | | Notes: svn path=/head/; revision=284077
* Remove useless WARNSBaptiste Daroussin2015-06-061-1/+0
| | | | Notes: svn path=/head/; revision=284076
* Remove WARNS atrun builds fine with clang and gccBaptiste Daroussin2015-06-061-1/+0
| | | | Notes: svn path=/head/; revision=284071
* Add const to the copyright variableBaptiste Daroussin2015-06-062-2/+2
| | | | | | | Bump WARNS to level 2 Notes: svn path=/head/; revision=284070
* Remove WARNS keylogin build fine with clang and gccBaptiste Daroussin2015-06-061-2/+0
| | | | Notes: svn path=/head/; revision=284069
* Bump WARNS level to 1Baptiste Daroussin2015-06-061-1/+1
| | | | Notes: svn path=/head/; revision=284068
* Remove unused variableBaptiste Daroussin2015-06-061-1/+0
| | | | Notes: svn path=/head/; revision=284067
* Make global variables staticBaptiste Daroussin2015-06-062-5/+3
| | | | | | | Remove WARNS from Makefile Notes: svn path=/head/; revision=284065
* Bump level WARNINGS to 3Baptiste Daroussin2015-06-061-2/+1
| | | | Notes: svn path=/head/; revision=284064
* Make global variables staticBaptiste Daroussin2015-06-062-5/+3
| | | | | | | Remove WARNS from Makefile Notes: svn path=/head/; revision=284063
* Remove WARNS vtfontcvt builds find with clang and gcc with maximum level warningBaptiste Daroussin2015-06-061-2/+0
| | | | Notes: svn path=/head/; revision=284062
* Fix historyBaptiste Daroussin2015-06-061-3/+3
| | | | Notes: svn path=/head/; revision=284061
* Fix HISTORY and add AUTHORS sectionBaptiste Daroussin2015-06-061-4/+10
| | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284060
* Fix history, add AUTHORS sectionBaptiste Daroussin2015-06-061-4/+9
| | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284059
* Complete documenting the HISTORYBaptiste Daroussin2015-06-061-1/+28
| | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284058
* Fix history (appeared in 1BSD)Baptiste Daroussin2015-06-061-3/+3
| | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284057
* Complete documenting the HISTORY of what remains of the 1BSD heritageBaptiste Daroussin2015-06-061-3/+20
| | | | | | | Obtained from: OpenBSD (by schwarze@) Notes: svn path=/head/; revision=284056
* Fix history: colrm(1) appeared in 1BSD not 3.0BSDBaptiste Daroussin2015-06-061-3/+8
| | | | | | | | | Add Author section Obtained from: OpenBSD (change by schwarze@) Notes: svn path=/head/; revision=284055
* Add myself (brnrd / Bernard Spil) to committers docsBernard Spil2015-06-061-0/+5
| | | | | | | | | | | | - Add myself and vsevolod (mentor) to committers-ports.dot - Add koobs and vsevolod as mentors to committers-ports.dot Submitted by: brnrd@freebsd.org Approved by: vsevolod (mentor), koobs (mentor) Differential Revision: https://reviews.freebsd.org/D2648 Notes: svn path=/head/; revision=284054
* Set the correct register when calling sigprocmask in longjmp.Andrew Turner2015-06-061-1/+1
| | | | | | | | Submitted by: Patrick Wildt <patrick@bitrig.org> Obtained from: drahn@bitrig.org Notes: svn path=/head/; revision=284053