Commit Graph

7983 Commits

Author SHA1 Message Date
joerg
b92a5f0408 Constify a global variable. Split device/softc. 2008-07-09 20:59:16 +00:00
joerg
713c902ab3 Device/softc split. 2008-07-09 20:54:13 +00:00
joerg
fa4b49dc5e device/softc split. 2008-07-09 20:50:41 +00:00
joerg
fcdefdcff8 device/softc split 2008-07-09 20:45:33 +00:00
joerg
0ae228380e Finish device/softc split. 2008-07-09 20:41:02 +00:00
joerg
6bf2b4fab1 device/softc split 2008-07-09 20:40:16 +00:00
gmcgarry
5aa0bc7608 Selector registers are 16-bit and binutils 2.18 insists that only 16-bit
accesses are permitted on them.  Therefore, change movl to movw.  No change to
machine code generated.
2008-07-07 13:01:16 +00:00
cegger
02018c5980 ryo shimizu: gscsehci doesn't work.
Correctly initialize softc. Fix from PR port-i386/39109.
2008-07-06 08:01:15 +00:00
drochner
54745077e8 Remove "struct device" from "struct pic", where it was only real
for ioapics and faked up for others. Add it to "struct ioapic_softc"
for now, until device/softc get split.
This required all typecasts between "struct pic" and "struct ioapic_softc"
to be replaced, I hope I got them all.
functionally tested on i386, compile-tested on xen, untested on amd64
2008-07-03 14:02:24 +00:00
rmind
160268aca6 Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.
2008-07-02 19:49:58 +00:00
drochner
14071b7c24 remove some obviously obsolete definitions 2008-07-02 19:18:52 +00:00
ad
b94f79f0e8 Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@. 2008-07-02 17:28:54 +00:00
bouyer
802c7519a2 Raise ci_idepth (and switch to interrupt stack on i386) becore calling
xenevt_event().
2008-07-01 18:49:20 +00:00
ad
0a11462fc2 A few more. 2008-06-28 15:09:49 +00:00
ad
698b4a3b27 Fix numerous bugs. 2008-06-28 15:03:27 +00:00
ad
a122ceefb6 Noisy printf. 2008-06-28 14:56:22 +00:00
ad
5fbf4abeea mutex_spin_enter: xchg is usually cheaper than cmpxchg, so use it. 2008-06-27 18:16:02 +00:00
cegger
c82e679e68 struct device * -> device_t 2008-06-27 11:03:13 +00:00
gmcgarry
e31e503a44 Replace lines beginning with assembler-style comments with c-style comments,
since '#' can be interpretted as a preprocessor directive.  Remove single
quote ''' from assembler-style comments, as the preprocessor may ignore
everything between them.

Fixes compilation with pcc.
2008-06-27 00:41:39 +00:00
ad
c73fe0bf2d Replace more __asm 2008-06-24 16:30:09 +00:00
ad
28c7c338ce Replace inline assembly. 2008-06-24 16:28:44 +00:00
gmcgarry
8cb6efd4df Add stdargs support for pcc. 2008-06-21 00:56:39 +00:00
christos
a41d00937d pointless to compile md_root.c without md.c 2008-06-13 17:26:33 +00:00
njoly
11037f4f04 Update linux cpuinfo vendor_id/model_name field, to show expected
output.
2008-06-11 21:47:46 +00:00
perry
40e1c73ac2 Add cmos(4). This should probably be added to amd64 as well. 2008-06-11 20:37:38 +00:00
njoly
a06f4beef4 Remove extra column in linux cpuinfo output. 2008-06-11 17:29:56 +00:00
dyoung
3a431966db Run ctags(1) on some of the ACPI files. 2008-06-11 08:14:14 +00:00
tsutsui
62e807c2fe Use device_lookup_private() rather than using cd_devs[] directly to get softc. 2008-06-08 18:35:25 +00:00
ad
e876d01fea Leave interrupts on for the shutdownhooks. Should fix the panics on
shutdown.
2008-06-05 21:44:31 +00:00
ad
d1b2ddc725 pmap_remove_all() for x86. Also, always defer freeing ptps to pmap_update().
There may be a better way to do this, but for now this is simple and avoids
potential bugs.

Proposed on tech-kern and discussed with chs@.
2008-06-05 21:09:12 +00:00
ad
fd089e08cf Remove ref to uvm.page_idle_zero 2008-06-04 11:30:25 +00:00
ad
a2f00acc80 - Don't bother using sse to copy/zero pages on demand. It turns out not
to be worth it.
- If the machine has sse, re-enable zeroing pages in the idle loop and
  use the sse instructions so that we don't blow out the cache.
2008-06-02 14:41:41 +00:00
christos
e68d299eb5 need CPU_INFO_NTRAP 2008-06-01 22:06:06 +00:00
ad
c3e93e738f Make trap counters per-cpu, like syscalls. 2008-06-01 21:24:15 +00:00
ad
c28f41882e - sse2_zero_page: do 64-bytes (1 cache line) at a time.
- sse2_copy_page: increase from 16 to 32 bytes per loop.
2008-06-01 18:37:12 +00:00
christos
57b0179544 fix typo and add level to the printf. 2008-06-01 15:54:02 +00:00
dyoung
5d02482d8b Use printf_tolog() instead of aprint_error_dev() to report PCI
exceptions and write-protection violations.

While I'm here, add a comment to describe the interrupt configuration.
2008-05-31 22:37:00 +00:00
taca
01e7a44f4a Kill license clause 3 of original license part, behalf of the original
license holder.
2008-05-31 07:30:45 +00:00
dyoung
cd2143c845 Add pci* at elansc? bus ?. Should fix Jasper's PR, port-i386/38800. 2008-05-30 19:51:00 +00:00
ad
2839301d21 Add a 'known_mpsafe' argument to intr_establish(). 2008-05-30 19:03:10 +00:00
ad
4a0f8c8fcf Since breakpoints don't work, dump basic info about the trap before
entering the debugger. Sometimes ddb only makes the situation worse.
2008-05-30 10:38:21 +00:00
ad
c51560fae0 Don't try to resolve pagefaults from interrupt mode; it can result in a
LOCKDEBUG panic, or the machine getting really confused. Instead, panic
at the earliest oppertunity.
2008-05-30 10:36:20 +00:00
ad
1d6047e0d2 Another use of X86_MAXPROCS. 2008-05-28 11:45:15 +00:00
ad
3e01024d3f Kill use of X86_MAXPROCS. 2008-05-28 11:44:18 +00:00
ad
8642ae8daf cpu_lwp_fork: set tf_trapno=T_ASTFLT in case the LWP gets an aston() before
returning to userspace for the first time.
2008-05-27 14:25:11 +00:00
ad
c0daf9414f Disable OSI networking. 2008-05-26 13:21:08 +00:00
christos
6facb070dd Add uberry. 2008-05-26 00:25:32 +00:00
agc
2481b1e8b9 Re-enable INCLUDE_CONFIG_FILE in the GENERIC kernel config files for
i386, amd64 and usermode - it is necessary for retrieving information
on kernel configuration for running kernels - cf config -x.
2008-05-25 19:05:16 +00:00
chs
6740bb5440 enable profiling of assembly functions. 2008-05-25 15:56:11 +00:00
chris
52c485503f Fix pxeboot's load tftp:miniroot.i386.kmod to work again.
We now wrapper the open call for a module with module_open.  It first
attempts to open the module_path munged path, if this fails it then tries
to open the original path.

This allows tftp files to be located correctly.
2008-05-25 11:54:33 +00:00