summaryrefslogtreecommitdiffstats
path: root/sys/pc98/i386
Commit message (Collapse)AuthorAgeFilesLines
* MFi386: revision 1.554.nyan2003-02-231-1/+1
|
* Remove BDE_DEBUGGER.jake2003-01-281-7/+1
| | | | Discussed with: bde
* MFi386: revision 1.552.nyan2003-01-101-2/+0
|
* MFi386: revision 1.551.nyan2002-12-041-3/+6
| | | | Approved by: re (jhb)
* MFi386: revision 1.550.nyan2002-11-171-1/+2
|
* Print real / avail memory in megabytes rather than kilobytes.des2002-11-091-4/+4
|
* Move the definitions of the hw.physmem, hw.usermem and hw.availpagestmm2002-11-071-37/+0
| | | | | | | | | | | sysctls to MI code; this reduces code duplication and makes all of them available on sparc64, and the latter two on powerpc. The semantics by the i386 and pc98 hw.availpages is slightly changed: previously, holes between ranges of available pages would be included, while they are excluded now. The new behaviour should be more correct and brings i386 in line with the other architectures. Move physmem to vm/vm_init.c, where this variable is used in MI code.
* Remove what was a temporary bogus assignment of bits of siginfo_t, as it doesjmallett2002-11-061-4/+0
| | | | | | not look like the prerequisites to fill it in properly will be in the tree for the upcoming release, but it's mostly done, so there is no need for these to stay around to remind us.
* MFi386: revisions 1.544 and 1.545.nyan2002-10-261-40/+320
|
* MFi386: revision 1.543.nyan2002-10-221-39/+39
|
* - kserunnable() is now sched_runnable() change instances of these wherejeff2002-10-121-2/+3
| | | | | appropriate. - include sched.h to see this new api.
* Fixed SBUS_RA_*_region_* functions.nyan2002-10-101-64/+167
|
* MFi386: revisions 1.539, 1.540 and 1.541.nyan2002-10-081-12/+20
|
* MFi386: revisions 1.536 and 1.538.nyan2002-09-241-6/+4
|
* For reasons now lost in historical fog, the bounds_check_with_label()phk2002-09-201-59/+0
| | | | | | | | | | | | function were put in i386/i386/machdep.c from where it has been cut and pasted to other architectures with only minor corruption. Disklabel is really a MI format in many ways, at least it certainly is when you operate on struct disklabel. Put bounds_check_with_label() back in subr_disklabel.c where it belongs. Sponsored by: DARPA & NAI Labs.
* MFi386: revisions 1.534 and 1.535.nyan2002-09-191-9/+201
|
* Allocate KSEs and KSEGRPs separatly and remove them from the proc structure.julian2002-09-151-1/+1
| | | | | | | | | next step is to allow > 1 to be allocated per process. This would give multi-processor threads. (when the rest of the infrastructure is in place) While doing this I noticed libkvm and sys/kern/kern_proc.c:fill_kinfo_proc are diverging more than they should.. corrective action needed soon.
* Fill out two fields (si_pid, si_uid) in the siginfo structure handed backjmallett2002-09-071-0/+2
| | | | | | | | | | | | | | | | to userland in the signal handler that were not being iflled out before, but should and can be. This part of sendsig could be slightly refactored to use an MI interface, or ideally, *sendsig*() would have an API change to accept a siginfo_t, which would be filled out by an MI function in the level above sendsig, and said MI function would make a small call into MD code to fill out the MD parts (some of which may be bogus, such as the si_addr stuff in some places). This would eventually make it possible for parts of the kernel sending signals to set up a siginfo with meaningful information. Reviewed by: mux MFC after: 2 weeks
* Diff reduction in comments for filling the siginfo structure - refer tojmallett2002-09-071-1/+1
| | | | | filling in the POSIX parts, when doing the same thing in every port of FreeBSD.
* Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)peter2002-09-071-0/+7
| | | | | | | | if compiling with I686_CPU as a target. CPU_DISABLE_SSE will prevent this from happening and will guarantee the code is not compiled in. I am still not happy with this, but gcc is now generating code that uses these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher.
* Take a shot at fixing up a whole stack of style and other embarresingpeter2002-08-311-18/+12
| | | | | unforced errors that Bruce identified. I have not yet addressed all of his concerns.
* Change hw.physmem and hw.usermem to unsigned long like they used to bepeter2002-08-301-13/+23
| | | | | | | | | | | | | in the original hardwired sysctl implementation. The buf size calculator still overflows an integer on machines with large KVA (eg: ia64) where the number of pages does not fit into an int. Use 'long' there. Change Maxmem and physmem and related variables to 'long', mostly for completeness. Machines are not likely to overflow 'int' pages in the near term, but then again, 640K ought to be enough for anybody. This comes for free on 32 bit machines, so why not?
* Renamed poorly named setregs to exec_setregs. Moved its prototype tojake2002-08-291-1/+2
| | | | imgact.h with the other exec support functions.
* Use pmap_kenter() rather than vtopte() and bashing the page tablespeter2002-07-181-14/+3
| | | | directly.
* MFi386: revision 1.524.nyan2002-07-171-3/+10
|
* MFi386: sys/i386/i386/machdep.c revision 1.522.kato2002-07-141-1/+0
|
* s/procrunnable/kserunnable/ in a commentpeter2002-07-081-1/+1
|
* MFi386: revision 1.521nyan2002-06-301-1/+1
|
* MFi386: sys/i386/i386/machdep.c rev. 1.520.kato2002-06-251-2/+4
|
* MFi386: revision 1.519nyan2002-05-141-1/+1
|
* Rework the kernel environment subsystem. We now convert the staticmux2002-04-171-1/+2
| | | | | | | | | | | | | | | | | environment needed at boot time to a dynamic subsystem when VM is up. The dynamic kernel environment is protected by an sx lock. This adds some new functions to manipulate the kernel environment : freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be called after every getenv() when you have finished using the string. testenv() only tests if an environment variable is present, and doesn't require a freeenv() call. setenv() and unsetenv() are self explanatory. The kenv(2) syscall exports these new functionalities to userland, mainly for kenv(1). Reviewed by: peter
* MFi386: revision 1.517.kato2002-04-111-5/+9
|
* GC various bits and pieces of USERCONFIG from all over the place.phk2002-04-091-6/+0
|
* GC the "dumplo" variable, which is no longer used.phk2002-04-071-1/+0
| | | | A lot of sys/*/*/machdep.c seems not to be.
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+2
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Moved signal handling and rescheduling from userret() to ast() so thatbde2002-04-041-0/+2
| | | | | | | | | | | they aren't in the usual path of execution for syscalls and traps. The main complication for this is that we have to set flags to control ast() everywhere that changes the signal mask. Avoid locking in userret() in most of the remaining cases. Submitted by: luoqi (first part only, long ago, reorganized by me) Reminded by: dillon
* - Move the MI mutexes sched_lock and Giant from being declared in thejhb2002-04-021-10/+1
| | | | | | | | | | various machdep.c's to being declared in kern_mutex.c. - Add a new function mutex_init() used to perform early initialization needed for mutexes such as setting up thread0's contested lock list and initializing MI mutexes. Change the various MD startup routines to call this function instead of duplicating all the code themselves. Tested on: alpha, i386
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* MFi386: revision 1.508.kato2002-03-311-8/+12
|
* MFi386: revision 1.506.nyan2002-03-301-4/+9
|
* MFi386: revision 1.507.kato2002-03-271-1/+1
|
* Compromise for critical*()/cpu_critical*() recommit. Cleanup the interruptdillon2002-03-271-5/+9
| | | | | | | | | | | | | | | | | | | disablement assumptions in kern_fork.c by adding another API call, cpu_critical_fork_exit(). Cleanup the td_savecrit field by moving it from MI to MD. Temporarily move cpu_critical*() from <arch>/include/cpufunc.h to <arch>/<arch>/critical.c (stage-2 will clean this up). Implement interrupt deferral for i386 that allows interrupts to remain enabled inside critical sections. This also fixes an IPI interlock bug, and requires uses of icu_lock to be enclosed in a true interrupt disablement. This is the stage-1 commit. Stage-2 will occur after stage-1 has stabilized, and will move cpu_critical*() into its own header file(s) + other things. This commit may break non-i386 architectures in trivial ways. This should be temporary. Reviewed by: core Approved by: core
* MFi386: revision 1.505 (remove __P.)kato2002-03-201-6/+6
|
* MFi386: revision 1.504.kato2002-03-201-10/+4
|
* MFi386: revision 1.503.kato2002-03-201-60/+23
|
* MFi386: revision 1.502nyan2002-03-131-0/+4
|
* MFi386: revision 1.501nyan2002-03-101-1/+1
|
* MFi386: revision 1.498.nyan2002-03-021-2/+2
|
* MFi386: revision 1.497nyan2002-02-201-1/+2
|
* Add bus_space_unmap() and bus_space_free() functions to releasenyan2002-02-181-0/+15
| | | | a bus_space_handle allocated by bus_space_subregion().
OpenPOWER on IntegriCloud