Commit Graph

50170 Commits

Author SHA1 Message Date
mhitch
298c91975c Explicitly include sys/exec_aout.h. 2009-09-18 21:40:09 +00:00
dyoung
5cc26b1024 As Jonathan Kollasch points out, elansc_attach() does not actually
use gba after filling it out.  Delete it.
2009-09-17 20:21:54 +00:00
tsutsui
12ad76b18c Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
2009-09-17 16:28:12 +00:00
bsh
87aae92eeb fix a typo of register bit name. 2009-09-17 16:13:32 +00:00
tsutsui
41559777ac Use device_t, cfdriver_t, device_private(), device_xname(),
and appropriate types and variables for device_t/softc.
2009-09-17 12:38:11 +00:00
mlelstv
23ab96a36b Allow for 'options ACPI_DEBUG' by providing module declarations
and using memory allocation macros instead of calling AcpiOs* stubs
directly.
2009-09-16 10:47:54 +00:00
tsutsui
16c0f8385d Use device_private(), proper types or variables for device_t and softc.
(not yet split though)

No crash on gxemul emulating hpcmips mobilepro.
2009-09-14 13:41:15 +00:00
rmind
d1e070a421 Add COMPAT_50 for MALTA. 2009-09-14 12:52:20 +00:00
tsutsui
5770fb4ee0 u_intNN_t -> uintNN_t 2009-09-14 12:49:33 +00:00
jmcneill
1ea984dc79 Don't commit the selected VBE mode until the loader is past the point of
no return; need to stick in text mode as long as possible since libsa does
not include a rasops library. While here, add the 'vesa' command to pxeboot
to mirror biosboot behaviour.
2009-09-14 11:56:27 +00:00
tsutsui
cbc3734a99 Enable options IPKDB. 2009-09-14 11:38:29 +00:00
tsutsui
f52132ce21 Make this compile. From elad@. 2009-09-14 11:37:36 +00:00
jmcneill
1b3357e5de Don't treat timeouts or the return key as an invalid choice; spotted by
Andreas Gustafsson.
2009-09-14 10:42:42 +00:00
mhitch
e851d39acd Add support for booting off a couple of common RAID adapters found on
several models of alpha systems: mlx [Mylex DAC060] and iop [I2O].
Addresses PR #25829.
2009-09-14 02:46:29 +00:00
mhitch
a25d763f88 Add the I2O iop controller, as used in the ES40 and ES45. 2009-09-14 02:28:22 +00:00
mhitch
3ebe8c5833 Switch the amiga to the common m68k/m68k/pmap_motorola.c (Finally!!). 2009-09-14 02:23:05 +00:00
mhitch
bd24936ebd Not understanding what vax_mfpr_get_counter() was doing, my fix for
backwards time was incorrect, and actually disabled the use of mfpr for
timecounters.  The intent was to emulate a 32 bit counter using the
hardclock_ticks from the clock interrupt and the contents of the
Interval Counter register.  The problem with that was when the ICR
wrapped, but the clock interrupt was blocked resulted in an incorrect
count.  Work around this by keeping track of the previous ICR value
and hardclock_ticks to ensure the 32 bit counter doesn't go backwards.
Also, the ICR runs from -10000 to -1, so adjust the value when reading it.
Now mfpr works quit nicely on my 4000/90.
2009-09-14 02:19:15 +00:00
jmcneill
df6bdc8be4 If the menuformat is not letter, do not allow letter keys to be aliases
for number keys. snj@ often overshoots the spacebar in a panic and
accidentally hits 'b' instead, which makes the loader boot item '2'.
Can't fix snj@, so fix the boot loader instead.
2009-09-13 23:53:36 +00:00
jmcneill
891bf245b9 Make the 'dev' command print out a list of known boot devices based on
information from the BIOS in addition to the currently selected default
partition. Handy when you don't know where to boot from. Here's a demo:

  type "?" or "help" for help.
  > dev
  disk hd0 size 3815 MB
    hd0a(4.2BSD) hd0b(swap)
  disk cd0
    cd0a(unknown)
  default hd0a
  >
2009-09-13 22:45:27 +00:00
jmcneill
d2a59733be kmod improvements
- unless otherwise specified, modules are now loaded from the same device
   as the kernel ('load miniroot' now implies 'load tftp:miniroot' if the
   boot command is 'boot tftp:netbsd')
 - the module name -> path expansion now works when a device prefix: is
   specified ('load tftp:miniroot' now works)
 - if the module name has been expanded to a path, print that path when
   loading the module rather than the symbolic name
 - only print an error in module_open if both the expanded path and the
   raw path fail to open
2009-09-13 18:13:37 +00:00
tsutsui
5113172f58 Add MI and ISA gpib(4) stuff. (compile test only) 2009-09-12 18:53:22 +00:00
tsutsui
bc210dec04 +options RTSOCK_DEBUG 2009-09-12 18:09:47 +00:00
phx
3bef245803 Make disklabel.h from amiga and amigappc include the MI sys/disklabel_rdb.h.
amiga/amiga/adosglue.h was deleted and moved into sys_disklabel_rdb.h, as both
are always needed together (disksubr.c and ofppc/stand/ofwboot/rdb.c).
2009-09-12 09:18:42 +00:00
phx
a1fee67004 Handle the situation of a wrapped interval counter, while the hardclock()
interrupt was not yet executed to update the hardclock_ticks variable.
2009-09-11 19:43:08 +00:00
phx
fbc94dd682 Reverted last change after discussion with the author, Michael L. Hitch:
http://mail-index.netbsd.org/port-amiga/2009/08/14/msg007164.html
We have a full 32-bit counter, so the masking is not needed.
2009-09-11 13:11:15 +00:00
phx
ad12935328 Added support for RDB partitions.
Moved MBR parition code out of ofdev.c into mbr.c.
Tested on Pegasos2 (RDB and MBR) and RS6000.
2009-09-11 12:00:12 +00:00
mhitch
7b90090350 Alpha will size the mutex structure in pmap_tlb_shootdown_q to 16 bytes.
Change the command and pad accordingly;  now pmap_tlb_shootdown_q entries
really are cache-aligned.
2009-09-10 22:27:11 +00:00
mhitch
8c83d5056c Now that secondary cpus are added the cpu_info list earlier, attempt to
send pmap tlb shootdowns to them cause the shootdown job queue to fill up,
but since the cpus aren't running yet, no IPIs get sent.  When the job
queue is full, the bit mask of cpus to send the IPI to is not set and no
shootdown IPI ever gets sent after the cpu is marked running.  Always
set the cpumask even when the queue is full.  Now I get shootdown ipis
on all the secondary cpus.
2009-09-10 21:36:39 +00:00
tsutsui
d519f74ad6 Make sure to initialize cpus[0] which will also be used as cpuinfo
for sun4 and sun4c, not only for sun4m. Okay'ed by mrg@.
2009-09-10 14:12:02 +00:00
jmcneill
68aba25e22 Switch on hdaudio(4) 2009-09-07 22:59:09 +00:00
jmcneill
ad5f1845fb Refer to hdaudio as 'High Definition Audio', not
'Intel High Definition Audio' as many vendors implement the HD audio spec.
2009-09-07 10:40:54 +00:00
mhitch
66b730fd58 There's now some per-cpu initialization that occurs before the secondary
cpus are told to begin running.  Since the seconedary cpus weren't being
added to the cpu_info list until then, that initialization wasn't being
done and resulted in crashes on the secondary cpus.  Add the secondary
cpus to the cpu_info_list after they've been started (but waiting to be
told to start running).  This fixes the problem specifically stated in
PR port-alpha/41106.  MP alphas will now at least boot and begin running,
but will eventually crash in various ways later.
2009-09-06 18:06:24 +00:00
sborrill
b88195cfa1 hdaudio(4) is a standards-compliant driver for Intel High Definition Audio.
It will replace azalia(4) after testing.

To use, comment out azalia in your kernel configuration and uncomment the
hdaudio and hdafg lines so it reads:

# Intel High Definition Audio
hdaudio*	at pci? dev ? function ?
hdafg*		at hdaudiobus?

You should also:
cd /dev
sh MAKEDEV audio
2009-09-06 17:25:55 +00:00
bsh
742947bc03 correct the initial value of interrupt masks. 0 is to disable.
This fixes stray interrupt from LCD controller when lcd driver is not configured in the kernel.
2009-09-05 17:40:35 +00:00
jmcneill
41b863f675 Fix a bug where mapping the very end of iomem accidentally returns an
address in the ISA hole (because addr+size calculations wrap to 0). Fixes
ohci on VirtualPC 7 for Mac, which places OHCI at base address 0xfffff000
size 0x1000.
2009-09-03 23:25:04 +00:00
tsutsui
767b154f7a Use a proper local variable. 2009-09-02 17:22:53 +00:00
joerg
292e598a25 Be a bit more noisy by telling the user VGA_POST is missing in the
kernel config when trying machdep.acpi_vbios_reset=2.
2009-09-02 15:42:31 +00:00
joerg
12cda29892 Don't allow machdep.acpi_vbios_reset=2 if option VGA_POST is missing. 2009-09-02 15:25:07 +00:00
tsutsui
0f7a15058c Invert logic around nested pmf(9) registrations for readability. 2009-09-02 10:43:24 +00:00
tsutsui
531b631d68 Some backends may use ncr53c9x_abort(), so remove static declaration from
the function and explicitly declare it in ncr53c9xvar.h.  Noticed by he@.
2009-09-02 10:34:04 +00:00
skrll
dd9009a209 More sections to remove when doing ELF->a.out conversion. 2009-09-02 07:48:50 +00:00
tsutsui
943109cbb1 Check a return value of pmf_device_register1(9) and also call
pmf_class_network_register(9).
2009-09-01 17:10:42 +00:00
tsutsui
a2ff563552 Replace shutdownhook_establish(9) with pmf_device_register1(9). 2009-09-01 15:19:20 +00:00
tsutsui
0b880aebb9 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Also check howto to print appropriate "Rebooting..." or "Halting..." messages.
2009-08-31 15:18:55 +00:00
dyoung
58692c6275 Compute tags for sys/external/intel-public/acpica/dist/ instead of
for sys/dist/acpica/.
2009-08-30 02:00:56 +00:00
macallan
a11c6c1d62 use vcons_replay_msgbuf() 2009-08-27 20:52:18 +00:00
bouyer
559c33c2d0 Do not try to get the faulting instruction if eip is 0.
This makes 'trace' work when the kernel paniced because it jumped to
a NULL function pointer.
2009-08-26 23:17:03 +00:00
jmcneill
c07ee161fd int 15h/AH=86h (WAIT) doesn't work properly on all hardware and emulators, so
for the countdown use the more coarsely grained sleep implementation based
on int 1ah/AH=00h (GET SYSTEM TIME).

ok ad@
2009-08-26 13:28:48 +00:00
elad
df48d92f6c Build NiLFS(2). 2009-08-26 03:39:16 +00:00
thorpej
b5fd5d5727 Minor tweak to the pv_table management in the Hibler-derived m68k pmaps:
The head of the list is now a pv_header, which contains the first pv_entry
as well as a 16-bit attributes field (replaces the pmap_attributes array
plus the pv_entry::pv_flags field) as a 16-bit count of caller-specified
cache-inhibited mappings.

Tested on hp300 (shared pmap_motorola.c), changes to atari and amiga copies
are purely mechanical.
2009-08-26 00:30:01 +00:00