summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Clean up whitespace, remove "register" keyword, ANSIfy.des2003-10-232-134/+76
| | | | No functional changes.
* 0x7FFFFFFFFF is >32 bits and needs an explicit LL.des2003-10-232-2/+2
|
* Cleanup. Remove the md_flags for threads. It's not used. The flagsmarcel2003-10-231-35/+21
| | | | | | | | we had were bogus. While here, reassign the copyright to the Project. There's nothing in this files that originates from NetBSD, especially now that the FreeBSD/alpha bits have been removed, but even then the amount of inherited code that we actually used was nil.
* Reimplement unaligned_fixup() using the new disassembler and amarcel2003-10-231-582/+136
| | | | | | | | mcontext_t for the register values. Currently only ld8 and ldfd instructions are handled as those are the ones we need now (a misaligned ld8 occurs 4 times in ntpd(8) and a misaligned ldfd occurs once in mozilla 1.4 and 1.5). Other instructions are added when needed.
* Remove unused include of <machine/inst.h>marcel2003-10-231-1/+0
|
* Remove prototype of unaligned_fixup() and fix a nearby style(9)marcel2003-10-231-3/+1
| | | | bug.
* Add prototypes for spillfd() and unaligned_fixup().marcel2003-10-231-0/+2
|
* Add spillfd(). This function loads a double-precision FP registermarcel2003-10-231-0/+10
| | | | | | | | at the first address and spills it to the second address. This allows unaligned_fixup() to update the context of the process in a way that assures proper rounding. Similar functions for single-and extended-precision are added when needed.
* Hook-up the new disassembler.marcel2003-10-231-0/+3
|
* Use a more robust API altogether for the amd64_get_fsbase() etc functions.peter2003-10-231-4/+4
|
* Add a new disassembler that improves over the previous disassemblermarcel2003-10-235-0/+5915
| | | | | | | | | | | | | | | in that it provides an abstract (intermediate) representation for instructions. This significantly improves working with instructions such as emulation of instructions that are not implemented by the hardware (e.g. long branch) or enhancing implemented instructions (e.g. handling of misaligned memory accesses). Not to mention that it's much easier to print instructions. Functions are included that provide a textual representation for opcodes, completers and operands. The disassembler supports all ia64 instructions defined by revision 2.1 of the SDM (Oct 2002).
* Look at the equipment list for amd64 as well as i386 for autodetectingpeter2003-10-232-4/+4
| | | | floppy drives in the absence of hints.
* Fix mismerge from one tree to another: add (imp2003-10-231-1/+1
|
* Renumber the sysarch vectors for amd64 specific syscalls so that I canpeter2003-10-231-6/+5
| | | | | | | implement i386 compat numbers where it makes sense. This would save a syscall translation layer. Yes, this breaks the abi slightly again, but fortunately its just a recompile rather than tweaking the source. I will be fixing the libc stubs while I'm here.
* more unused item cleanupimp2003-10-231-2/+0
|
* BASE is no longer used, and is an appendix. Remove it.imp2003-10-231-5/+0
|
* Learn basic C.imp2003-10-231-2/+3
| | | | | ((uint32_t *) v) + 10 != ((caddr_t) v) + 10 so apply the cast later.
* Reduce debug messages.simokawa2003-10-231-2/+4
|
* Allow access to the field if it is within the region size rounded upnjl2003-10-221-0/+19
| | | | | | | | | | | to a multiple of the access byte width. This overcomes errors in the AML often found in Toshiba laptops. These errors were allowed by the Microsoft ASL compiler and interpreter. This will NOT be imported by ACPI-CA so make the change on our local branch. File was already off the vendor branch. Submitted by: blaz Original idea: Rick Richardson for Linux
* Add the ACPICA_PEDANTIC option which is off by default. Enabling it willnjl2003-10-223-3/+13
| | | | | | enable strict checks of the AML. Our default behavior will be to relax checks to work on as many platforms as possible. Also clean up and document other ACPI options while I'm here.
* mac_Finish break-out of kern_mac.c into parts:rwatson2003-10-223-8268/+15
| | | | | | | | | | | | | | | | | | | | | | | Include src/sys/security/mac/mac_internal.h in kern_mac.c. Remove redundant defines from the include: SYSCTL_DECL(), debug macros, composition macros. Unstaticize various bits now exposed to the remainder of the kernel: mac_init_label(), mac_destroy_label(). Remove all the functions now implemented in mac_process/mac_vfs/mac_net/ mac_pipe. Also remove debug counters, sysctls exporting debug counters, enforcement flags, sysctls exporting enforcement flags. Leave module declaration, sysctl nodes, mactemp malloc type, system calls. This should conclude MAC/LINT/NOTES breakage from the break-out process, but I'm running builds now to make sure I caught everything. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Variable cleanup following break-out of kern_mac.c into sys/security/mac:rwatson2003-10-223-48/+30
| | | | | | | | | | | | Unstaticize mac_late. Remove ea_warn_once, now in mac_vfs.c. Unstaticisize mac_policy_list, mac_static_policy_list, use struct mac_policy_list_head instead of LIST_HEAD() directly. Unstaticize and un-inline MAC policy locking functions so they can be referenced from mac_*.c. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Rename error_select() to mac_error_select(), and unstaticize so itrwatson2003-10-223-15/+12
| | | | | | | can be used from src/sys/security/mac/mac_*.c. Obtained from: TrustedBSD Project Sponosred by: DARPA, Network Associates Laboratories
* Hook up to the build for options MAC:rwatson2003-10-221-0/+5
| | | | | | | | | | | | | | security/mac/mac_net.c security/mac/mac_pipe.c security/mac/mac_process.c security/mac/mac_system.c security/mac/mac_vfs.c Note: Here begins a period of NOTES/LINT build breakage due to duplicate symbols that will shortly be removed from kern_mac.c. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove non-VFS related code from mac_vfs.c. Leave:rwatson2003-10-221-2987/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extended attribute transaction warning flag if transactions aren't supported on the EA implementation being used. Debug fallback flag to permit a less conservative fallback if reading an on-disk label fails. Enforce_fs toggle to enforce file systme access control. Debugging counters for file system objects: mounts, vnodes, devfs_dirents. Object initialization, destruction, copying, internalization, externalization, relabeling for file system objects. Life cycle operations for devfs entries. Generic extended attribute label implementation for use by UFS, UFS2 in multilabel mode. Generic single-level label implementation for use by all file systems when in singlelabel mode. Exec-time transition based on file label entry points. Vnode operation access control checks (many). Mount operation access control checks (few). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Fix a braino memory leak.phk2003-10-221-1/+1
| | | | Found by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
* Remove non-system bits from mac_system.c. Leave:rwatson2003-10-221-3692/+2
| | | | | | | | | | Enforce_kld, enforce_system access control toggles. Access control checks for: kenv operation, kld operations, sysarch_ioperm(), acct(), nfsd(), reboot(), settime(), swapon(), swapoff(), sysctl(). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove non-credential/process-related bits from mac_process.c. Leave:rwatson2003-10-221-3473/+8
| | | | | | | | | | | | | | | | | Enforce_process, enforce_vm access control enforcement twiddles. Credential, process label counters. VM revocation sysctls/tunables. Credential label management, internalization/externalization/relabel code. Process label management. Proc0, proc1 creation, cred creation. Thread userret. mac_execve_enter(), _exit(), transition at exec-time. VM revocation on process label change. Process-related access control checks (visibility, debug, signal, sched). Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove non-pipe code from mac_pipe.c. Leave:rwatson2003-10-221-3712/+5
| | | | | | | | | | | | | | | Pipe enforcement flag. Pipe object debugging counters. MALLOC type for MAC label storage. Pipe MAC label management routines, externalize/internalization/change routines. Pipe MAC access control checks. Un-staticize functions called from mac_set_fd() when operating on a pipe. Abstraction improvements in this space seem likely. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* we have ppsratecheck().ume2003-10-222-74/+1
|
* Remove non-network related contents from mac_net.c. Leave:rwatson2003-10-221-3027/+3
| | | | | | | | | | | | | Network and socket enforcement toggles. Counters for network objects (mbufs, ifnets, bpfdecs, sockets, and ipqs). Label management routines for network objects. Life cycle events for network objects. Label internalization/externalization/relabel for ifnets, sockets, including ioctl implementations for sockets, ifnets. Access control checks relating to network obejcts. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* IP6Q_LOCK_CHECK -> IP6Q_LOCK_ASSERT.ume2003-10-221-6/+6
| | | | Sugested by: sam
* Initialize bp->b_offset to the physical offset in partitiontegge2003-10-221-6/+5
| | | | so GEOM knows where to read from disk.
* drop the code of HAVE_NRL_INPCB part. our system doesn'tume2003-10-223-63/+0
| | | | use NRL style INPCB.
* The following shared types/constants/interfaces/... are requiredrwatson2003-10-221-3761/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in mac_internal.h: Sysctl tree declarations. Policy list structure definition. Policy list variables (static, dynamic). mac_late flag. Enforcement flags for process, vm, which have checks in multiple files. mac_labelmbufs variable to drive conditional mbuf labeling. M_MACTEMP malloc type. Debugging counter macros. MAC Framework infrastructure primitives, including policy locking primitives, kernel label initialization/destruction, userland label consistency checks, policy slot allocation. Per-object interfaces for objects that are internalized and externalized using system calls that will remain centrally defined: credentials, pipes, vnodes. MAC policy composition macros: MAC_CHECK, MAC_BOOLEAN, MAC_EXTERNALIZE, MAC_INTERNALIZE, MAC_PERFORM. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* - Retire vm_pageout_page_free(). Instead, use vm_page_select_cache() fromalc2003-10-223-41/+14
| | | | | | vm_pageout_scan(). Rationale: I don't like leaving a busy page in the cache queue with neither the vm object nor the vm page queues lock held. - Assert that the page is active in vm_pageout_page_stats().
* pretect ip6 reassemble queue by use of mutex.ume2003-10-221-45/+16
| | | | Submitted by: rwatson (with modification)
* - implement lock around IPv6 reassembly, to avoid panic due toume2003-10-224-16/+99
| | | | | | | frag6_drain (mutex version will come later). - limit number of fragments (not fragment queues) in kernel. Obtained from: KAME
* protect sid_default and sid.ume2003-10-221-1/+36
| | | | Submitted by: rwatson (with modification)
* reduce calling in6_addr2zoneid().ume2003-10-221-6/+6
|
* protect by IFNET_RLOCK.ume2003-10-221-0/+2
|
* more strict sanity check for ESP tailsuz2003-10-221-1/+1
| | | | Obtained from: KAME
* Some upgrade instructions.harti2003-10-221-0/+14
|
* This commit was generated by cvs2svn to compensate for changes in r121326,harti2003-10-2210-0/+6498
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of the NgATM SAAL layer shared kernel/user part v0.9.harti2003-10-2210-0/+6498
|
* Remove a gcc-ism: declaring a variable array at the end of a structureharti2003-10-221-4/+4
| | | | | as [0] and replace it with the ISO way of writing []. This has caused warnings with WARNS=6.
* Forgotten commit: If a provider has zero sectorsize, it is anphk2003-10-221-6/+3
| | | | | | indication of lack of media. Tripped up: peter
* terminate the rx descriptor list with a self-linked entrysam2003-10-221-3/+21
| | | | so high phy error rates on a 5212 don't cause rx overruns
* - Assert that every page found in the active queue is an active page.alc2003-10-221-7/+2
|
* Turn off ISP_SMPLOCK- not to be turned on again.mjacob2003-10-211-1/+1
| | | | | Until we can have perfect knowledge that all callers above us think it's okay for us to sleep, releasing *our* locks of course, we don't dare try and sleep.
OpenPOWER on IntegriCloud