summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Connect trm(4) to the build.cognet2002-10-134-0/+16
| | | | | Reviewed by: mux (mentor) Approved by: mux (mentor)
* Give GEOM modules a chance to specify their own init routine, in case theyphk2002-10-131-1/+4
| | | | | | have special requirements. Sponsored by: DARPA & NAI Labs.
* Import of the trm(4) driver (for Tekram DC395U/UW/F and DC315U SCSI adapters).cognet2002-10-132-0/+4352
| | | | | Reviewed by: mux, scottl Approved by: mux, scottl
* MODINFO_SIZE metadata has type size_t, not unsigned. This makes preloadedjake2002-10-131-1/+1
| | | | md root work on sparc64.
* Correctly account for MAXPARTITIONS in the CTASSERT() which protects thephk2002-10-131-1/+1
| | | | | | size of the disklabel structure. Hit by: schweikh
* Remove the P1003_1B kernel option; it is no longer used.mike2002-10-1311-21/+9
|
* - Remove a useless initialization for 'ronly', if it hadn't beenmux2002-10-131-2/+2
| | | | | there, we would have noticed that 'ronly' was uninitialized :-). - Kill a nearby 'register' keyword.
* Pass flags to VOP_CLOSE() corresponding to what was passed to VOP_OPEN().phk2002-10-131-0/+1
| | | | Submitted by: "Peter Edwards" <pmedwards@eircom.net>
* struct ia64_fpreg needs to be available outside of the kernel formike2002-10-131-2/+4
| | | | | | struct sigcontext. Pointy hat to: mike
* Remove <sys/_posix.h>; nothing uses it anymore.mike2002-10-131-84/+0
|
* Remove _KPOSIX_VERSION as a kernel option, nothing uses this any more.mike2002-10-133-10/+0
|
* Update a sysctl to use _POSIX_VERSION from <sys/unistd.h>, instead ofmike2002-10-131-2/+2
| | | | the kernel option _KPOSIX_VERSION.
* Move the _POSIX_VERSION constant from <unistd.h> to <sys/unistd.h>, somike2002-10-131-0/+3
| | | | that it can be used in-kernel for a sysctl.
* #ifdef _KERNEL not #if _KERNEL.mike2002-10-131-1/+1
| | | | Pointy hat to: mike
* Include <sys/_posix.h> directly instead of depending on <sys/proc.h>mike2002-10-131-0/+1
| | | | to include <sys/signal.h> to include <sys/_posix.h>.
* Build the kernel with -mconstant-gp. This means that function calls,marcel2002-10-131-0/+2
| | | | | | | | | | | | with the exception of indirect function calls, are assumed to be intra load module and thus that GP will be the same. This avoids saving, setting and restoring GP for each function call and reduces the kernel with ~320KB. There's obviously a performance benefit as well. Note that since we generally don't know if calls will be intra or inter load module when we're compiling kernel modules, -mconstant-gp cannot be used for modules.
* - Remove the do { } while(0) from the VOP lock assert macros. This wasjeff2002-10-131-7/+7
| | | | | | | not optimized away by the compiler in time for it to still leave the VOP functions as inlines. Submitted by: bde
* ia64 specific CFLAGS change:marcel2002-10-131-1/+1
| | | | | | | | | | | | Fix the "@gprel relocation against dynamic symbol xxx" linker error. Variables defined in the link unit and small enough to be put in the short data section will have a gp-relative access sequence (using the @gprel relocation). It is invalid to have @gprel relocations in shared libraries, because they are to be resolved by the static linker and not the dynamic linker. The -fpic option will cause @ltoff relocations for @gprel relocations, but the side-effects are untested (if any). Instead, disable/eliminate the short data section to achieve the same.
* o Fix a silly requirement for <machine/signal.h> to be included in themike2002-10-131-49/+70
| | | | | | | | | | | | middle of this header. o Remove unneeded conditionals to hide SIG* in the POSIX case. (C allows implementations to define additional SIG* constants.) o Add comments about missing features. o Move the location of the sigset_t typedef. o Update standards visibility conditionals. o Fix some assumptions about what pid_t and uid_t are defined as. o Remove size_t typedef and use __size_t in struct sigaltstack instead.
* Add standards visibility conditionals. Change any uses of sigset_t tomike2002-10-137-30/+69
| | | | struct __sigset to avoid depending on objects from <sys/signal.h>.
* Removed unused tl0_syscall.jake2002-10-121-84/+0
|
* o Fix typo in previous commit: s/sc-nsect/sc->nsect/marcel2002-10-121-2/+2
| | | | o Fix printf format error for %d format with long argument.
* Plug two holes where we returned to userland without restoringmarcel2002-10-122-0/+4
| | | | | | | | | | the predicate registers. Even though the ITLB and DTLB interrupts happen often enough, this bug didn't do much harm. The reason is that the interrupt handlers only modify p1 and since this is a preserved (callee-saved) register it is hardly used in code generated by the compiler. Compilers use scratch registers by default. Changing the interrupt handlers to use p6 (ie a scratch register) proved that the bug was in fact fatal.
* whitespace fixes.alfred2002-10-121-2/+2
|
* Have the linker collect and combine all unwind_info and unwindmarcel2002-10-121-2/+2
| | | | | sections so that the resulting load module has a single unwind table. This matches the behaviour in userland.
* Polish previous commit:marcel2002-10-121-13/+18
| | | | | | | | | | | o Replace KSTACK_PAGES with pages on panic() in pmap_new_thread(), o Fix style bugs in adjacent code, o Use NULL instead of 0 for pointers, o Save the virtual kstack address if we create an alternate kstack because 1) we can derive the physical (RR7) address from it and 2) we need the virtual address for contigfree() in pmap_dispose_thread(). Thus td_altkstack saves td_md.md_kstackvirt.
* MFp4: Include machine/vmparam.h to pull in definition of IA64_RR_BASE.marcel2002-10-121-0/+1
| | | | Obtained from: peter
* Make this compile on 64-bit architectures (e.g. ia64) by not assumingmarcel2002-10-122-4/+4
| | | | | pointers (but more precisely vm_offset_t) can be printed with %x. Use %p instead and cast the argument to caddr_t.
* Remove the dependency on ia64_cpu.h by not defining pmap_kextract()marcel2002-10-121-6/+1
| | | | | | as a trivial function that only calls ia64_tpa() and hence requires the prototype of ia64_tpa(), but by defining pmap_kextract as ia64_tpa. This solves the inclusion ordering issue in ddb/db_watch.c
* Fixed syntax errors and printf format errors.bde2002-10-121-3/+5
|
* o Add typedefs for size_t and ssize_t.mike2002-10-121-17/+100
| | | | | | | | | | | | | o Add typedefs for gid_t, off_t, pid_t, and uid_t in the non-standards case. o Add struct iovec (also defined in <sys/uio.h>). o Add visibility conditionals to avoid defining non-standard extentions in the standards case. o Change spelling of some types so they work without including <sys/types.h> (u_char -> unsigned char, u_short -> unsigned short, int64 -> __int64, caddr_t -> char *) o Add comments about missing restrict type-qualifiers and missing function.
* Increase the max dummynet hash size from 1024 to 65536. Default is stillseanc2002-10-122-2/+8
| | | | | | | | | 1024. Silence on: -net, -ipfw 4weeks+ Reviewed by: dd Approved by: knu (mentor) MFC after: 3 weeks
* Remove NO_GEOM option. No outstanding show-stoppers.phk2002-10-123-6/+0
| | | | Sponsored by: DARPA & NAI Labs.
* - kserunnable() is now sched_runnable() change instances of these wherejeff2002-10-122-4/+6
| | | | | appropriate. - include sched.h to see this new api.
* - Create a new scheduler api that is defined in sys/sched.hjeff2002-10-1221-528/+774
| | | | | | | | | | - Begin moving scheduler specific functionality into sched_4bsd.c - Replace direct manipulation of scheduler data with hooks provided by the new api. - Remove KSE specific state modifications and single runq assumptions from kern_switch.c Reviewed by: -arch
* Register the machine check private state spinlock on ia64.peter2002-10-121-0/+3
|
* Know that a 10160 is the same as a 12160.mjacob2002-10-121-0/+2
| | | | MFC after: 0 days
* cut/paste the pmap_new_altkstack stuff from the other platforms.peter2002-10-111-3/+47
| | | | | It's no different here. Update the rest of the kstack API's for scottl's changes.
* Call uma_zalloc on pvzone with M_NOWAIT, just like i386 and alpha.peter2002-10-111-1/+1
| | | | Otherwise we get hundreds of 'could sleep' during boot.
* - Move the 'done1' label down below the unlock of the proc lock and movejhb2002-10-111-10/+9
| | | | | | | | | | the locking of the proc lock after the goto to done1 to avoid locking the lock in an error case just so we can turn around and unlock it. - Move the exec_setregs() stuff out from under the proc lock and after the p_args stuff. This allows exec_setregs() to be able to sleep or write things out to userland, etc. which ia64 does. Tested by: peter
* The CAM system has it's own ideas of what locks are to be held by whom.phk2002-10-111-19/+24
| | | | | | | | | | | | | So do GEOM. Not a pretty sight. Take all the interesting stuff out of GEOM::disk_create(), and leave just the creation of the fake dev_t. Schedule the topology munging to happen in the g_event thread with g_call_me(). This makes disk_create() pretty lock-agnostic, almost lock-atheist. Tripped over by: peter Sponsored by: DARPA & NAI Labs
* s/modunload/kldunloadimp2002-10-111-1/+1
|
* Use the new freebsd output format from Binutils 2.13.1.obrien2002-10-113-3/+3
|
* Add typedefs for size_t and ssize_t, allow struct iovec to be definedmike2002-10-111-2/+18
| | | | | in other headers, add a visibility conditional to avoid namespace pollution in the standards case.
* Fix %z to always print values as signed like it is supposed to.jhb2002-10-111-2/+2
| | | | | Reviewed by: bde Tested on: i386 in ddb
* No need to hold Giant will harvesting RNG data; change callout_init sosam2002-10-112-2/+4
| | | | this no longer happens for callbacks.
* This should enable 10160 support. As best as I can tell, the samemjacob2002-10-113-4/+27
| | | | | | | f/w as 12160 is used, and otherwise, this is just a single channel variant of the 10160. MFC after: 0 days
* Fix the code so that it no longer on alpha refers to the now nonexistentmjacob2002-10-111-17/+1
| | | | | | | | | | pci_cvt_to_bwx. This doesn't necessarily make bge(4) now actually *work* on an alpha. It loads, configures, and then about 30 seconds later, my XP1000 hard freezes. But, hey, it's a start. Obtained from: gallatin@freebsd.org
* Use `unsigned long' instead of `u_long' so that this header compilesmike2002-10-111-2/+2
| | | | in X/Open case where `u_long' isn't available.
* Change iov_base's type from `char *' to the standard `void *'. Allmike2002-10-1119-37/+52
| | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'.
OpenPOWER on IntegriCloud