Commit Graph

38980 Commits

Author SHA1 Message Date
pk 9d70d77aae sbus_attach: use bus_space_tag_allocate();
sbus_bus_map: use bus_space_translate_generic();
sbus_bus_addr: use BUS_ADDR().
2004-06-30 21:37:49 +00:00
pk 889aa9f444 Introduce bus_space_tag_alloc() for the common parts of bus tag allocation. 2004-06-30 21:16:38 +00:00
christos 45879fd71c - full ansi prototypes
- turn WARNS=3 on
2004-06-30 15:43:57 +00:00
kochi d23b9803c9 fix a duplicate member in designated initializers, which was a bug
introduced in rev 1.5.
pointed out by Andreas Gustafsson.
2004-06-30 14:46:07 +00:00
jmc f648d12d47 Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
kleink 6075ea53ef In the delay loop, mark the scratch register as earlyclobber. 2004-06-29 16:26:05 +00:00
kleink bac8f8978b Repair operand constraints in delay(). 2004-06-29 16:21:16 +00:00
kleink 1cb7e9cdb5 In the delay loop, mark the scratch register as earlyclobber. 2004-06-29 12:01:11 +00:00
simonb fcd5c633c6 We don't need to announce to the world when setstatclockrate() is called... 2004-06-29 08:12:20 +00:00
itojun b140dfa763 s/options\t\t/options \t/. (whether UMASS_DEBUG is appropriate for everyone's
GENERIC is a different issue.  i'm not sure)
2004-06-29 04:51:29 +00:00
bouyer 0f8b776e09 Regen, added P1003_1B_SEMAPHORE. 2004-06-28 21:09:22 +00:00
bouyer 21e9a36edc Add options P1003_1B_SEMAPHORE
to all GENERIC-like kernel config files where SYSV* options were already
present (commented out if the SYSV* options are commented out).
Fix lib/25897 and lib/25898.
2004-06-28 21:07:47 +00:00
jkunz 61c5baa29e Ignore disklabel errors. Needed to make netbooting work again on some
old 700 machines and to be able to boot from LIF images on disk.
2004-06-28 16:40:44 +00:00
jkunz 0751bf5e12 The bootloader overwrites itself when relocated to 0x720000 and booting a
"big" kernel like GENERIC. So relocate the boot loader just below kernel text.
2004-06-28 16:27:15 +00:00
uch 7782d1dc8c add HPW200EC entry. 2004-06-28 14:43:42 +00:00
pk e839b8dccb Provide bus_space_translate_address_generic(), a helper function to
translate a local bus address to an address on the parent bus.
2004-06-28 10:17:01 +00:00
pk a24d586ab2 Rename bus_translate_address_generic => bus_space_translate_address_generic()
and move prototype to <machine/bus.h>.
2004-06-28 10:14:13 +00:00
pk 736c085516 Add openprom range property to the bus space tag. 2004-06-28 09:32:14 +00:00
fvdl 029ca90566 Updaing ci_ilevel and testing ci_ipending must be done with all interrupts
off, or priority inversion can occur, which can lead to IPI deadlocks.
Leaves interrupts off for a bit longer, sadly, but with no noticeable
effects on the systems I tested on.

From YAMAMOTO Takashi.
2004-06-28 09:13:11 +00:00
fvdl 07a2b21f39 Set the double fault stack pointer at the end of the stack. 2004-06-28 08:23:21 +00:00
mycroft 23e6f04707 Significant cleanup and bug fix of root device detection:
* On systems where it's relevant (6600, kn300, kn8ae), check which PCI bus
  hierarchy we're looking at.
* Consistently check PCI function numbers (important for quad-channel ATA
  controllers).
* Check the channel number (important for ATA and multi-channel SCSI
  controllers).
* Check logical unit numbers.
* Use strcasecmp() to check b->protocol; the case is different depending on
  the firmware revision.
* Remove b->boot_dev_type check; it's unneeded.
* Remove extraneous unneeded variables.

Not only does this fix a few PRs and multiple long-standing bugs, but the
code is smaller too.

PR 9432
PR 12225
PR 25830
2004-06-28 03:53:40 +00:00
pk 66a4653f8a Always use `full bus space'. In order to implement this more efficiently,
require that all bus tags have pointers to bus_space_read/write functions,
i.e. no run-time hunting for the first "upstream" implementation.
Since this changes the way bus tags should be constructed it makes sense
to do the same thing for the rest of the bus space methods.
So, now bus space tags are generally constructed by copying the parent's bus
tag and then overriding the methods that the bus driver needs to handle,
instead of starting with an empty bus tag and fiiling in only the fields needed.
2004-06-27 18:24:46 +00:00
martin f142712a67 Add mtd (Myson MTD803 3-in-1 Ethernet) driver. 2004-06-27 16:47:06 +00:00
pk fc7183f440 GC unsed sparc_vme_bus_tag. 2004-06-27 16:08:42 +00:00
dsl 5cf67adbc4 Change interface between bootxx.S and boot1() - always linked together.
This allows boot1() to change the sector number (of the boot partition)
that bootxx.S passes through to boot2().
This means that boot2() will find the correct partition when boot1()
reads /boot from the 'a' partition instead of the mbr boot partition.
This all happens when you update a system that used a small 'wd0h' partition
to boot a raid1 set to the new bootcode.  Deleting /boot from the 'wd0h'
partition will make the new bootcode find /boot and the root filesystem
inside the raid set.
2004-06-27 15:37:11 +00:00
kleink 8df5a93aff Add platform support for the IBM RS/6000 6015 a/k/a 7020-001 a/k/a 40P. 2004-06-26 21:51:04 +00:00
kleink 0fea7f39a2 On OEA, turn PSL_USER* into runtime values appropriate for the CPU model
we're executing on; besides dealing with the bits not implemented in the
601's MSR it also removes the silent failure behaviour when passing
PSL_VEC set on a CPU not implementing it.

Also, fix those masks for the 4xx again.
2004-06-26 21:48:30 +00:00
kleink 5b37ad104f Repair a sentence. 2004-06-26 16:04:55 +00:00
abs 94d96eecb4 Regenerate from master config files 2004-06-26 07:34:43 +00:00
abs bd8eb3b5ed Add (commented out) ALTQ options to all GENERIC-like files 2004-06-26 07:32:05 +00:00
christos fbed76869e add procfs, fdesc and nfs server. All other generics have it. 2004-06-25 02:12:59 +00:00
christos f385b3f45a add posix semaphores and compat-2.0 2004-06-25 02:06:08 +00:00
martin 44eda0ad6b Add missing ; in inline assembler for 32bit kernels 2004-06-24 19:42:27 +00:00
he ca8cc7fe56 Move include of files.usb to after files.wscons, so that tpcalib is
defined before it's used.
2004-06-24 18:32:38 +00:00
he 5057d12815 Move files.usb to after files.wscons, so tpcalib is defined before it's
referenced.
2004-06-24 05:59:33 +00:00
kleink 0edffeb867 On MPC601s, rewrite any (unimplemented) tlbsync instruction as a sync. 2004-06-23 22:04:44 +00:00
kleink 924e984b2b Move the HAVE_NBTOOL_CONFIG_H stanza to the top, unbreaking mkbootimage
again after this week's tools/compat overhaul.
2004-06-23 21:39:32 +00:00
kleink e96cbc9de3 Prep for the MPC601's RTC. 2004-06-23 17:50:42 +00:00
kleink 3cd264f0f5 On the 601, simply supply the fixed RTC clocking information. 2004-06-23 17:28:24 +00:00
yamt 9a1474eb02 remove a prototype for a function which doesn't exist. (npxdna) 2004-06-23 12:24:01 +00:00
mrg b83f6fa528 Add re; Realtek GbE. 2004-06-22 16:28:28 +00:00
toshii 792bff8d3c Add re; Realtek GbE. 2004-06-22 15:31:38 +00:00
toshii a9b9fd4313 Add re; Realtek GbE. 2004-06-22 15:18:33 +00:00
itojun 596aec9a47 have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
2004-06-22 14:09:49 +00:00
bsh a3f45b38fe Implement software reset by means of watchdog timer. 2004-06-22 11:18:32 +00:00
jmc 84fafa3db5 Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
manu a7a2220651 We used to look in psuedo-hid (with a typo) device for the keyboard. On
newer machines (iBook G4), it is in pseudo-hid (without typo), and there
are no `adb-kbd-ihandle or `usb-kbd-ihandles methods. In that situation,
just try to attach anything we can.

This patch fixes spurious inputs on iBook G4.
2004-06-20 21:02:07 +00:00
manu 72f86bef61 We used to look for the interrupt controller through the "interrupt-controller"
property of "/chosen" node in OF tree. On newer machines (e.g: iBook G4),
this property does not exist. We look for the node "mpic" as a second attempt
after a failure in /chosen.

This makes the iBook G4 keyboard almost usable (there are still some spurious
inputs on system startupi)
2004-06-20 20:50:13 +00:00
thorpej 67e828e7d8 Remove the "ID" component of the x86 bus_dma flags, since these are no
longer "ISA DMA" specific flags.
2004-06-20 18:04:08 +00:00
thorpej 82c52d4891 Add COMPAT_20. 2004-06-20 03:24:04 +00:00
thorpej 6862b70e43 Merge x86/bus_dma.c 1.11 by yamt:
Simplify bus_dma internal "load" functions by eliminating the "first"
variable, using seg == -1 instead.
2004-06-19 18:06:00 +00:00
martin 4c2f43b8cf Better support for booting from partitions != a or at the start of the
disk, allow commands like "boot disk:d disk:d/netbsd" to work.
Use the real RF_PROTECTED_SECTORS define instead of a local magic number.
While there, minor cosmetics in diagnostics/output format.
2004-06-18 21:04:39 +00:00
martin 31895478bc Use RF_PROTECTED_SECTORS instead of a (wrong) magic value.
The bootblock now is able to load ofwboot from a raid1 root.
2004-06-18 18:42:15 +00:00
christos c22e4ed8cd ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM 2004-06-18 15:02:29 +00:00
martin d0c69e4d18 Fix small glitches to make SMP kernels compile again. 2004-06-18 12:51:39 +00:00
jmc a901947b0f Pull in machine/fpu.h to pick up fxsave64 2004-06-18 04:09:29 +00:00
petrov 8b0935d09f Define mp_pause(resume)_cpus needed for callprom. 2004-06-18 00:05:05 +00:00
petrov ac26f9468c clean-up, reformat __asm statements. 2004-06-17 19:35:14 +00:00
chs 3dc76deeeb pick up some updates from OpenBSD:
----------------------------
  revision 1.25
  date: 2003/07/15 17:15:32;  author: mickey;  state: Exp;  lines: +2 -2
  model and revision were swappedplaces in the struct
  ----------------------------
  revision 1.23
  date: 2003/03/29 01:00:49;  author: mickey;  state: Exp;  lines: +2 -1
  add some author refs from the older versions of these from much older projects
  ----------------------------
  revision 1.22
  date: 2002/12/15 21:07:26;  author: mickey;  state: Exp;  lines: +22 -4
  max size for the iodc entry point is 64k, by the iodc spec;
  add sysmap defs, used on newer machines.
  ----------------------------
  revision 1.21
  date: 2002/12/15 17:52:02;  author: mickey;  state: Exp;  lines: +2 -1
  pdc device class for fibrechannel; from the iodc spec
  ----------------------------

the 1.22 change fixes the bootloader on my B180L.
2004-06-17 15:35:15 +00:00
fvdl 26759c3afa When converting GDT length units from segment structures to bytes for the
amd64 port, I converted MINGDTSIZ wrongly; it was not page aligned, causing
gdt_grow to corrupt the GDT. Fix this, and remove the extraneous definitions
of the sizes from gdt.c.

From OpenBSD.
2004-06-16 17:45:03 +00:00
christos 0399e839cf Add pseudo-device ptm on all the generic flavored kernels. 2004-06-16 15:07:39 +00:00
he e9c0c82b9d Include files.usb after files.wscons, so that tcpalib is defined before
it's referenced.
2004-06-16 12:15:00 +00:00
fvdl 2c51ec74d3 Start at the top of the double fault stack, not the bottom. 2004-06-16 10:13:46 +00:00
fvdl f24cbf3372 Remove IDT protection while doing unsetgate too. 2004-06-16 10:01:31 +00:00
briggs 016f80557d Make sure kernels with KGDB enabled will compile properly.
Apply patch from Hauke Fath in PR port-mac68k/25678.
2004-06-16 05:33:23 +00:00
mhitch c80b111e4d AmigaDOS installation tools moving to distrib/amiga/stand. 2004-06-16 02:04:11 +00:00
jkunz 95f5074f87 Rework code to identify the boot device. 2004-06-15 20:43:41 +00:00
jkunz 2b62e6e461 Use correct disklabel offset. 2004-06-15 20:40:17 +00:00
chs 9c209c4b37 clear pcb_onfault before calling uvm_fault() and restore it after.
remove some debug code that actually makes debugging harder.
2004-06-15 16:29:32 +00:00
chs b7bd18170e flush the dcache after accessing pcb_fpregs.
we access it with the DTLB both on and off,
so we need to avoid bad cache aliases.
2004-06-15 16:29:01 +00:00
chs 508451c5cd include opt_ddb.h 2004-06-15 16:28:37 +00:00
fvdl 5c568543d4 Make the IDT read-only. It's only mapped R/W when really needed. Could
catch disasters such as overwriting it. Should probably be made
conditional on DIAGNOSTIC later, but there's no time-critical code
involved here.

Move the double fault stack away from the IPI stack. It's now shared
between CPUs, but that's not a big deal; double faults are fatal
and can't be recovered from.
2004-06-15 11:35:27 +00:00
fvdl 45692cb944 A double fault always pushes a 0. 2004-06-15 11:28:23 +00:00
fvdl 3f3313c442 Implement pmap_changeprot_local 2004-06-15 11:28:04 +00:00
fvdl 3b31d7b8a5 Add a prototype for pmap_changeprot_local, a function that changes
protection for a page and doesn't care about TLB shootdowns.
2004-06-15 11:27:38 +00:00
skrll 31fb35bd8d Fix MAKEOBJDIRPREFIX builds and remove a line continuation that is not
needed.
2004-06-15 07:41:36 +00:00
itohy 064488f724 Add xxboot 2004-06-15 03:10:56 +00:00
itohy b119940e75 NetBSD/hp700 FFS/LFS Primary Bootstrap 2004-06-15 03:10:30 +00:00
he 3b60dfd3bd Factor out the C preprocessor defines and include flags from CFLAGS
to CPPFLAGS, so that they are also applied when compiling assembler
files.
2004-06-14 22:25:38 +00:00
tshiozak 0d08b7cade Make sure to restore curproc's PTD before calling AcpiEnterSleepState().
Leaving the PTD inconsistent may crash the kernel.
2004-06-14 18:09:35 +00:00
cl 0ebd762347 cleanup low-level bit mangling code 2004-06-14 13:55:52 +00:00
tsutsui 7225c12326 Pull some fixes from hpc/kloader.c rev 1.13:
> malloc program/section header table instead of fixed array.
> add debug print.
2004-06-14 13:52:47 +00:00
tsutsui 3e64689691 Suppress gcc uninitialized variable warning. 2004-06-14 13:50:08 +00:00
itohy 8d0766de85 Correctly handle ``events with handler'' and ``events enabled'' separately.
Problem pointed out by Harold Gutch and Izumi Tsutsui.
2004-06-14 12:47:36 +00:00
lukem b88c3a1555 Use "options<SPACE><TAB>".
(`egrep -l '(^|[^e])options<TAB>'` is your friend...)
2004-06-14 01:27:59 +00:00
abs 681718e784 Add BOOT_LEAVE_MEMORY (desired memory left unused) and BOOT_MIN_AVAIL_MEMORY
(minimum desired free memory), default them to 5M and 10M respectively.
On a machine with more than (BOOT_LEAVE_MEMORY + BOOT_MIN_AVAIL_MEMORY) free
BOOT_LEAVE_MEMORY will be left unused.
Allows a kernel to be booted from SparkFS on a machine with more than 15M
of free memory (SparkFS needs to be able to allocate memory for the
uncompressed kernel)
2004-06-13 20:50:14 +00:00
rumble 875866073a sekiya-san's platform abstraction allows us to keep these
functions static.
2004-06-13 18:30:11 +00:00
rumble 0f58ff497d General cleanup to improve style consistency and KNF adherence.
Updated comments and removed superfluous code. No functional
change intended.

ok'd by pooka and sekiya
2004-06-13 18:28:35 +00:00
yamt ff7fa9e50e remove XXX comments which are no longer true. 2004-06-12 17:22:04 +00:00
yamt 941f338d94 ANSIfy. 2004-06-12 17:18:13 +00:00
yamt 4af17d9901 simplify x86 bus_dma implementation.
(rather than passing &lastaddr and &seg around,
use and update bus_dmamap_t directly.)
2004-06-12 17:16:44 +00:00
yamt e25482312e - introduce _bus_dmamap_load_paddr, which takes (paddr, size) and
add the range to the map, and use it for _bus_dmamap_load_{buffer,mbuf}.
- _bus_dmamap_load_mbuf: in the case of M_EXT_PAGES, deal with vm_pages
  directly rather than doing pmap_extract on given kva.

as a side effect, do a segment coalescing and boundary checks for mbufs.

ok'ed by Frank van der Linden and Jason Thorpe on tech-kern@.
2004-06-12 17:14:55 +00:00
yamt 0238f7233c simplify x86 bus_dma internal "load" functions.
(by eliminating a variable "first" and using seg == -1 instead.)
2004-06-12 17:10:04 +00:00
uch d20b906b5b When serial console boot, don't find power supply port from
config_hook. Windows CE already power on it, and config_hook is not
initialized yet.
2004-06-12 15:39:33 +00:00
uch c135c6674f malloc program/section header table instead of fixed array.
properly terminate tag chain.
 add debug print.
2004-06-12 14:31:49 +00:00
uch 7bc635be96 recompile. 2004-06-12 12:10:04 +00:00
uch fe28a59378 adjust segment load address to 4byte align. 2004-06-12 12:09:38 +00:00
uwe 2869ffe3e5 As the 2nd stage loader uses simple word-by-word copy, make sure that
destination addresses of page tags are properly aligned.
2004-06-11 22:56:00 +00:00
tshiozak 1b7c9e7222 - make sure to use proc0's PTD for the ACPI wakecode.
- add re-initialization for npx while resuming.
2004-06-11 19:45:55 +00:00
chs 5579fe0ffc change sigdebug default to not print anything. 2004-06-11 14:01:02 +00:00
chs a9402ad488 convert another %b to bitmask_snprintf(). 2004-06-11 13:59:40 +00:00
is 1a51c1000a Don't recompute loadbase; use the value passed by the bootloader instead.
(It should know where it loaded us, right?)
Patch contributed by Gunter Nikl.
2004-06-11 12:23:10 +00:00
petrov 3c80c1c781 pci_find_ino: support pci-pci bridges. 2004-06-11 03:52:00 +00:00
uch 4ce277b80f make hpcboot compile again. 2004-06-10 18:35:26 +00:00
matt 7fe2525338 Update RESIDUE_LW[01] to their correct offsets 2004-06-10 18:32:20 +00:00
kleink c004d32eb8 Reflect <sys/endian.h> rev. 1.4: make htonl() et al. arguments and
results uint{16,32}_t.  Noted by Ian Zagorskih.
2004-06-10 16:01:39 +00:00
uch 02fac2e6f2 recompile. 2004-06-10 16:00:08 +00:00
uch 237009a03b add __daddr_t=int32_t 2004-06-10 15:59:21 +00:00
uch 352d7c06a3 add Multimedia Card entry. 2004-06-10 15:58:33 +00:00
uch 4d7bd279c7 allocate section and program header table dynamicaly.
fixed section header table over flow problem.
2004-06-10 15:57:18 +00:00
uch 40fef19ff3 change uuencoded suffix. 2004-06-10 15:55:36 +00:00
seb c97029b2ee Add cnmagic(9) support: previously only <Break> was supported to break
into the debugger or ROM monitor from the console.
Note that <Break> is still the default.

Thanks to martin@ for testing.
Approved by petrov@.
2004-06-10 12:11:19 +00:00
kleink 8a98994beb Get rid of the silly CPU601 hooks and move BAT register restoration and
obliteration to RESTORE_{KERN,USER}_SRS, respectively; have oea_init()
patch these sequences to be skipped on non-MPC601s.  The code sequence
matching heuristic isn't as pretty as the one for VRSAVE and MQ but works
well enough with the current structure of the trap code, and can be easily
updated when necessary.
2004-06-09 23:24:51 +00:00
rumble 533084bbc7 Refactor consinit() for readability by pulling out mach_type
specific code into their own functions. No functional change is
intended.

ok'd by pooka and sekiya
2004-06-09 23:01:01 +00:00
martin 86494c7fd4 Add pseudo-device ptm. 2004-06-09 20:25:54 +00:00
kleink 15764c5ab2 pmap_extract(): consider the MPC601's different battable layout, and its
use of I/O segments.
2004-06-09 19:30:57 +00:00
kleink 00fcabcfc9 Print SPR 0x100 as VRSAVE on non-4xx. 2004-06-09 19:19:05 +00:00
he b22e6a658e Bump size of ramdisk image from 3148KB to 3200KB so that the contents
fits again.
2004-06-09 19:04:38 +00:00
chs 5183104959 redo rev. 1.13, handle curlwp being NULL correctly. 2004-06-09 16:06:56 +00:00
rumble df731a5f0f Use global static prom vectors within the module instead of
creating them on the fly. Simplify arcemu_ip12_putc() since the
printf vector behaves as expected.
2004-06-08 22:51:21 +00:00
kleink b7ca652249 Add MPC601 support. 2004-06-08 19:29:53 +00:00
kleink 1e669a49c6 Repair a comment misplaced in rev. 1.43. 2004-06-08 19:07:00 +00:00
kochi d29c4e62c3 Fix typo:
ACPI = Advanced *Configuration* and Power Interface
2004-06-08 12:46:11 +00:00
nathanw 23ac7ba060 pxa2x0_bs_unmap(): KVA allocated in pxa2x0_bs_map() needs to be freed. 2004-06-07 19:45:22 +00:00
kochi 96f8bc3637 Add ACPICA_PEDANTIC/ACPI_DISABLE_ON_POWEROFF options; follow the i386
changes.
2004-06-07 15:36:22 +00:00
kochi 7e55bddc3a Add ACPI_DISABLE_ON_POWEROFF option. 2004-06-07 15:33:52 +00:00
kleink d92e6963e4 Add some BAT-style predicate macros. 2004-06-06 21:23:53 +00:00
kleink 7498ed2ff7 Mark cr0 as clobbered in mfrtc(). 2004-06-06 10:45:06 +00:00
christos ff64927ee9 Don't include the rnd device; it makes us too big. 2004-06-06 07:04:27 +00:00
yamt cc5720dc40 unexport following x86 bus_dma internal functions.
_bus_dma_alloc_bouncebuf
        _bus_dma_free_bouncebuf
        _bus_dmamap_load_buffer
2004-06-05 07:31:31 +00:00
yamt 1b31a2b6a0 - introduce a function, i82489_icr_wait, which waits for
LAPIC_DLSTAT_BUSY cleared, and use it where appropriate.
- panic if lapic's busy too long and DIAGNOSTIC.
2004-06-05 07:15:57 +00:00
uch c58b450e06 fix hd64461video_get_clut. 2004-06-04 13:23:34 +00:00
sekiya f7212a9a5d Use the SPLAY_* macros. Copied from the i386 pmap, okay'ed by fvdl@ 2004-06-04 07:42:33 +00:00
thorpej e33c2bb5d5 Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
2004-06-04 04:45:49 +00:00
petrov 9b8bcb0518 Add DIAGNOSTIC in iommu_dvmamap_load if pmap_extract fails. 2004-06-03 06:17:05 +00:00
martin 1cb74de1d2 From Peter Eisch: do not try to recover msgbuf on E450s, it fails just
like on E250s.
2004-06-02 20:23:35 +00:00
augustss df613458d1 Use SPC-TAB after the word "options". 2004-06-01 16:29:36 +00:00
mhitch 43e1d0c297 Add AmigaDOS tools for the amiga, which end up in the "installation/misc"
directory of the release tree.
2004-06-01 02:25:09 +00:00
matt 3c0ef6aa5f Fix softnet intr handling (to be like the generic ppc softintr). 2004-06-01 00:49:41 +00:00
tsutsui f2e7679255 Fix usage of NULL, '\0' and "" again. 2004-05-31 14:04:59 +00:00
sekiya 4ae860025d Make pmap_collect() a NOP -- due to the way we deal with the four-level pte,
invalidating the entire address space results in multi-minute system hangs.

Okay'ed by fvdl@
2004-05-31 13:42:27 +00:00
tsutsui 2f3bdc714c Handle CAPSLOCK correctly. Fixes port-hp300/4689. 2004-05-31 13:40:04 +00:00
schmonz 5f5633de40 Support userconf(4) ("boot -c"). Reviewed by Bill Studenmund. 2004-05-31 03:22:45 +00:00
christos 5369712097 PR/19925: David Ferlier: Add scrolling support to wscons 2004-05-28 21:44:51 +00:00
tsarna f53a32e6c9 Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern. 2004-05-28 17:52:06 +00:00
christos bf3905ed0c Add ptm device. 2004-05-27 02:57:24 +00:00
abs eb8a427e28 Adjust the reserved heap space based on memory size. This avoids running out
of heap on machines with large amounts of memory.  Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines.  Updated version to 3.40.
2004-05-26 23:13:03 +00:00
thorpej 2ecdd552dc Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers.  Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
2004-05-25 20:42:40 +00:00
tsarna f7fae574cc add uep driver 2004-05-24 23:50:11 +00:00
yamt 9080a4b746 instead of blindly set IF in MCOUNT_EXIT,
save eflags in MCOUNT_ENTER and restore it.
2004-05-24 14:01:10 +00:00
martin b1998403bc Back to SIZEOF_HEADERS. 2004-05-24 07:20:26 +00:00
kleink 8b9e7c1154 Change {u,}int_fast{8,16}_t to 32-bit types.
Note: While this is technically an ABI change I believe it is a
change that we can afford at this time (and to be pulled up to
2.0, which will be the first release for amd64).  The types are
not widely used yet, and a survey of pkgsrc has not shown uses
that would be adversely affected by it.
2004-05-23 22:17:10 +00:00
christos 0b36703edc put back SIZEOF_HEADERS now that bfd is fixed; you will need to recompile
libbfd...
2004-05-23 18:09:44 +00:00
martin ebfe3ad1ce Instead of SIZEOF_HEADERS (which ld gets wrong) use 1024 for now. 2004-05-23 16:10:25 +00:00
kochi 39dacd3455 prevent panic for machines without any ACPI MADT table. 2004-05-23 05:57:57 +00:00
martin aacd0f5586 Use 1024 instead of SIZEOF_HEADERS for now. 2004-05-23 01:15:05 +00:00
christos d70a6522f9 Use 1024 instead of SIZEOF_HEADERS, so that we can include a note section. 2004-05-22 22:06:54 +00:00
kleink a8f9b18e52 Bring back {u,}int_fast8_t back to 8 bits, as I had misunderstood Charles. 2004-05-22 14:16:59 +00:00
grant e26fd850ec add `scsibus* at umass?' so usb mass storage devices which attach to
sd@scsibus can be used out of the box.

whitespace tweak for wd* at umass?
2004-05-22 03:16:26 +00:00
kleink dd80e25e65 Change {u,}int_fast{8,16}_t to 32-bit types, as the previous minimum-
width implementation was a rather poor choice.  Per discussion with
Charles Hannum.

Note: While this is technically an ABI change I believe it is a
change that we can afford at this time (and to be pulled up to
2.0).  The types are not widely used yet, and a survey of pkgsrc
has not shown uses that would be adversely affected by it.
2004-05-21 22:52:06 +00:00
heas a60b59cc89 Map the ffb's DAC register space and add support for video "blanking"
(aka WSDISPLAYIO_{S,G}VIDEO).
2004-05-21 21:45:04 +00:00
heas de28b23591 ffb wsdisplay type should be sunffb/SUNFFB 2004-05-21 19:21:31 +00:00
kochi 79431a3d74 Fix panic / bogus PCI bus detection. 2004-05-21 16:22:05 +00:00
kochi 1b9c589055 Clean up variable usage. 2004-05-21 16:20:36 +00:00
kochi cf6dbb07cc Make sure we don't use the same bus number for PCI and ISA. 2004-05-21 16:19:25 +00:00
kochi efd20e5cdf Back out bogus node check of revision 1.22.
This check is not necessary.
2004-05-21 16:17:48 +00:00
kochi 9d0aaa11b9 add some comments, make local variables/functions static and some style fix. 2004-05-21 16:15:03 +00:00
he cdb8aaf716 Bump ramdisk size from 800k to 900k so the contents fit again. 2004-05-21 15:25:18 +00:00
he 8e58484dd6 Adapt to the statfs -> statvfs changes. 2004-05-21 08:35:00 +00:00
atatat a1296cdfe4 Whitespace nits 2004-05-21 03:30:40 +00:00
martin 479d5e8fca We need sigdebug and sigpid not only for COMPAT_16, but also SVR4 and
SunOS, so move it to a more generic place and fix the ifdefs.
Fixes PR port-sparc64/25650.
2004-05-20 11:36:43 +00:00
heas d07b682ed3 add DAC command/value register offsets 2004-05-20 01:50:43 +00:00
petrov 45a1b56bc0 De-_P()fy, remove not MULTIPROCESSOR defines for sparc64_ipi_xxx. 2004-05-20 00:56:12 +00:00
petrov 1f82a4c90e ifdef protection for sparc64_ipi_ function calls. 2004-05-20 00:52:58 +00:00
abs 3c2fbd8521 Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c) and use instead of
bubblesort in acorn32 bootloader. Reduces time to sort memory on A710 equipped
RiscPC from over twenty seconds to effectively instantaneous.
Update boot version to 3.30
2004-05-19 23:37:41 +00:00
he 7ce138ffc9 Hm, let ipfresend also compile; move <machine/intr.h> include
in under the _KERNEL_OPT define.
2004-05-19 23:15:43 +00:00
he 78e8bae64a Since we are using the spl() functions here, also include <machine/intr.h>. 2004-05-19 22:50:09 +00:00
he c9a13e2ac5 Include <machine/kbdmap.h> only outside the kernel, as that file
isn't present in that location in the source tree.
2004-05-19 08:44:20 +00:00
gavan 34762c053a Claim maximum available memory during boot32 startup. This removes
the need to explicitly set the WIMP slot size before running the bootloader.

Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.

Also remove references to increasing WIMP slot size, as this is now
meaningless.
2004-05-18 23:29:30 +00:00
he 09b074c177 Add some mulitple include protection.
Include kbdmap.h from iteioctl.h so that kdump compiles, otherwise
the size of struct kbdmap as used in various ioctl defines is unknown.
2004-05-18 20:08:51 +00:00
chs 6e6e8ad7fe convert pmap_deactivate() from a macro to an inline function
so that the kernel builds again.
2004-05-18 15:33:11 +00:00
thorpej 896bc924e1 Supply rr_1 and wr_1. 2004-05-17 22:00:47 +00:00
thorpej 984caa9835 Fix missing parenthesis in DIAGNOSTIC message. 2004-05-17 20:47:17 +00:00
mhitch 1f358dcd03 Add missing KERNEL_PROC_UNLOCK() in upcallret(). This should fix PR#22219
and maybe also PR#23731, which appears to be a duplicate of 22219.
2004-05-17 17:43:08 +00:00
joda c80da893ae the EST and TM2 flags in the second cpuid register were swapped
(according AP-485); while here add a few more flags
2004-05-17 15:38:17 +00:00
chs df674b2ca1 for instruction TLB miss traps, process the fault with VM_PROT_EXECUTE
instead of VM_PROT_READ (to support non-executable mappings).
2004-05-16 17:07:29 +00:00
chs f6d0516ba0 in pmap_protect(), don't just return if the desired permissions include write.
we could be removing execute permission.
2004-05-16 17:07:07 +00:00
wiz 1249084227 "panicking" needs a k. 2004-05-16 15:44:10 +00:00
yamt 8956861179 curcpu: fix a typo. (cpuinfo -> cpu_info)
no functional difference.
2004-05-16 12:32:53 +00:00
he b6e471013e Expand the ramdisk image size from 3m to 3148k so that the contents
fits again.
2004-05-14 17:00:21 +00:00
cl c489489b14 - increase number of receive buffers
- handle case where last receive buffer is used
2004-05-14 14:23:35 +00:00
cl 4dd8e2b2cf use relative links: using $S fails if $S is relative to another dir
than the one where it's used
2004-05-14 14:07:46 +00:00
he bf3ab88a22 Use lower optimization level (-O0) for miscfs/genfs/genfs_vnops.c
in order to avoid an internal compiler error with gcc 3.3.3 nb2.
2004-05-14 08:58:32 +00:00
yamt 66b2ec5ff7 fix a compile error in the case DDB && !GPROF.
the problem pointed by Jaka Jejcic on current-users@ and
by several others privately.
2004-05-13 20:30:39 +00:00
he d05f876265 Avoid lint failure in setjmp.h; lint doesn't handle __attribute__
modified declarations.
2004-05-13 19:54:25 +00:00
pooka 40559f7fcc 10+ entries in the kernel sources can't be wrong ... no, wait, they can:
it really is "panicking" instead of "panicing", so revert rev 1.211

thanks to Klaus for holding the spelling bee
2004-05-13 16:34:22 +00:00
pooka e2323790a2 typo in comment: panicking -> panicing 2004-05-13 15:20:18 +00:00
yamt d94ff45112 call mcount in Xspllower. 2004-05-13 12:27:38 +00:00
yamt ed15986b95 pmap_load: assert that being able to take ipis. 2004-05-13 12:24:05 +00:00
yamt a87499d4ea witch_return: call Xspllower only when there're pending interrupts. 2004-05-13 12:15:01 +00:00