Commit Graph

6267 Commits

Author SHA1 Message Date
yamt
aad9f63765 before resuming from failure during return to user mode,
- clear PSL_NT.  it can be set by userland because setting it
  isn't a privileged operation.
  (cf. DSA-336-1, CVE-2002-0429)
- set PSL_I.  otherwise, if SIGSEGV is ignored, we'll
  end up to infinite loop, generating the same traps, with
  interrupts disabled.
2004-03-11 11:42:04 +00:00
yamt
b62ef7b657 update trap(), resume_iret and friends to match with
the recent version of INTRFASTEXIT.
might be related to PR/24711.
2004-03-11 11:39:25 +00:00
junyoung
0f89803028 Drop trailing spaces. 2004-03-05 11:30:50 +00:00
dsl
44eaa39982 Report errno value from boot1() - even though the standalone FS code
seems to translate everything into ENOENT.
2004-02-28 23:01:55 +00:00
dsl
da7ffa3cbe Look for /boot in the 'a' partition (from the label in the mbr partition)
if it can't be found in a filesystem (or raid set) at the start of the
mbr partition.
2004-02-28 22:32:23 +00:00
dbj
5b782a2183 allow err of IREENT_MAGIC when looking for interrupt frames 2004-02-28 20:30:58 +00:00
dbj
0dcc30f1ff fix bug in tracing current process by explicit pid 2004-02-28 02:58:35 +00:00
dbj
ba0f8cbecc fix an uninitialized variable problem that prevented t/u from working.
this also helps some when no symbols are available
2004-02-28 01:00:30 +00:00
dbj
d3e00c7d64 fix backtracing through interrupt frames and system call frames 2004-02-27 22:52:03 +00:00
enami
ac317107c7 Backout (part of) rev. 1.187, since the control no longer fall through. 2004-02-27 21:37:48 +00:00
jdolecek
b1d292e1be add yet another ServerWorks variant
from PR port-i386/24570 by Ray Phillips
2004-02-27 09:01:26 +00:00
perry
39c2ad666c fix another whitespace nit 2004-02-25 18:56:26 +00:00
perry
c5e487ca2c juggle tabs and spaces so comments don't nuke line lengths as badly 2004-02-25 18:50:01 +00:00
wiz
516a72484d Spell through with two hs. From Peter Postma. 2004-02-24 15:24:35 +00:00
junyoung
2402a07435 - Locate comment in right place.
- Fix wrt protection against multiple inclusion.
2004-02-21 04:31:40 +00:00
yamt
d749a2d0b4 defer pmap switching until it's really needed
to avoid frequent loading of cr3 register, which involves tlb flush.

with some fixes/improvements from Stephan Uphoff and Bang Jun-Young.
2004-02-20 17:35:01 +00:00
drochner
893de0a21e signal SIGSEGV/SEGV_ACCERR if non-executable stack is jumped to 2004-02-19 17:02:44 +00:00
uebayasi
5d41e06074 Update some URLs. 2004-02-19 12:23:47 +00:00
wiz
bb3980ab7a Remove last traces of DUMMY_NOPS option that was removed some
time ago.
From Jeff Rizzo in PR 24442.
2004-02-16 17:11:26 +00:00
bjh21
5aca86918f Add a new MI attribute, pckbc_machdep_cnattach, and change pckbc_cnattach()
to only call pckbc_machdep_cnattach() if this is present.  This allows
pckbc_machdep_cnattach() to be omitted entirely on most ports, where it only
returns ENXIO anyway.

The devices with this attribute at the moment are pc(4) on i386 and bebox, and
pckbc on sparc, where pckbc_machdep_cnattach() mysteriously returns 0 rather
than ENXIO.
2004-02-14 14:33:28 +00:00
drochner
dc30e923ea plug kernel lock leaks 2004-02-13 18:57:19 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
yamt
03e3b6a13c pmap_create: initialize pm_cpus. 2004-02-11 12:15:12 +00:00
drochner
5ab60443ab please test-compile before committing 2004-02-06 10:28:03 +00:00
junyoung
bf274fed3f ANSIfy & KNF. 2004-02-06 08:18:39 +00:00
jdolecek
5ecaa7ecee add dependency on isadma for atppc attachments
add atppc_isadma.c for atppc@isapnp and atppc@ofisa, too
2004-01-31 13:59:20 +00:00
dbj
ce701fa38b fix for backtracing through trap frames from Christian Limpach 2004-01-29 04:58:50 +00:00
yamt
2a93afdfd5 rename i386 mdlwp flags from MDP_ to MDL_
to avoid confusion with mdproc flags which also have MDP_ prefixes.
2004-01-28 10:48:55 +00:00
yamt
20236bf218 gdt_alloc_cpu: use unmanaged mappings as gdt_init and gdt_grow. 2004-01-28 10:43:50 +00:00
jdolecek
41f3d22517 add PNPBIOS attachment foor atppc(4) driver; compiles, otherwise untested 2004-01-28 09:09:14 +00:00
scw
43cdf5ffb6 __splbarrier() is deprecated in favour of the MI __insn_barrier(). 2004-01-26 19:43:25 +00:00
jdolecek
e702ddcd47 include SMBFS support 2004-01-23 13:43:46 +00:00
jonathan
e83c4e9b7e An i386 config file that includes GENERIC and adds ``options FASSDT_IPSEC''.
Intended as a tinderbox/regression-test aid, to prevent skew or
other bitrot between KAME IPsec and fast-ipsec.
2004-01-23 02:16:38 +00:00
jdolecek
6c14651ea0 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:00 +00:00
martin
da4e67accc Do not export __HAVE_RAS to userland. Applications are supposed to try
rasctl() and detect failure with EOPNOTSUPP.
2004-01-18 18:23:19 +00:00
perry
c70305f794 Make the warning on NEW_BUFQ_STRATEGY much milder -- I've upgraded it
to "Likely stable". I'm not going to make it the default unilaterally
but I really think it should be.
2004-01-16 17:02:05 +00:00
dyoung
dee4867ed0 Compute tags for *.[sS]' instead of *.s', only. 2004-01-16 10:08:42 +00:00
yamt
7246e2cc80 issue memory read barrier for BUS_DMASYNC_POSTREAD operation.
PR/21665 from Stephan Uphoff.
2004-01-14 11:31:55 +00:00
yamt
6125e101f7 remove a duplicated definition of MDP_USEDFPU. 2004-01-14 11:29:40 +00:00
cube
063960f68a Make it aware of the new ata configuration syntax. 2004-01-11 12:55:19 +00:00
perry
3682e63056 nuke trailing spaces. 2004-01-09 18:31:25 +00:00
chuck
e5aceb8c63 the IBM thinkpad T40p's built-in wireless ath0 interface attaches
to pci, so add an entry for it so that the GENERIC_LAPTOP kernel
can use it.
2004-01-06 16:24:14 +00:00
jdolecek
c3bb9cd5a4 Process and lwp exit path always executes lwp_exit2() now and cpu_exit()
is empty besides calling switch_exit(). So, rename switch_exit() to
cpu_exit() and modify the routine to call lwp_exit2() direct.
This saves couple cycles on the exit path.
2004-01-04 11:44:52 +00:00
jdolecek
089abdad44 Rearrange process exit path to avoid need to free resources from different
process context ('reaper').

From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
  as FPU state), and is the last potentially blocking operation;
  all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
  by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
  for both 'process' and 'lwp' exit

uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.

MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.

g/c now unneeded routines and variables, including the reaper kernel thread
2004-01-04 11:33:29 +00:00
thorpej
a963286f8d More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
2004-01-03 22:56:52 +00:00
thorpej
5bd80d8373 Rename "struct channel_softc" to "struct wdc_channel". 2004-01-03 01:50:52 +00:00
thorpej
77eb53d196 Update for opencrypto changes. 2004-01-01 18:46:14 +00:00
thorpej
527c829fa0 Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers.  Clean up the member names of these structures while at it.
2004-01-01 17:18:53 +00:00
jonathan
01c51dab61 Split opencrypto configuration into an attribute, usable by inkernel
clients, and a pseudo-device for userspace access.

The attribute is named `opencrypto'. The pseudo-device is renamed to
"crypto", which has a dependency on "opencrypto". The sys/conf/majors
entry and pseudo-device attach entrypoint are updated to match the
new pseudo-device name.

Fast IPsec (sys/netipsec/files.ipsec) now lists a dependency on the
"opencrypto" attribute.  Drivers for crypto accelerators (ubsec,
hifn775x) also pull in opencrypto, as providers of opencrypto transforms.
2003-12-31 16:44:26 +00:00
augustss
044205cf85 Alphabetize IDE controllers 2003-12-30 18:09:50 +00:00