Commit Graph

45081 Commits

Author SHA1 Message Date
jnemeth
4cbad60727 Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.  This fix is from
sparc64/dev/fdc.c and was tested on sparc by tnn@.
2007-05-11 17:48:16 +00:00
fvdl
3f7e9a7e0d Don't save/restore %fs and %gs in trapframe. The kernel won't touch them.
Instead, save/restore them on context switch. For 32bit processes, save/restore
the selector values only, for 64bit processes, save/restore the appropriate
MSRs. Iff the defaults have been changed.
2007-05-11 14:01:46 +00:00
is
a1569485fe SigmaTels not-quite-UIRDA devices: STIr4116, STIr4220 2007-05-11 13:12:14 +00:00
tsutsui
b01d9ed02f uvm.page_idle_zero now is a bool, not a 32bit value any more.
Pointed out by Matthew Orgass in PR port-hpcmips/36249.
2007-05-11 12:56:01 +00:00
rumble
0732a5ddbc IP12's PROM passes us a '-a' flag in argv when booting directly from the
disk volume header. On NetBSD this means RB_ASKNAME, however in SGI terms
it appears to mean 'autoboot'.

Add an appropriate kludge to keep us from doing the wrong thing.

XXX - This whole argv/env/prom parameter mess needs to be cleaned up.
2007-05-11 02:30:00 +00:00
rumble
7a969b00a1 Update a prototype corresponding to rev. 1.36 of sgimips/autoconf.c. 2007-05-11 01:40:18 +00:00
rumble
7ab6f41450 A few changes to allow booting to multi-user with IP12 kernels squished
into oversized volume headers:

Query ARCBIOS for OSLoadFilename and OSLoadOptions first, rather than only
using the environment variables passed since we want to go through arcemu.

Add an ugly hack to arcemu that munges the nvram 'bootfile' variable. We
need this because bootfile will point to the volume header, which then
translates into a bogus root device of 'sd0i', or similar.
2007-05-10 21:24:37 +00:00
rumble
649a7beb38 Sanity check the environment variable first. 2007-05-10 17:45:58 +00:00
rumble
dd214a45b1 Clean up extracting environment variables passed by the prom. No functional
change.
2007-05-10 17:27:05 +00:00
dsl
844e5f00de Allow for other info in opt_fpsp.h when trying to find out whether FPSP
is enabled.
Surely there are proper mechanisms that can be used to conditionally include
this file?
2007-05-09 20:43:53 +00:00
macallan
0c12bd26b3 add an optional callback from pmu's worker thread, use it to poll AC power
status on legacy batteries where we don't get environment interrupts. Also
report AC status changes to powerd.
2007-05-09 00:09:28 +00:00
xtraeme
36e4309910 Add "ug* at acpi?" following the current scheme in the files. 2007-05-08 16:55:54 +00:00
skrll
7b06b6fc23 Remove useless comment. 2007-05-08 07:06:45 +00:00
skrll
bd22722e77 Use sr1 to jump to syscall as we just loaded it with the right value. 2007-05-08 07:01:17 +00:00
he
1d168d71bb Bump SYMTAB_SPACE so that the contents fits again. 2007-05-07 18:51:45 +00:00
jnemeth
3377bd5221 PR/36234 - Joerg Niendorf -- xi -> xirc 2007-05-07 09:02:05 +00:00
xtraeme
0f4f0899c9 Enable rum(4). 2007-05-07 07:42:21 +00:00
rumble
f8e6f8f8cd Use burst dma for all systems, since it's supported by all HPCs and runs
with about 25% higher throughput on my Indy and ST32430N.
2007-05-06 23:49:57 +00:00
tnn
a1ab0c29a3 Define microvoltage scale factor which was previously a magic constant. 2007-05-02 11:40:44 +00:00
skrll
13951ee3d4 Add an INSTALL kernel for landisk and enable building it.
Also add an installation/misc directory for a boot.fs image which is WIP.
2007-05-02 08:02:00 +00:00
bouyer
982bad256f Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
2007-05-01 17:18:52 +00:00
msaitoh
8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
isaki
174e071c25 Remove obsoleted #undef. 2007-04-29 05:31:00 +00:00
christos
219dcac37d Fix compilation when NIOAPIC == 0 2007-04-28 14:51:58 +00:00
joerg
22ee755a55 Make the beep on resume optional. It gets controlled by
machdep.acpi_beep_on_reset.
2007-04-28 14:03:00 +00:00
bouyer
1e1bf73d65 IOCTL_PRIVCMD_MMAPBATCH: mimic linux behavior and return no error
even if a pmap_enter_ma() (the underlying hypercall, really) returns one.
The fact that the mapping failed is notified to the called by oring
0xF0000000 to the mfn.  This makes Xen 3.0.4 HVM work.
2007-04-27 22:10:39 +00:00
garbled
ca2a9952ca Add slide to INSTALL and remove SLIDE irq hack. It turns out to not do
anything after all.
2007-04-26 19:44:02 +00:00
skrll
548803dea8 Fix some comments. 2007-04-26 19:43:21 +00:00
garbled
1d37c1ae36 Rather than use the residual data to guess that we have a raven pchb,
note the raven pchb in device_register, and then look that up when
attaching the pcib.
2007-04-26 19:27:04 +00:00
garbled
5ab2832938 Add special code to properly detect a W83C553 pcib sitting on a RAVEN
based machine.  When we do, we have to frob a few special bits on the
pcib to finish the setup that the prom didn't bother completing for us.
With this change, NetBSD finally runs on the MTX604 board.. Many thanks
to John Baker for providing remote access to the machine, and rebooting
it repeatedly for me.
2007-04-26 17:39:54 +00:00
dyoung
8e702cd95d Add ATADEBUG to ease debugging. 2007-04-26 17:21:18 +00:00
dyoung
1348389da4 Add ATADEBUG for ease of debugging. 2007-04-26 17:11:35 +00:00
njoly
e703aa9569 Save the translated error value from Native to Linux, used by tracing
functions.

Reviewed by manu.
2007-04-26 12:54:17 +00:00
matt
bb1c05a804 Make this compile again if COMPAT_ULTRIX is enabled. 2007-04-25 12:53:46 +00:00
manu
f4aafa3084 Fix build 2007-04-25 03:12:56 +00:00
dyoung
c89841d199 Add ATADEBUG so that a person can patch atadebug without having to
recompile the kernel.
2007-04-23 04:55:07 +00:00
dyoung
1a779e29db Delete noisy diagnostic printf. 2007-04-22 19:26:25 +00:00
dsl
b8fbaf8c4b Change the way that emulations locate files within the emulation root to
avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.
2007-04-22 08:29:55 +00:00
rjs
cbefa60fe8 Don't need to save lwp for use in lwp_exit2(). 2007-04-21 10:45:45 +00:00
kiyohara
0b8b4bf965 + Add file-system HFSP (commented out).
+ Add pxartc and lcd(commented out) and pxaudc and pxamci (commented out).
  lcd and pxamci not support yet.
+ Remove slhci.
+ Change name of expansion bords the console-{hw,st} from waysmall-{hw,st}.
  Because The gumstix Co. changed the name.
2007-04-20 13:22:21 +00:00
kiyohara
3af5743d0a Change to use pxapcic from sa11xx_pcic.
Support multiple socket.  But not tested.
2007-04-20 13:00:08 +00:00
kiyohara
e0c180145d Add whitespace and tab. 2007-04-20 12:48:52 +00:00
xtraeme
855e06cf6a ALL: add ug(4).
GENERIC/GENERIC_LAPTOP: add ug(4) commented out.
2007-04-19 14:34:35 +00:00
tnn
88ed5f6036 We can't support them in a clean way, but still note the bus addresses
of the disk failure LEDs.
2007-04-18 14:49:44 +00:00
skrll
8ac9999f27 Whitespace. 2007-04-18 13:41:37 +00:00
skrll
974981b1d9 Bump the initial stack size limit to bring in line with other ports.
newfs_lfs doesn't core by default now.
2007-04-18 13:39:37 +00:00
dyoung
8b1b24ba1a Add definitions for the AMD Elan 520 Host Bridge Master Interrupt
Control register.
2007-04-18 04:02:27 +00:00
mhitch
a7afe56d70 Fix polyd trapping when running pic and grn during groff tool builds on
vax.  From OpenBSD:

Addressing mode work by Jim Uhl:
    - fix PC relative byte displacement in getaddr_byte
    - add support for word displacement to getaddr_byte

This allows certain libm inverse trig functions to work on systems
that lack a native polyd instruction.
2007-04-17 22:47:50 +00:00
tron
a1ecd00f0a Comment out fwohci(4) because it doesn't support ACPI suspend/resume.
Pointed out by Jared D. McNeill on "port-i386" mailing list.
2007-04-17 14:17:28 +00:00
tron
c7e599195d Add and enable IEEE1394 support. 2007-04-17 14:06:52 +00:00