Commit Graph

38980 Commits

Author SHA1 Message Date
uwe 7d07bda558 Add major for audio. 2004-07-04 22:56:14 +00:00
uwe 7393885072 Fix the comment for KGDB - it is a remote debugger. 2004-07-04 22:02:04 +00:00
manu 67cf1bc043 MacOS X.3 introduces a new sigreturn for PowerPC, with a usercontext
versionning argument. For now we only implement the X.2 flavor.
2004-07-04 21:03:55 +00:00
christos 7c328d9858 add a skeleton that defines the symbols we need; no implementation 2004-07-04 15:24:30 +00:00
christos a3eca3bd01 Add USRSTACK definitions 2004-07-04 15:22:29 +00:00
christos 0122ef6740 add darwin_commpage_machdep.S [does nothing for now, and the name is too long] 2004-07-04 15:22:03 +00:00
chris d954e32a8f Update to match pseudo devices and other options in the GENERIC kernel. 2004-07-04 13:35:08 +00:00
tron 16e9e90a52 Add re(4). There are laptops with an onboard Realtek 8169 Gigabit LAN. 2004-07-04 13:16:56 +00:00
chris 2d3a6b46c9 Use a define, rather than hard coded number, for the interrupt to claim.
Make use of the ability to parse the cs's eeprom for values, rather than
ignoring the eeprom.
2004-07-04 13:12:58 +00:00
chris 91825be689 Add more defines for the available IRQ's on a 7500. 2004-07-04 13:11:43 +00:00
pk ce03cf29a9 cpu_simple_lock: on spin out, check whether we've already panicked. If so,
just take the lock on the assumption that in panic mode, we run on a single
CPU anyway.
2004-07-04 09:54:20 +00:00
pk edd81fa220 Fix typo in CHECK_SP_REDZONE() which has been there since the beginning of time. 2004-07-04 09:11:33 +00:00
mycroft 2b9d3e39a0 Fix confusion between index numbers in one table and node numbers in another
table, that was causing PNPBIOS to fail on some machines.  Should fix PR 18610.
2004-07-04 06:18:26 +00:00
mycroft 58a7151020 Update Serverworks chip names, and add a few more. 2004-07-04 05:53:55 +00:00
mycroft 88bac700e0 Be more careful about what ServerWorks devices we attempt to map PCI buses
behind.
This should address PR 21458 and PR 25670.
2004-07-04 04:55:18 +00:00
mycroft cd5dfd5c5c Rebuild. This primarily updates NGDT. 2004-07-04 03:35:01 +00:00
mycroft 15eb49718a s/PAGE_SIZE/NBPG/ to make this compile again. 2004-07-04 03:21:53 +00:00
mycroft 66760f9d8c Change MAXDRV to 0x8f, to fix El Torito booting problems on some machines.
See PR 22647.
2004-07-04 00:38:51 +00:00
mycroft a8f51b14b9 b -> B 2004-07-04 00:21:55 +00:00
mycroft 5f1cbe539c If apm_set_powstate() fails, make sure we run apm_resume() so that run any
powerhooks we have.  From PR 13671 (but applied to both standby and suspend).
2004-07-03 22:29:13 +00:00
manu 7fef082024 Move all the MD bits of commpage to a new file.
Map the comm page as RW in kernel (we want to modify it but not to execute it),
and RX in userland (no need to modify it but we want to execute it
2004-07-03 22:17:18 +00:00
mycroft 6343f6f6ee Per PR 8120, put back the reloading of the IDT in cpu_reset(). (Presumably
this overrides some descriptor caching in the CPU.)
2004-07-03 21:02:09 +00:00
yamt eb3fe82f73 i8254_initclocks: fix an integer overflow problem in rev.1.83.
a patch provided by FUKAUMI Naoki.  PR/26152.
2004-07-03 18:24:37 +00:00
manu e317692907 When the keyboard type is unknwon, don't attach both ADB and USB, as the
kernel will panic if an USB keyboard is plugged later.

Of course there will be a problem on a desktop machine with an USB attached
keyboard, but that cannot be fixed without access to such a machine..
2004-07-03 16:24:57 +00:00
uch c5f0120f16 hpcmips independent hpcapm part are moved to sys/dev/hpc/
hpcmips dependend part is separated to sys/arch/hpcmips/hpcapm_machdep.c
2004-07-03 12:54:34 +00:00
uch bb2b8b1099 jornada 6x0 power mannagement support.
[on/off] button power off LCD and CPU sleeps.
2004-07-03 12:49:21 +00:00
simonb 7f2fc41e2f In cpu_{set,get}context(), copy the FP registers themselves and the FP
CSR separately (and now from the correctly sized __fpregset_t).  The
FP CSR is copied separately to avoid endianness/alignment issues.

Part of fix for PR port-mips/25942.  Thanks to Christos Zoulas and
Klaus Klein for help with debugging this.
2004-07-03 05:08:34 +00:00
simonb 7b72fd9dc6 Drop the "catchall" __fpregset_t, and use either a 32-bit or 64-bit
structure depending on the current ABI.

Part of fix for PR port-mips/25942.  Thanks to Christos Zoulas and
Klaus Klein for help with debugging this.
2004-07-03 05:06:37 +00:00
manu 26200ee754 In MacOS X.3, the kernel maps tw opages of memory in every user process.
This areas is called the comm pages. It is used to provide fast access to
several data and functions.

The comm pages are mapped starting at 0xffff800 (address chosed so that
absolute branch can be used, so it can be accessed even when dynamic linking
is not ready). NetBSD has the user stack here, so we need to provide a
Darwin-specific stack setup routine which sets the top of the stack at
0xbfff0000.

This implementation is not complete but it does enough to get MacOS X.3
starting again (static binaries run, dynamic binaries still have an issue).
in the comm pages functions, we only implement bcopy, pthread_self and
memcpy.

TODO:
- clean up the powerpc specific code from MD parts
- for now we map only one page to avoid a crash, we want two pages.
- write all the comm functions.
2004-07-03 00:14:30 +00:00
mycroft 0e13cf8bb2 Actually initialize the direct-mapped DMA window, which is clearly not set up
by the firmware on my Multia.  Now PCI devices like the builtin tlp actually
work.
2004-07-02 19:54:22 +00:00
uch db7514c3d2 enable X-window configuration default.
add com* at pcmcia and ppp configuration.
move debug option to DEBUG.
2004-07-02 18:05:23 +00:00
drochner 12abfacf0b just include <sys/joystick.h> 2004-07-02 17:15:10 +00:00
drochner 2706519f5d add a <machine/joystick.h> which just includes the new common one 2004-07-02 17:02:24 +00:00
mycroft f98a477f22 Ahem. Parts of this are *clearly* derived from the old i386/isa/intr.c, so
put back the copyright from there.
2004-07-02 16:05:57 +00:00
simonb f41923b7dd Fix a precedence problem setting uc_flags.
Part of fix for PR port-mips/25942.  From Christos Zoulas.
2004-07-02 12:32:16 +00:00
petrov f109401e45 _bus_dmamap_load_mbuf: check and process pmap_extract failure. 2004-07-02 07:39:07 +00:00
uch 8753d093dd add KLOADER 2004-07-02 03:58:58 +00:00
petrov 5a324adab2 Remove unused var, correct formats. 2004-07-02 02:50:25 +00:00
petrov a021a66c36 Added UPA_MID definitions and macros(similar to FreeBSD).
Added membar_store, membar_load macros.
No need to set %asi _after_ alternate space use in corresponding functions.
Enable(unifdef) casa functions for __arch64__.
2004-07-01 22:59:16 +00:00
kleink d93fc4c14e Tidy up the namespace: lint -> __lint__. 2004-07-01 22:52:34 +00:00
mycroft 3b589a6ca4 Fix a really old ("since day one") bug: send specific EOIs to the PIC, not
non-specific EOIs.  This really shouldn't matter so much, but I'm guessing
there's a strange interaction with the PALcode (possibly related to the fact
that the PALcode itself may be sending an EOI itself on some systems).

I have tested this on a Multia, and it appears to work just fine without the
INITIALLY_{ENABLED,LEVEL_TRIGGERED}() stuff now, so I'm also removing that.
2004-07-01 18:46:49 +00:00
uch 11e21240cc fix iochip configuration.
reported by Alexander Frolkin <avf@ox.compsoc.net>
2004-07-01 17:45:12 +00:00
uch ef8a3ef38e <space>,<tab> clean up. 2004-07-01 17:43:52 +00:00
heas 66307fc36e typo in define name, littie -> little 2004-07-01 14:57:46 +00:00
heas ae5ea826a2 The DAC registers do not need to be mapped linearly and thus should not. 2004-07-01 14:54:13 +00:00
yamt 38cdafcad1 {i8254,lapic}_initclocks: try to be more precise using fixtick. 2004-07-01 13:00:39 +00:00
yamt 3998262d5e defparam HZ. 2004-07-01 12:44:26 +00:00
pk 7f51f38abc Avoid unnecessary stores of discarded values. 2004-07-01 10:23:41 +00:00
pk a61069b899 Revision 1.27 of clock.c applies to the Intersil interrupt, not sun4m timers. 2004-07-01 09:59:00 +00:00
petrov ef4d3a19c3 iommu_dvma_load_raw: reserve extra dvma page. Fixes PR #13654. 2004-07-01 06:40:36 +00:00
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