Commit Graph

40054 Commits

Author SHA1 Message Date
rearnsha fdac3760e5 ... but make it's filesystem type FFS (not NFS :-). 2005-02-12 09:54:36 +00:00
rearnsha 3633c570d2 Build a kernel variant with root on wd0. 2005-02-12 09:53:27 +00:00
rearnsha d8a87d92cb Bump the symtab space 2005-02-12 09:51:05 +00:00
rearnsha 6085be19d6 Redboot defaults to a console speed of 115200 baud on this board. 2005-02-12 09:49:40 +00:00
rearnsha 699b0c2c38 This board has a 33.0 crystal, so the counter speed comes out at 198MHz 2005-02-12 09:45:49 +00:00
rearnsha 31711b756b Permit the counter frequency to be overridden by a board configuration 2005-02-12 09:44:15 +00:00
nakayama 2d2c3aa5fa Make 32-bit kernels with DIAGNOSTIC compile again. 2005-02-12 09:38:28 +00:00
yamt 05617b0ee7 hp300 part of the following change,
which was missed due to a sticky tag in my local tree.
pointed by Izumi Tsutsui.

> remove uvm_map_protect from cpu_startup of several ports.
> - they shouldn't be needed with the current fault handler.
> - they causes assertion failure with the recent vm_map implementation.
>
> discussed on tech-kern@.  reviewed by Chuck Silvers.
> PR/29179 from Julio M. Merino Vidal.
2005-02-12 08:17:38 +00:00
briggs ef57c7b216 Add twe. 2005-02-12 03:24:39 +00:00
matt 4612c7a119 When building kernel for OEA, allow unaligned accesses since OEA
processors will deal with them properly.
2005-02-12 00:03:21 +00:00
jdc 7fa1245cbb Add some PCMCIA devices that were missing.
Add/fix comments.
2005-02-11 18:26:59 +00:00
yamt 18acc63fc4 remove uvm_map_protect from cpu_startup of several ports.
- they shouldn't be needed with the current fault handler.
- they causes assertion failure with the recent vm_map implementation.

discussed on tech-kern@.  reviewed by Chuck Silvers.
PR/29179 from Julio M. Merino Vidal.
2005-02-11 15:03:55 +00:00
ws b2bdc38871 Prevent integer overflow.
Fixes PR29332.
2005-02-11 11:01:10 +00:00
dsl 05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
chs 9d5ffb80d3 remove redundant initialization of minaddr for uvm_km_suballoc(). 2005-02-11 02:09:39 +00:00
drochner 342b8a4cf8 Recognize an obscure cpu feature flag bit "xTPR"
which indicates that Task Priority Messages might
be disabled. Not relevant for the kernel for now
(related to interrupt distribution on the APIC bus
afaict), but present on one of my boxes.
Being here, also recognise the future "Vanderpool"
extension.
2005-02-10 20:52:52 +00:00
tsutsui b611bd6446 Allocate struct todr_chip_handle in struct rtc_softc rather than
using MALLOC(9).
2005-02-10 16:07:38 +00:00
ws 5964df620b Increase max data size, now that the Xserver can grok it.
(It was the only program that couldn't.)
2005-02-10 10:42:04 +00:00
cube 8066f529e3 Fix typo reported by Patrick Welche on current-users. 2005-02-09 16:13:40 +00:00
fvdl 6851058ed5 if 0 out the parts of the code that allocated VM space per CPU for GDTs.
Seperate GDTs are not used on amd64 because it doesn't need any seperate
descriptors per CPU.
2005-02-08 09:02:01 +00:00
he 44315eaaa0 Remove a now-extraneous right parenthesis, after de-__P'ing. 2005-02-08 08:36:22 +00:00
pk d1a1682842 turbosparc_cache_enable: record the external cache size for informational
puposes.
2005-02-06 20:22:15 +00:00
martin 1bc16b6a61 Add uhci. 2005-02-06 18:27:41 +00:00
tsutsui ad494d3b04 Change u_int -> uint32_t, u_char,char -> uint8_t where appropriate. 2005-02-06 02:58:15 +00:00
tsutsui a60e4db92a Oops, backout previous. They are actually needed there. 2005-02-06 02:56:15 +00:00
tsutsui 79969e68f2 Remove function decls which are in <machine/intr.h> 2005-02-06 02:40:14 +00:00
tsutsui 521796afe7 - remove __P()
- use do{}while(0) and remove register decl for DELAY() macro
2005-02-06 02:39:21 +00:00
tsutsui 6930b9d38b one more u_intNN_t -> uintNN_t 2005-02-06 02:36:01 +00:00
tsutsui fd4afa037b Misc cleanup:
- ANSI function decls
- remove __P()
- u_intNN_t -> uintNN_t
- remove register decls
- bcopy -> memcpy, strcpy
- bzero -> memset
- bcmp -> memcmp
- use malloc(9) with M_ZERO
- some KNF
etc.
2005-02-06 02:18:02 +00:00
chs 86688c638a always map kernel text read-only. 2005-02-05 23:50:05 +00:00
chs 42c10f81be remove some leftover references to a.out symbol names. 2005-02-05 23:48:49 +00:00
chs 37436571dd make this compile with DEBUG. 2005-02-05 16:19:35 +00:00
jmc c0f021e9fe Put this back to a #define after he patched sys/exec_aout.h. Otherwise errno.h
has to be pulled in for ENOEXEC definition.
2005-02-04 22:45:05 +00:00
jmc 2f6ced07f5 Do the same thing sparc64 does and redefine sbus_promaddr_to_handle to a static
inline'd function. This way prototypes for it still work in the master
dev/sbusvar.h header. Found when the recent de-_P'ing occured
2005-02-04 22:20:55 +00:00
fvdl 6bdba8ddcd The bootinfo_wedge structure must be packed, or the 32bit alignments
used by the bootloader don't match the amd64 kernel.
2005-02-04 22:03:53 +00:00
joff 74f7c604df Make cpu_exec_aout_makecmds() a static inline instead of just #define'ed to
ENOEXEC.  Broken on ARM build from the de-__P'ing, this is the fix.
2005-02-04 19:07:26 +00:00
skrll 015f297666 Modernise these to use GCC __builtin_* functions and types.
Also provide a (protected) va_copy.
2005-02-04 12:15:22 +00:00
joff 32262aa8f2 Support a wsdisplay(4) attachment on a tslcd 2005-02-04 06:02:36 +00:00
jmc 89f2c62a84 Add opt_scsipi_debug.h to list since compat_linux pulls in scsipi now for sg
driver
2005-02-04 05:59:51 +00:00
joff 9882b0c41e Structure member misnamed. "rows" should be "cols" 2005-02-04 05:59:27 +00:00
jmc 672ed23467 vfr.c is still needed on the trunk or GENERIC doesn't compile... 2005-02-04 05:59:23 +00:00
joff 7d0231bc7f Even though we don't use wscons on cobalt, still bring in dev/wscons/files.wscons
so we can get various opt_*.h generated.
2005-02-04 05:50:38 +00:00
joff 93f6c1c28a keysyms off-by-one in numbering 2005-02-04 05:48:12 +00:00
jmc 3fed402d23 Provide lint wrappers around the va_* defs like other ports do so this can
make it through lint (was dying in libpam)
2005-02-03 23:45:37 +00:00
perry 449436c385 move a prototype back inside an #ifdef -- my GENERIC kernels worked
fine with it in the new place, but compiling another kernel found that
it wasn't a good idea.
2005-02-03 21:54:49 +00:00
bouyer 52a37d39ea vfr.c doesn't exists any more. 2005-02-03 21:38:59 +00:00
perry 35adf4031a de-__P, partially ANSIfy 2005-02-03 21:35:44 +00:00
perry 32a519cece de-__P, partially ANSIfy 2005-02-03 21:08:57 +00:00
perry 2454da651e de-__P, partially ANSIfy 2005-02-03 20:33:05 +00:00
perry ac90d5411b de-__P 2005-02-03 20:24:25 +00:00
perry 5fbcbbe2bb de-__P 2005-02-03 20:08:55 +00:00
perry 09c542ec15 de-__P, partially ANSIfy 2005-02-03 20:08:44 +00:00
chs 39b340a6f4 add the early-clobber modifier on the destination reg of ldstub.
in some implementations (eg. sun4c), the hardware modifies the destination
reg before checking for write permission on the memory location.  without
this change, gcc was using the same register for the address and the
destination, so if the store part of the instruction faulted, the address
was already gone when the instruction was retried after resolving the fault.
part of PR 25633, PR 25896.
2005-02-03 16:17:21 +00:00
chs 3cee1cf44e sun4c hardware reports faults by the atomic load/store instructions as
read faults even if the problem was that the memory was read-only.
detect this case and relabel the fault as both read and write.
details cribbed from linux and openbsd.
part of PR 25633, PR 25896.
2005-02-03 16:15:06 +00:00
briggs ecb75428c0 If we have not gotten the CPU speed yet, get it from OF here and print it.
This gives us the CPU speed for those CPUs that we can't probe in the ppc
common code.
2005-02-03 15:14:39 +00:00
briggs d6e37f352e Keep track of the CPU's current speed (in kHz) in the cpu info structure,
if we can get it.  May want to expand this in the future to include min
and max speeds for systems where we can adjust the speed.
2005-02-03 14:47:09 +00:00
pk b7ee084cd1 sun4/sun4c sw interrupt entry: check interrupt register to determine to
see whether there is a pending software interrupt at the given level.
If not, it must be a device interrupt sharing that level.
2005-02-01 22:33:02 +00:00
matt 5388f1ff2c Add gti2c/iic entries. 2005-02-01 20:59:55 +00:00
briggs fabe87766d Strip old "pm1" code. All PPC PMUs are "pm2" style. Two benefits:
* Cleans code up a bit, and
	* Reduces the call stack for PMU interrupts.
2005-02-01 03:24:29 +00:00
briggs 969369e173 Remove one level of interrupt redirection by switching on the ADB
hardware type and registering a Cuda or PMU interrupt handler
specifically instead of an intermediate interrupt handler.
2005-02-01 03:08:16 +00:00
briggs c5d6d91dc9 Clear all interrupts set by cuda. From Michael Lorenz. 2005-02-01 02:54:17 +00:00
briggs da18d7cc5e Add a PMU initialization call at ADB init time. This probes the machine
type for PMU / battery information, then uses that when getting battery
information for APM.  Allows older PowerBooks (pre-smart batteries) to
function with apm enabled in the kernel.  Thanks to Linux code for battery
information for these old batteries.  Something is still odd, though,
because a charging battery can show > 100% when it's near to full charge.

Enable more interrupts from PMU and handle PB3400 card eject buttons
properly, too.

Also use #defines for commands instead of raw hex codes.
2005-02-01 02:46:00 +00:00
briggs 2fd848709f Calculate and use seconds of power remaining for smart battery types. 2005-02-01 02:23:26 +00:00
briggs 66ca62ad71 Add some command definitions gleaned from Linux.
Add a field to pmu_battery_info to contain est. seconds of power remaining.
2005-02-01 02:22:31 +00:00
briggs 805b9387ef ADB_HW_PB is really ADB_HW_PMU. 2005-02-01 02:05:10 +00:00
briggs dba5409d0b adb_direct.h contents are in adbvar.h. No need for duplication. 2005-02-01 02:03:01 +00:00
jkunz 1a54c65d22 Only a part of the PCI memory space is mapped via BAT registers in machdep.c.
Depending on where the firmware relocated the OpenPIC register window it may
be unmapped causing a kernel panic early in bootup when the OpenPIC is
initialized. So take care of mapping it if it is outside the already mapped
region. As mapiodev() requires UVM move this initialization to cpu_startup().
2005-01-31 18:48:41 +00:00
jkunz 5d47a0a676 Disable use of BTLB mappings as BTLB handling is broken. 2005-01-31 18:22:24 +00:00
jkunz e4bed1ee79 Implement powerd(8) interface via sysmon(9) for power switch, controllable by sysctl(8). 2005-01-31 18:17:35 +00:00
jkunz 48f11129db Import mfcpu() from OpenBSD, needed by power switch code. 2005-01-31 17:32:15 +00:00
hannken a524d180e1 Regen. 2005-01-31 16:58:31 +00:00
hannken d5fbb6936f Add file system snapshots to kernel configs.
- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
  have a disk.  Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
2005-01-31 16:54:32 +00:00
simonb 3d23624f78 Fix some ddb build problems. Problems pointed out by Nick Hudson. 2005-01-31 07:18:51 +00:00
joff 564073f0d1 Add support for a 4x4 matrix keypad wskbd connected via the TS-7200 DIO header. 2005-01-31 06:12:35 +00:00
joff 34e8ea9d68 Add Port-B GPIO register equates 2005-01-31 05:51:44 +00:00
martin 2967f655ff Remove the no long usefull variants selected by undefining INTRLIST and
INTR_INTERLOCK to improve readability. Same object code generated as before.
2005-01-30 20:02:23 +00:00
thorpej 53eac4d6eb Eliminate use of M_HASFCS. 2005-01-30 19:15:41 +00:00
thorpej a7ba88252d Eliminate use of M_HASFCS. 2005-01-30 19:03:23 +00:00
chs 9a3f782ac4 define a new LWP flag which indicates that we're in the process of
doing a context switch.  use this on sparc and sparc64 to avoid trying
to access user memory (writing the register windows back to the stack)
in this case (since it's both unnecessary and wrong).
2005-01-30 16:56:26 +00:00
tsutsui 56ac22d93c Enable disconnect/reselect for esp(4) on 3/80 by default.
It also implies to enable tagged queueing, which works fine on my 3/80:
---
NetBSD 2.99.15 (CHARIOT) #184: Sun Jan 30 07:13:08 JST 2005
	tsutsui@mirage:/usr/src/sys/arch/sun3/compile/CHARIOT
Model: sun3x 80
fpu: mc68882
total memory = 65536 KB
avail memory = 62496 KB
mainbus0 (root)
obio0 at mainbus0
 :
dma0 at obio0 addr 0x66001000 ipl 2: rev 0
esp0 at obio0 addr 0x66000000 ipl 2: ESP100, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
 :
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST31230N, HP04> disk fixed
sd0: 1001 MB, 3992 cyl, 5 head, 102 sec, 512 bytes/sect x 2051460 sectors
sd0: async, 8-bit transfers, tagged queueing
sd1 at scsibus0 target 3 lun 0: <FUJITSU, M1606S-512, 6237> disk fixed
sd1: 1041 MB, 3457 cyl, 6 head, 102 sec, 512 bytes/sect x 2131992 sectors
sd1: async, 8-bit transfers, tagged queueing
boot device: sd0a
 :
---
(yes, async but tagged queueing :-)
2005-01-30 04:07:59 +00:00
tsutsui f855ff2dde Enable NCR_F_DMASELECT to use DMA xfer on command/selection phase.
It didn't work on sun3x when I and gwr tried back in April 1999,
but now it just works fine.
2005-01-30 03:52:41 +00:00
martin 101ec2e3b7 If we get a kernel data access fault without curlwp, we would panic later
in uvmfault with a meaningless messages - instead, panic right away with
a helpfull message. Or course, neither of this should ever happen.
2005-01-29 22:42:19 +00:00
jonathan 0e8a3d7d0d Now that we've switched to the split re(4) for PCI, add the cardbus
frontend for the split re(4) to files.cardbus, and to the generic x86
laptop config (sys/i386/conf/GENERIC_LAPTOP).

NB: as best I know, there are still unresolved issues in attach and
powersave, with the NetGear cardbus cards and re(4).
2005-01-29 21:59:53 +00:00
scw 6a6fbded73 Pull in sigcode.S only if COMPAT_16 is defined. 2005-01-29 11:41:06 +00:00
scw 1a62c87dce Add a simple driver for the on-chip DMA controller. Its only use at
this time is for hardware-assisted page copy/zero.
2005-01-29 11:37:18 +00:00
scw ac750eb431 Performance improvements for the cache/tlb manipulation routines. 2005-01-29 11:26:07 +00:00
scw f454961d0c When dealing with a pagefault, save pcb_onfault and set it to NULL until
after the pagefault has been dealt with. This ensures we DTRT if another
pagefault comes in (e.g. a NULL dereference) while dealing with the first.
2005-01-29 11:25:13 +00:00
scw c77d6b4d62 Shave an instruction from the ADDC macro.
(Pointed out by Simon Burge a long time ago)
2005-01-29 11:22:30 +00:00
scw 5ef90f8740 Change pmap_copyzero_page_dpurge() to return void. 2005-01-29 11:21:47 +00:00
scw c0efddb30c - Add some hooks to enable hardware-assisted (e.g. DMA) copy/zero page.
- Fix pmap_extract() to deal with a NULL paddr_t *.
2005-01-29 11:20:09 +00:00
jkunz 3721af6a75 Import struct pdc_power_info from OpenBSD, needed by power switch code. 2005-01-28 17:38:51 +00:00
jkunz 74a2c9190e Implement powerd(8) interface via sysmon(9) for power switch, controllable by sysctl(8). 2005-01-28 17:38:50 +00:00
jkunz 3c88ecfad5 Add two more revisions that use the pagezero info. 2005-01-28 17:38:49 +00:00
jkunz a4d6ea5ca9 Implement powerd(8) interface via sysmon(9) for power switch, controllable by sysctl(8). 2005-01-28 17:38:49 +00:00
jkunz 58332f0318 Enable sti(4) wscons(4) for all machines. 2005-01-28 17:32:15 +00:00
is 7fa7b64071 Don't expose spl functions to non-kernel. 2005-01-28 10:19:57 +00:00
rumble de81c2c878 Sprinkle options UFS_DIRHASH on GENERIC kernels. It's presently
commented out and labeled experimental pending further review and
testing.
2005-01-28 03:19:49 +00:00
mycroft 7ecc7a3071 Make awaitkey() poll once even if the timeout is 0. This also fixes a problem
where a keypress within the last polling interval would not be noticed.
Add a new function, conisshift(), which is used to detect whether a shift key
is pressed.  Use this via awaitkey() to allow interrupting the boot by holding
down shift (similar to LILO).

This allows setting the timeout to 0 and still being able to use the boot
program.
2005-01-27 18:20:45 +00:00
simonb 90d5b03202 Fix a typo in a printf string. 2005-01-27 12:35:53 +00:00
is 97eadfd5d7 NTOHL() is not the same as ntohl()... 2005-01-27 11:00:46 +00:00
martin c7b31c04d6 Remove orphaned extern declaration. 2005-01-27 08:50:27 +00:00
jmcneill 109219993b Fixup ACPI wakecode on i386. This (along with some PCI power management
hooks) allows my Latitude D600 to recover from S3 sleep.

acpi_wakeup.c changes from lha@:
  http://people.su.se/~lha/patches/netbsd/acpi-wakeup-1
2005-01-26 21:46:38 +00:00
kleink 3d7886ed58 MPC601: Use RTC instead of TB. (While I'm here, update these to use
the inline versions from <powerpc/cpu.h>).
2005-01-26 20:51:47 +00:00
he 0429525c8e The ANSIfication apparently revealed a use of netif_attach() with a
missing argument.  (It doesn't appear to be used, though, so this should
be a functional NOOP, except for fixing the build problem.)
2005-01-26 20:34:50 +00:00
he 6012a9f72d Make forward declaration and actual function definitions consistent.
Some of the functions changed signature in the previous commit.
2005-01-26 20:32:27 +00:00
he bee4200faa Preserve the const qualifier even if we cast the "from" argument in the
memcpy() and memmove() inline functions.
2005-01-26 15:53:52 +00:00
briggs d9b6766216 Ensure i/o commands are allocated on 16-byte boundary by allocating 15
extra bytes and adjusting array starts.
Issue pointed out on port-macppc by Michael Lorenz.

Also remove extra print of the device name on attach().
2005-01-25 19:05:22 +00:00
matt 691566cdec Initialize zsconschannel to -1 so that it can't matched unless zscninit
is explicitly called to set it up.
2005-01-24 21:39:15 +00:00
shige 3ad343e546 Add OpenBlockS266 GPIO LED Driver. 2005-01-24 18:47:37 +00:00
is 909ba1f5de Fixes by Klaus Klein. 2005-01-24 16:57:21 +00:00
is 0c23284a1c Don't be confused with trigraphs.
EXEC_ELF -> EXEC_ELF32
2005-01-24 15:49:29 +00:00
simonb 0bcf992248 Fix a couple of comments. 2005-01-24 11:54:51 +00:00
drochner 50ed6c7cf3 -remove definition of "struct sigframe" -- haven't found a use of it
(should fix build problems w/o COMPAT_16 reported by Markus W Kilbinger
  per PR port-mips/29041 and by Havard Eidnes)
-further shuffle COMPAT_* conditionals to allow COMPAT_ULTRIX
 w/o COMPAT_16
2005-01-24 10:03:57 +00:00
joff 1cd0ad9aff Add atu(4) 802.11b USB driver 2005-01-24 03:02:45 +00:00
joff 204717149e Enable atu, vnd, and kttcp by default 2005-01-24 02:40:00 +00:00
joff 8506af05a4 Fix mem/io extents usage. Previously had been mis-using the bs_cookie for a bs_tag. 2005-01-24 02:38:15 +00:00
joff f61320850a whoops, had intr mask inverted 2005-01-24 02:36:04 +00:00
cdi ab1460715b New kernel configuration for use during Cobalt netboot or as a rescue kernel
image. The idea is to keep INSTALL as small as possible (XXXVERBOSE options are
off, no IP filtering, SCSI support etc.) to shoehorn into size limits imposed
by the Cobalt's firmware and to have full-blown GENERIC kernel which uses
NetBSD bootloader anyway.
2005-01-23 20:05:26 +00:00
shige 5ed37446b2 Add gpio module. 2005-01-23 19:24:31 +00:00
shige 17dda52768 Add driver for On-chip General Purpose I/O. 2005-01-23 19:22:22 +00:00
chs 924b155d98 turn interrupts on in cpu_reboot(), in case someone reboots from
a strange context via ddb.
2005-01-23 19:10:23 +00:00
chs fba432b011 make this the same as the other m68k platforms. 2005-01-23 17:32:56 +00:00
chs fa924b7be7 move spl*() and IPL_* definitions from psl.h to intr.h. 2005-01-23 17:27:03 +00:00
pk dca752e34a Make pmap_map() work on sun4 machines.
Thanks to Matthew and Julian for finding this.
2005-01-23 17:04:26 +00:00
he e23b180fd3 Adapt to the change in type of ite_on() -- don't pretend that it returns
a value anymore (return type is now void).
2005-01-23 09:25:52 +00:00
simonb dc5fd1a390 Use lis@h/ori@l instead of lis@ha/addi@l since we may use r0 and addi
is one of those funny instructions that treats r0 == 0 when used as the
first arg.

Fixes problems on ibm4xx.  Ok'd by matt@.
2005-01-23 00:23:57 +00:00
chs 70e6d93136 bring back the sun3 MAXPHYS definition that has been missing for 8 years.
more recently, we changed to relying on MAXPHYS rather than MAXBSIZE to
limit page cache I/O sizes, and sun3 has been broken since then.
2005-01-22 17:13:14 +00:00
chs 10b1a7be5e de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t. 2005-01-22 15:36:09 +00:00
tsutsui ec0d5b6338 Use TAILQ_* macro. 2005-01-22 11:08:18 +00:00
tsutsui 7310abde32 Make all intr_mask value types uint32_t rather than int, u_int,
or unsigned etc.
2005-01-22 08:43:02 +00:00
tsutsui a510ad6a78 More ansify and KNF. 2005-01-22 07:56:28 +00:00
tsutsui 66f3c84b7a bzero -> memset 2005-01-22 07:44:33 +00:00
tsutsui 6f188aed1d Use M_ZERO flag for malloc(9) and remove bzero(9). 2005-01-22 07:44:08 +00:00
tsutsui 7fe2a5a003 - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
2005-01-22 07:35:33 +00:00
tsutsui a8633fb248 Unload xfer dmamap in asc_dma_stop(). 2005-01-22 07:32:05 +00:00
shige 9704ef243d Add consinit() and md_consinit funcptr to ibm4xx/machdep.c.
Rename consinit() to obs405_consinit() at evbppc/obs405/consinit.c.

Set md_consinit to obs405_consinit() at initppc().
Consinit fuction calls a function stored at md_consinit pointer.
2005-01-21 19:24:11 +00:00
drochner f270039c2c don't need signal trampolin version 1 if we just do COMPAT_OSF1 2005-01-21 15:50:42 +00:00
simonb 3df401ce77 Set up last segment descriptor to send an interrupt after that
descriptor is transmitted, and bypass existing Tx descriptor reaping
method (for now...).

Fixes problems with bad NFS write performance.
2005-01-21 15:19:09 +00:00
simonb b4e4cddd17 In emac_txeob_intr():
- return 1 if we processed any completed tx packets.
 - try to get more packets going by calling emac_start().
2005-01-21 15:15:20 +00:00
tsutsui 45b9175c68 Add options COMPAT_16 and COMPAT_20. 2005-01-21 12:24:02 +00:00
tsutsui b20d546713 Remove options COMPAT_15 and add options COMPAT_20. 2005-01-21 12:19:25 +00:00
tsutsui 33c4640b37 Add options COMPAT_20. 2005-01-21 12:11:30 +00:00
matt d21696b2d9 Add ochi & echi at cardbus 2005-01-21 06:19:04 +00:00
simonb d6bb93d348 Use LL suffix on >32bit constants. 2005-01-21 05:04:23 +00:00
briggs 1a5a156a7e Back out part of revision 1.46. Do not use atomic_setbits_ulong() for
softintr().  Need to figure out why this causes problems.  Thanks to
Izumi Tsutsui for isolating this change.
2005-01-21 03:22:13 +00:00
matt 5eeb71a595 Add more support for MPC7447A/MPC7448. 2005-01-21 00:58:34 +00:00
matt 9b69be93b4 Add extended BAT block size definitions. 2005-01-21 00:46:23 +00:00
matt f75acb0839 Add some HID1 definitions and HID0_XBSEN for 7455+ processors. 2005-01-21 00:45:48 +00:00
matt a59dee22f1 Correct BHTCLR/XAEN definitions. 2005-01-21 00:09:30 +00:00
matt dcecffc61f Add MPC7448 and change MPC745x_P macro to deal with it. 2005-01-21 00:04:54 +00:00
matt c104ee3507 Add entry for MPC7447A 2005-01-20 21:28:47 +00:00
matt 3f8b260589 Add MPC7447A (0x8003) 2005-01-20 21:26:49 +00:00
drochner 18dbb8a093 restrict visibility of sigcontext* as much as it appears
sensible for now
XXX there is more cleanup needed to make COMPAT_ULTRIX build
    w/o COMPAT_16)
2005-01-20 21:14:18 +00:00
drochner 207c761e82 expose struct sigcontext* just as much as necessary 2005-01-20 21:03:26 +00:00
drochner fb26d6a978 restrict visibility of struct sigcontext* as much
as possible; include the needed opt_compat_*.h for
kernel code
2005-01-20 20:55:55 +00:00
matt f9eccea348 Add ehci 2005-01-20 19:14:08 +00:00
he 770d02eadf Convert to using elf32-tradbigmips and elf32-tradlittlemips as output
formats, now that the toolchain has been converted to using those.
2005-01-20 09:14:36 +00:00
matt 2201849e4a Split the hw-dependent powermanglement into its own function and make
Idle call that.  Add a ci_idlespin function pointer to cpu_info.
Update INIT_CPUINFO to initialize it to a naked 'blr' instruction.
In oea/cpu_subr.c, add cpu_idlespin and make ci_idlespin point to it.
2005-01-19 22:22:56 +00:00
chs 40345beaa3 ibm4xx/pte.h is no more. 2005-01-19 14:46:26 +00:00
chs cbbe63f8de make this build again without sun4/4c. 2005-01-19 12:01:52 +00:00
simonb d22ebd9247 White space nit. 2005-01-19 11:41:07 +00:00
chs 7cd6a571a5 when determining the rom address, use only the IODC model and revision info,
not the unit number (from jkunz).  add two more revisions that use the
pagezero info (one from openbsd, one from me).
2005-01-19 03:30:21 +00:00
chs ea145b7bd7 use a flag in the softc to indicate if an instance has been configured,
rather than a bit in 32-bit global variable indexed by unit number.
2005-01-19 02:13:02 +00:00
chs b9e81e5420 amiga no longer abuses cf_unit. 2005-01-19 02:08:55 +00:00
chs 8f2820b4a6 use a flag in the softc to indicate if an instance has been configured,
rather than a bit in 32-bit global variable indexed by unit number.
2005-01-19 02:08:40 +00:00
chs d42decb9db mac68k no longer abuses cf_unit. 2005-01-19 02:05:04 +00:00
chs e576d75b00 only one of the obio locators was actually used, so get rid of the others
and collapse the two variations of obio into one.  use the remaining locator
("addr") to differentiate the two possible esp and sbc devices (instead of
using the unit number).
2005-01-19 02:04:49 +00:00
chs a73e314137 de-__P, remove register, ansify. 2005-01-19 01:58:21 +00:00
simonb a8164658f1 A more accurate microtime() implementation. Avoids precision
errors when the clock frequency doesn't divide nicely in to 10^9.
2005-01-19 00:26:54 +00:00
he c05b6145f4 Remove extraneous parenthesis, so that this compiles again. 2005-01-18 23:04:40 +00:00
shige 85cbab4d61 Add modules. 2005-01-18 17:57:41 +00:00
shige 2e5adfe8b7 - Copy evbppc/obs405/machdep.c to evbppc/obs405/md_machdep.c.
(prevent machdep.o from conflict)
- Rename function: cpu_startup -> obs405_cpu_startup.
- Set md-func-ptr: md_cpu_startup = obs405_cpu_startup.
2005-01-18 17:55:16 +00:00
shige 95b240720a Arrange some machine-dependent code.
- ibm40x_machdep.c: ibm40x specific
	. ibm40x_memsize_init
	. mem_regions
	. other functions are moved to machdep.c or ibm4xx_machdep.c.
  - ibm4xx_machdep.c: ibm4xx specific
	. ibm4xx_init (moved from ibm40x_machdep.c)
	. ibm4xx_install_extint (moved from ibm40x_machdep.c)
	. ibm4xx_cpu_startup (moved from ibm40x_machdep.c:ibm4xx_startup)
	. ibm4xx_dumpsys
2005-01-18 17:11:25 +00:00
shige 48188681e8 Add ibm4xx family common module.
- machine-dependent global variables
  - cpu_startup glue
  - softnet/softserial (copy from ibm40x_machdep.c)
2005-01-18 16:56:24 +00:00
briggs e50bfa0ddc Formatting.
Add a couple of DIAGNOSTIC checks to look for NULL interrupt handlers.
2005-01-18 15:20:23 +00:00
simonb 58b6dc006c We only need a 2MB md for install images, not an 8MB one. 2005-01-18 12:38:41 +00:00
scw 4db6edf008 Add "options PMS_SYNAPTICS_TOUCHPAD", commented out by default. 2005-01-18 10:30:11 +00:00
scw 9a196509a4 Add "options PMS_SYNAPTICS_TOUCHPAD", commented out in all but GENERIC_LAPTOP. 2005-01-18 10:28:00 +00:00
chs a69406e59e sun2 no longer abuses cf_unit. 2005-01-18 07:34:09 +00:00
chs 348f7d206d sh3 no longer abuses cf_unit. 2005-01-18 07:30:49 +00:00
chs 14956c87b7 x68k no longer abuses cf_unit. 2005-01-18 07:30:27 +00:00
chs 05bac5b187 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that x68ks can have more than 1 com
(which they might actually have, but the driver doesn't currently allow it).
determine which instance is the console by comparing the iobase rather than
the unit number (which is silly given the above, but whatever).
2005-01-18 07:28:46 +00:00
chs 8b1c7b2e30 use a new "addr" locator for grf instead of the unit to match the instance
to the hardware.  use a new "grfaddr" locator to match ites to their grfs,
instead of requiring that their unit numbers be the same.
2005-01-18 07:27:20 +00:00
chs d57ca0cff9 de-__P, remove register, ansify. 2005-01-18 07:12:15 +00:00
uwe 5176524b6f Use uint<N>_t instead of u_int<N>_t. 2005-01-18 04:09:09 +00:00
uwe a1e2e32edf Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does.  Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
2005-01-18 03:59:11 +00:00
matt 98b6754e59 Fix problem with unclosed comments 2005-01-17 22:41:23 +00:00
dsl 02a6e19ef1 Fix comment, code is requesting CHS geometry, not max LBA sector 2005-01-17 21:28:51 +00:00
drochner 0baafe8595 separate the requirements for OSF1 compat from NetBSD's 2005-01-17 20:13:25 +00:00
shige 75299da6ed Add openbios dependent code to obs405 machine-dependent modules. 2005-01-17 17:24:09 +00:00
shige ce880a5946 Remove openbios dependent code from ibm4xx/ibm40x dependent module. 2005-01-17 17:19:36 +00:00
shige 6e7077020b Move struct propdb *board_info to powerpc/ibm4xx/board_prop.c. 2005-01-17 17:14:56 +00:00
shige 50f317e0f4 Add board properties database code. 2005-01-17 17:13:49 +00:00
briggs 5a6a395c0b Add option COMPAT_20. Pointed out by Chris Tribo in PR port-macppc/28988. 2005-01-17 16:42:55 +00:00
shige 0f2e586866 Add openbios-board related modules.
- openbios.c
	getting board data memory image from openbios.
	setting all board data to board properties database.
  - board_prop.c
	initialize board properties database.
	(set/get board properties [macros in ibm4xx/cpu.h])
2005-01-17 16:23:27 +00:00
cube ec53a61e98 Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also.  With the exception of i386's
GENERIC_TINY.

XXX:  we _need_ some way of making this more simple.
2005-01-17 15:28:51 +00:00
minoura 6a6ea8a9fc mfp_attach() is called twice (console init & real config). 2005-01-17 14:06:14 +00:00
martin d1663b2528 In bus_dmamap_load_mbuf some diagnostic tests (#ifdef DEBUG) are only valid
if we are going to return success.
2005-01-17 07:55:18 +00:00
simonb 3c2980238e Now that countless UVM bugs have been fixed and the MIPS pmap_prefer()
can deal with topdown for CPUs that need to deal with cache alias
conflicts (thanks Andrew Brown!), enable "topdown" memory allocation by
default.
2005-01-17 05:26:02 +00:00
atatat 17b1390278 Teach mips pmap_prefer() to deal with topdown.
Tested by simonb.
2005-01-17 04:54:14 +00:00
atatat a076957818 Convert the PMAP_PREFER() macro from two arguments (offset and hint)
to four (adding size and direction).

In order for topdown uvm to be an option on ports using PMAP_PREFER,
they will need to "prefer" lower addresses if topdown is being used.
Additionally, at least one port also needs to know the size.
2005-01-17 04:37:20 +00:00
joff 944e317a54 dont use TX intrs and various other performance improvements 2005-01-17 02:32:29 +00:00
chs 95c9f4ab0a add some whitespace. 2005-01-16 23:52:12 +00:00
chs 085319fca3 use ENTRY_NOPROFILE() for various entry points,
stack traces work better that way.
2005-01-16 23:50:13 +00:00
chs 60eac8c78f echo the objcopy we actually run. 2005-01-16 23:40:34 +00:00
chs dcc797e3dc increase SYMTAB_SPACE again. 2005-01-16 23:39:44 +00:00
chs 831b9cc380 remove some dead code, simplify and wrap some long lines. 2005-01-16 23:26:19 +00:00
chs 0b7dee4b92 implement pmap_wired_count(). use more macros for determining MMU type. 2005-01-16 23:19:52 +00:00
chs bfbf7ea9b1 implement pmap_wired_count(). fix some places we would forget to splx().
move the parts of pte.h that were used into pmap.c (since they were really
pmap-internal details) and delete ibm4xx/pte.h.  other misc cleanup.
2005-01-16 21:35:58 +00:00
tsutsui 18cc5c6cd5 Comment out options XSERVER, which was required by old pccons. 2005-01-16 14:58:42 +00:00
hamajima 1daa6c5284 Apply patch hpcmips/26158 (requested by darkstar)
This patch solves install/28656.
2005-01-16 03:21:21 +00:00
chs 584edb5b1a simplify by not pretending that mac68k can have more than 1 zsc. 2005-01-16 00:33:43 +00:00
chs 12fcee381e only match one instance (instead of an unlimited number).
simplify by not pretending that mac68k can have more than 1 zsc.
2005-01-16 00:32:59 +00:00
chs 7caab7b80d don't require that the aed unit number be zero. 2005-01-16 00:32:16 +00:00
chs 630333b875 handle lack of locators in LKM context differently. 2005-01-16 00:32:03 +00:00
chs 8a9023bfc6 really ansify. 2005-01-15 22:39:09 +00:00
chs 7acd68b14a de-__P, remove register, ansify, b* -> mem*. 2005-01-15 16:00:59 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
skrll 3d4f3981f0 Make this compile 2005-01-15 13:05:45 +00:00
skrll c0cd9d1765 s/u_int_t/u_int/ in structure member declaration. 2005-01-15 13:03:40 +00:00
mhitch 3eeb49f1f2 Detection of mouse packet did not work with my mouse. It only sends 6 bytes
instead of the 8 defined by struct dt_locator_msg.  Change the dectection
so we swap the mouse/keyboard addresses only if the packets don't match
what's expected (rather than on every packet).  My mouse now works, and
if a different mouse sends an 8 byte packet, it should also work.
2005-01-15 05:24:30 +00:00
briggs 6f08c43eaa Drop default RX bufs to 2 so that they fit in one page of RAM.
Located by Tim Kelly.  Also discussed on port-macppc with Dave Huang.
XXX -- This driver really needs to be introduced to bus_dma(9).
2005-01-15 02:50:22 +00:00
ragge c6e237dd62 Fix halt/reboot register write syntax. From Johnny Billquist. 2005-01-14 11:47:43 +00:00
skrll 2cd9c39722 Update the emulation names after recent binutils changes. 2005-01-14 08:17:49 +00:00
joff d3eafb7e4f Dont try freeing bootstrap pages with pool_page_free. Fixes kern/28869 2005-01-14 02:28:54 +00:00
simonb ab2eace68f Revert the previous change of making topdown VM the default. While
topdown VM works on a MIPS64 bcm1125, it doesn't work on a Cobalt
(rm5231?) and a DEC 5000/260 (r4400).  On both of these init dies and
we panic.
2005-01-14 01:26:22 +00:00
kleink db5b1f2fa2 Pass the interrupt swizzle down to the platforms' fixup functions.
N.B. Only using it on the ulmb60xa for now.
2005-01-13 23:57:04 +00:00
fvdl 4880e83638 If there are no ioapics, don't bother to put things in ioapic mode.
However, always do this otherwise, regardless of the revision.
Remove incorrect comment.
2005-01-13 23:40:01 +00:00
shige 64e3403f1b Add files:
- powerpc/ibm4xx/autoconf.c		(autoconf glue)
	- powerpc/ibm4xx/ibm4xx_autoconf.c	(autoconf for ibm4xx)
	- evbppc/obs405/md_autoconf.c		(machine-dependent autoconf)
2005-01-13 17:20:18 +00:00
shige 8f63deecdb Set machine-dependent obs405_device_register function to md_device_register. 2005-01-13 17:17:53 +00:00
shige 49c3c14437 Add externs:
- md_device_register (func ptr)
	- ibm4xx_device_register (func)
2005-01-13 17:16:33 +00:00
shige 2e87452aa9 Remove device_register, cpu_rootconf functions.
These functions are moved to ibm4xx/autoconf.c.
2005-01-13 17:14:36 +00:00
shige 79354dbad0 Add device_register function for all ibm4xx machine. 2005-01-13 17:12:28 +00:00
shige 786539f27b Add device_register machine-independent-glue. 2005-01-13 17:11:14 +00:00
shige 0a3cce2ad4 Add machine-dependent device_register function. 2005-01-13 17:09:17 +00:00
shige 6751e96490 Call com_opb_cnattach function. 2005-01-13 17:07:24 +00:00
is a354b7d3c8 Regenerate from GENERIC.in: no more idesc - we're using wdc. 2005-01-13 16:12:35 +00:00
is fe6a35af59 No more idesc please - we use the wdc driver. 2005-01-13 16:11:38 +00:00
fvdl ae8c299425 * Wrap IPI sending in splclock(), since an interrupt at IPL_CLOCK or lower
may cause IPIs.
* Make broadcast IPIs go through x86_ipi() as well, so that they wait for
  the APIC to be ready too.

From Stephan Uphoff.
2005-01-13 00:08:22 +00:00
drochner 9f4d33cf9a On my laptop, the SMI handler for the TCO interrupt appearently
re-tickles the watchdog, keeping the system from rebooting.
So enable the SMI for TCO only if the hardware reset is not available,
as a last resort.
2005-01-12 17:45:58 +00:00
reinoud 9695bde219 Add auixp(4) driver for the architectures that are known to have the ATI
IXP chipset.
2005-01-12 00:18:16 +00:00
skrll e2b108cb16 Add iwi(4). 2005-01-11 18:41:59 +00:00
he d305062a73 In the __lint__ version of va_arg(), apply the cast the user specified.
Fixes build problem; vfprintf.c from libc fails to lint otherwise.
2005-01-11 11:36:27 +00:00
simonb f17401da54 Add isa_irq.o and spl.o to the list of files that depend on assym.h so
that "make -j<bignum>" works without a "make depend" beforehand.
2005-01-11 08:41:07 +00:00
simonb f645983fc7 Switch from intrcnt interrupt account to event counters. 2005-01-11 08:05:13 +00:00
simonb 3b6024ad24 ANSIfy. 2005-01-11 07:01:38 +00:00
simonb 61b633d474 Now that countless UVM bugs have been fixed, enable "topdown" memory
allocation by default.
2005-01-11 05:42:17 +00:00
chs 67402a485f enable powersave mode on 7450 and family.
also, the HID0_DOZE bit in this context doesn't mean "doze",
it's actually "enable extra BATs".  add an alias for this bit
and use it as appropriate.
2005-01-11 02:09:54 +00:00
chs cf6b9650a5 remove leftover debug printf. 2005-01-11 02:04:01 +00:00