Commit Graph

49857 Commits

Author SHA1 Message Date
dyoung
6935f27815 Add drvctl(4). 2009-06-23 17:06:15 +00:00
christos
e7604a3d54 PR/41629: Kouji Matsui: Fixed identical ESS1878 on Fujitsu FMV-5100 NC/S by PnPBIOS 2009-06-23 15:00:18 +00:00
tsutsui
7b14dcf78f Enable ddb(4) for sparc GENERIC-like kernels.
Discussed on port-sparc@.
2009-06-22 14:57:52 +00:00
cegger
861d7b5f02 make this build with DEBUG_MEMLOAD in all combinations of 32bit, 32bit PAE and 64bit 2009-06-20 13:10:14 +00:00
cegger
5bb3bd9d01 sprintf -> snprintf. Wrap long lines. 2009-06-20 10:24:28 +00:00
cegger
5fbf0e67ec use M_ZERO, no need for memset.
Ansify kvm86_init function definition.
2009-06-20 08:31:37 +00:00
skrll
9820325bb1 Remove incorrect KASSERT.
footbridge_intr_calculate_masks is called multiple times and the KASSERT
isn't valid in (at least) the first call.
2009-06-17 06:27:05 +00:00
bouyer
3ac2dfe9bf Split mc146818-related functions from clock.c into rtc.c.
Call rtc_set_ymdhms() from xen/xen/clock.c:xen_rtc_set() for xen3 dom0
kernels as the Xen3 hypervisor doesn't write the new date/time to the CMOS
by itself.
Now a XEN3_DOM0 kernel properly updates the CMOS time.
2009-06-16 21:05:33 +00:00
cegger
18130206e3 - use <sys/bus.h> and <sys/cpu.h>
- add reference to family11h documentation
- add reference to AMD K8 Errata #141
2009-06-16 07:34:40 +00:00
bouyer
dbd6b2dcbf Implement DIOCGDISKINFO for xbd disk driver. 2009-06-15 21:11:24 +00:00
rjs
35a0849703 Fix CVS header. 2009-06-14 23:20:35 +00:00
tsutsui
9c2e10416b Apply fixes from jmcneill@ for PR port-i386/38729
(ACPI kernel booted under qemu cannot detect devices):
- make MP SCANPCI function for ACPI_SCANPCI and MPBIOS_SCANPCI
  return a number of attached PCI busses
- if no valid PCI busses are attached in the MP SCANPCI function,
  try to probe and attach pci0 at mainbus as well as kernels
  with no SCANPCI options

"Feel free to check it in" from jmcneill@.
Tested in pkgsrc qemu-0.9.1 (both i386 and x86_64) on NetBSD/i386.

Note original jmcneill's patch was posted on March:
http://mail-index.NetBSD.org/port-i386/2009/03/24/msg001281.html
and I also applied it to amd64:
http://mail-index.NetBSD.org/port-i386/2009/03/24/msg001283.html
but x86 MP attach functions have been reorganized by dyoung@ on April:
http://mail-index.NetBSD.org/source-changes/2009/04/17/msg219992.html
so I've modified the original patches to adapt the changes.
(mpacpi_scan_pci() and mpbios_scan_pci() have been merged into
 common mp_pci_scan() in new arch/x86/x86/mp.c)
For netbsd-5 and netbsd-5-0 branches, the original patches should be
applied cleanly, and they have been tested by abs@ on a selection of
i386 boxes and in qemu.
2009-06-13 13:35:11 +00:00
nisimura
1d622581c6 - be more cautious before turning on Dcache.
- add lines to determine platform identification .
- fix a little ANSI style conversion breakage.
2009-06-12 00:24:33 +00:00
tsutsui
2d503ac381 Call cache_flush_all() in getcpuinfo().
Not sure if it's actually necessary, but it fixes panic
"makememarr: cannot find "memory" node" on RT626 HyperSPARC.
Ok'ed by martin@.
2009-06-11 14:42:47 +00:00
cegger
b43858307a Fix crash on Dom0 resume.
A xencons interrupt may occur before xencons device has been resumed.
Fix tested in jym-xensuspend branch.
2009-06-09 16:08:00 +00:00
he
5cd328a195 Add -lprop to the ramdisk build, so that it builds again, due to
recent changes in newfs.  Bump the ramdisk size from 1536 to 1800
blocks as a consequence.
2009-06-09 11:06:09 +00:00
uwe
4872798d7b In pmap_protect(), compute the bitmask to set in the ptes only once, instead
of every iteration.  From OpenBSD.
2009-06-09 02:38:27 +00:00
uwe
77f067a4b0 Fix logic error in copyinstr() when deciding whether to return EFAULT
or ENAMETOOLONG.

From OpenBSD revision 1.9 by miod@
2009-06-09 01:35:11 +00:00
uwe
ee5edddfc3 Spell "handler" correctly. 2009-06-09 00:24:51 +00:00
cegger
b63f2e1e6a from sys/arch/x86/x86/cpu.c:
Implement -1 (RB_MD1) for physical CPUs in the Dom0.
2009-06-08 09:32:33 +00:00
martin
ced2993fec Do not use the same trampoline for cpu_setfunc and cpu_lwp_fork, the
latter does a lot more work.
2009-06-07 23:21:26 +00:00
phx
b6a174c94b MSGBUFADDR creates a msgbuf at a fixed address, usually defined by the port's
config file.
The use of MSGBUGADDR was already prepared in powerpc/oea/pmap.c years ago,
but was never used and missing powerpc/oea/oea_machdep.c. The option will
be used by port amigappc.
2009-06-07 13:37:29 +00:00
skrll
6ae2bb57af Re-arrange and comment out stuff that's not supported yet. 2009-06-05 07:35:29 +00:00
mrg
8d43cfc54d convert sparc "intrcnt" counters to evcnt(9) style. XXX some of the names
could be better, but i just copied them from the old intrnames in locore.

i benchmarked this with a simple test of ircii ./configure && make, to see
if the additional load/store & arith would cause any noticeable degradation
as the change also converts 32 bit counters to 64 bits.  amusingly, the
only trend i saw in this was that for both portions, i see a consistent
(across at least 8 runs) benefit of about 0.8% improvement.  ie, the newer
larger code size / counter size code actually runs faster for some reason..
maybe there's a cacheline effect in the size of the code?


XXX the current implementation depends on a couple of things:
XXX   - ev_count member of evcnt{} is first and has offset 0
XXX   - that sizeof(struct evcnt) equals 32
XXX if these are not true, locore.s has #error's to catch it
2009-06-05 01:36:07 +00:00
skrll
c113d9a27f Do not use lwp_trampoline for cpu_setfunc, but a simplified setfunc_trampoline
that does not call lwp_startup().
2009-06-03 21:08:51 +00:00
cegger
84dc7c540d Interrupt handling in Xen 3.5 changed. There's no longer
a hardcoded upper limit. So *our* upper limit of 200 may be different from machine to machine now.
So just retry if the hypercall failed.
2009-06-03 12:43:22 +00:00
pooka
b89c189be7 Declare extern syscallnames in a header. 2009-06-02 23:21:37 +00:00
martin
476755a88c Do not use lwp_trampoline for cpu_setfunc, but a simplified setfunc_trampoline
that does not call lwp_startup() instead.
2009-06-01 20:58:16 +00:00
pgoyette
da6eeb0e4d Replace a flag that was accidentally removed. 2009-06-01 20:36:43 +00:00
pgoyette
5a84f3060e Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13
2009-06-01 20:08:44 +00:00
skrll
f86cbcc8bf Enforce strong ordering (for now) on PA2.0. 2009-06-01 07:10:14 +00:00
macallan
db706a8f23 #define BUS_SPACE_MAP_LARGE 0 so SBus framebuffer drivers compile again 2009-06-01 01:14:06 +00:00
phx
b1d183bf84 Fixed format string from %x to %llx for dev_t. 2009-05-31 23:07:18 +00:00
mrg
54e81f636d make sure to initialise the cpuinfo sz in all cases. noted by martin. 2009-05-31 20:28:51 +00:00
mrg
5dbfb3ccb3 - bump the size of cpus[] by one, so we have a NULL pointer at the end,
from tsutsui
- for MP kernels, copy the loop to find the bootcpu in mainbus_attach()
  into getcacheinfo_obp() so we can get cache properties on the bootcpu
  before calling main()
- in getcpuinfo(), move the call of getmid() before the call to
  getcacheinfo() so that the above change to getcacheinfo_obp() can work
- move the struct cpu_info setup to the end of the initial kernel page
  setup and don't access this space until after we have switched to the
  kernel pagetables
- revive most of the old CPUINFO_VA alignment/congruency code from the
  old alloc_cpuinfo_global_va() function, and ensure that all cpuinfo
  structures are sanely aligned.  this makes hypersparc work again
- introduce a new way to free the wasted pages back to UVM, as we can't
  simply uvm_unmap() them this early in bootstrap


i believe that the first used cpuinfo_data page is still being wasted,
but i haven't checked.
2009-05-31 20:09:44 +00:00
he
5bfe080527 Adapt to changes in sa11x0 code, with struct device * -> device_t changes. 2009-05-31 17:47:26 +00:00
martin
900e24968a Properly initialize child attach args to zero - we could end up with
various devices having different ideas about being console otherwise.
2009-05-31 17:09:03 +00:00
martin
f8047b2aa2 Per discussion with <simonb> also block the interrupts from icu 1 for
splvm(), even if we don't currently support any handlers for gpio
interrupts.
2009-05-31 11:34:01 +00:00
martin
114a7832a7 For consistency add COMPAT_50 2009-05-31 11:09:01 +00:00
martin
839da53f59 Block MIPS_INT_MASK_1 for splvm() too - if_aumac.c establishes it's
interrupt handler at icu 0 req 1, which needs to be blocked by splvm().
2009-05-31 09:39:10 +00:00
martin
250d329095 Do not use the same trampoline for cpu_lwp_fork and cpu_setfunc - only
the former needs to call lwp_startup().
2009-05-30 18:26:06 +00:00
martin
18d36d7f38 Do not use lwp_trampoline for cpu_setfunc, we do not want to call
lwp_startup() after a setfunc. Grow a simplified setfunc_trampoline
instead.
2009-05-30 17:52:05 +00:00
skrll
90a08c6ee8 Give pdc_scanbus some help.
Use aprint* while here.
2009-05-30 17:45:59 +00:00
martin
72ad694b88 Remove unused file (merge error?) 2009-05-30 17:20:45 +00:00
martin
7f65d1375e cpu_setfunc() can not use lwp_trampoline, as that has additional lwp startup
semantics. Use a simpler setfunc_trampoline instead.
2009-05-30 16:52:32 +00:00
phx
9bae1e8ed5 No longer used since migrating from sicallback-softints to MI-softints. 2009-05-30 16:42:40 +00:00
skrll
e03976623a Add TLS relocation definitions. 2009-05-30 05:56:52 +00:00
mrg
2cbddcfe99 print the curpcb in "mach cpu" output as well. 2009-05-30 01:19:29 +00:00
mrg
05c64062d1 fix up cpu_setfunc() as noted by uwe:
- don't call lwp_startup for cpu_setfunc() users
- introduce lwp_setfunc_trampoline instead
- no need to set the "new" lwp for setfunc
2009-05-29 22:06:55 +00:00
rjs
4c494f7678 Make the following changes:
struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
2009-05-29 14:15:44 +00:00