Commit Graph

36599 Commits

Author SHA1 Message Date
tsutsui
14b42ecf3b Use common mips generic software interrupt routines. 2003-09-12 17:55:40 +00:00
christos
51d8c27c8d pick up the right sigreturn symbol. we could have #define __HAVE_SIGINFO
instead too.
2003-09-12 16:51:04 +00:00
tsutsui
f9325594bb Remove a redundant function declaration. 2003-09-12 15:29:48 +00:00
chs
c5e2454205 handle pmap_procwr() on kernel procs (MIPS1).
needed for new signal trampoline stuff.
2003-09-12 15:29:16 +00:00
tsutsui
3fad926516 Protect against multiple inclusion. 2003-09-12 15:03:24 +00:00
tsutsui
9dae7193b1 TAB/space cleanup. 2003-09-12 14:59:11 +00:00
christos
75c419ccc0 include opt_compat_netbsd.h, sort includes. Thanks yamt. 2003-09-12 12:39:59 +00:00
briggs
06ea4a681d Don't assume that we are the PCI host. Actually check, and make sure that
we set things up so that we can run either as a PCI host or as a PCI slave
(working within the PCI BARs that the system BIOS has configured for us).
2003-09-12 04:39:59 +00:00
christos
9889f06536 make sigcontext visible all the time instead of including opt_*.h from a
large number of files.
2003-09-12 01:13:35 +00:00
briggs
38da12464f We need a little more symtab space. 2003-09-11 22:52:38 +00:00
christos
2bf3634159 fix typo. 2003-09-11 20:48:35 +00:00
christos
7340db7385 Bring back sigcontext to userland by popular demand. 2003-09-11 20:22:30 +00:00
martin
346b195550 Backout previous, now that <sys/syscall.h> is fixed it's SYS___sigreturn14
again (until we convert to siginfo).
2003-09-11 19:36:29 +00:00
christos
99ee91793f make vm86 use __gregset_t 2003-09-11 19:17:07 +00:00
christos
a6540cf740 XXX: vm86 for sigcontext comment is gone. 2003-09-11 19:16:05 +00:00
christos
ab63d91442 old vm86 call with COMPAT_16 code. 2003-09-11 19:15:12 +00:00
scw
973e9cff89 Add definitions required for new in_cksum. 2003-09-11 18:58:44 +00:00
scw
877b3cbe5e Hand-optimised in_cksum/in4_cksum for ARM and XSCALE.
Contributed by Wasabi Systems, with input from Chris Gilbert,
Richard Earnshaw and David Laight.
2003-09-11 18:54:31 +00:00
kleink
d440784b30 __{BEGIN,END}_DECLS-wrap prototypes. 2003-09-11 09:40:11 +00:00
briggs
ab0f909e6e s/SYS___sigreturn14/SYS_compat_16___sigreturn14/ 2003-09-11 03:57:29 +00:00
christos
2300d30c79 delete debug printf's. 2003-09-10 21:40:02 +00:00
christos
7b176f233f sort the opt_ includes. 2003-09-10 21:38:40 +00:00
christos
5dfabd4458 Add compat_16_machdep.c 2003-09-10 19:49:47 +00:00
christos
4d5acf4941 expose sendsig_sigcontext for compat_16 2003-09-10 19:49:22 +00:00
christos
6f6f525ca6 move compat_16 stuff into a separate file. 2003-09-10 19:48:48 +00:00
grant
dc97144230 add gem and brgphy so we have ethernet on the PowerBook G4 DVI. 2003-09-10 18:06:26 +00:00
christos
f7f3566b1e #ifdef struct sigframe_sigcontext and struct sigcontext, so that only code
that really needs them, get them.
XXX1: We need to fix the vm86 api.
XXX2: We need to fix the ibcs2 signal delivery mechanism.
2003-09-10 16:48:16 +00:00
christos
0b16bf9a36 make obsolete trampoline code COMPAT_16. Unfortunately sigreturn14 is used
by IBCS2; grr.
2003-09-10 16:46:59 +00:00
christos
d0b2ede633 need opt_ibcs2.h 2003-09-10 16:46:15 +00:00
drochner
8bedb90edc in cpu_setmcontext(), check where we go, not where we are coming from,
and line-terminate a diagnostic message which was caused by that bug
2003-09-10 11:39:09 +00:00
martin
313b12e0cc Remove rnd here and add a prominent note at the top of the file -
this config includes GENERIC32, only additional stuff goes in here.
2003-09-10 07:14:25 +00:00
thorpej
62a064e24e Bump initial kernel PTs to 4. 2003-09-09 20:42:38 +00:00
itojun
919da6bf44 have COMPAT_16 2003-09-09 07:14:01 +00:00
tron
ee3ff63574 Remove obsolete file. 2003-09-09 06:21:30 +00:00
kleink
8d633905ac Bring /* LINTSTUBs */ closer to reality. 2003-09-08 22:37:01 +00:00
petrov
536f8085b8 Support multisegment dmamap sync, adopted from OpenBSD. 2003-09-08 17:23:15 +00:00
scw
6e67b64a47 Add support for non-executable mappings. 2003-09-08 08:01:52 +00:00
petrov
33d0a022bc OF_mapintr: swizzle interrupt for PCI bridges,
don't process OBP interrupts, return error if interrupt is not mapped.
2003-09-08 03:33:52 +00:00
kleink
a4909cd01e g/c byte-reversing bus_space_set_region_1() entries. 2003-09-07 22:12:05 +00:00
uwe
9f598eb5ba DOH, sparc was not doing p_userret processing in userret()!
Adding it helps SA a great deal.   E.g. ogg123 actually works now.
2003-09-07 20:41:05 +00:00
ragge
bfd142bfad Remove next_instr_address(), it's a macro. 2003-09-07 13:33:38 +00:00
tron
8cfe1dc600 Add "COMPAT_16" option. 2003-09-07 09:33:56 +00:00
manu
d13828a7dd forgotten commit for KERN_PROCARGS sysctl in COMPAT_DARWIN 2003-09-07 07:50:31 +00:00
tsutsui
8a3f779eab Fix typo. 2003-09-07 05:49:57 +00:00
isaki
bd7195dece Remove an advertising clause. 2003-09-07 04:24:05 +00:00
uwe
edee4547b6 Define 'nil' as long and remove the cast in the *only* place it's used.
Makes gcc3 happy as well.
2003-09-07 00:52:01 +00:00
uwe
f8a341efaa Drop bogus ## to make gcc3 happy. 2003-09-07 00:30:40 +00:00
christos
d5f61bb017 SA_SIGINFO changes 2003-09-06 23:15:35 +00:00
christos
66a72d2998 Add COMPAT_16 2003-09-06 22:39:23 +00:00
christos
1dc335c017 SA_SIGINFO changes. 2003-09-06 22:03:09 +00:00
kleink
1b91dce6c3 Rearrange bus_space initialization slightly, taking advantage of being
able to pass a bus_space with an extent already assigned to
bus_space_init().  This eliminates creating the extents twice, and
makes it a bit easier to read.
2003-09-06 21:07:00 +00:00
fvdl
5a759ef06c Move the bulk of pci_intr_string into a seperate intr_string function. Use
that new function to print the pciide compat interrupt in pciide_machdep.c.
Share pciide_machdep.c between amd64 and i386.
2003-09-06 17:44:36 +00:00
fvdl
40b81ea5a1 If possible, put the device name of the APIC used into the interrupt string,
not "apic N". This makes it easier to match vmstat output with dmesg output.
2003-09-06 14:55:50 +00:00
fvdl
631d339e09 When establishing the ACPI SCI, make sure it's always active low (as well
as level-triggered). Do this by changing the MP config entry that was
set up for the interrupt. Do not change anything if there was an ACPI
interrupt source override, assume that this contains the correct
information already.
2003-09-06 14:38:41 +00:00
rearnsha
5d78bf50ac ANSIfy. 2003-09-06 13:34:29 +00:00
rearnsha
81594136ec irqhandler.h and related baggage now obsolete. 2003-09-06 13:01:29 +00:00
rearnsha
3a05158011 Remove include of ifpga/irqhandler.h. 2003-09-06 12:58:48 +00:00
rearnsha
9066202e72 Delete GENASSYM_EXTRAS. 2003-09-06 12:57:22 +00:00
rearnsha
b548db6846 Obsolete. 2003-09-06 12:36:29 +00:00
rearnsha
8395e3535e config option is now CPU_ARM10. 2003-09-06 11:41:11 +00:00
rearnsha
256da36a1c Switch to using generic soft interrupts. 2003-09-06 11:31:20 +00:00
rearnsha
fec013d595 Fix incorrect definition of IFPGA_SC_LBFCODE_BEN1 and missing
definition of IFPGA_SC_LBFCODE_BEN0.
Add definitions for unused interrupt bits and a suitable mask (preparation
for switch to generic soft-ints code).
2003-09-06 11:27:01 +00:00
rearnsha
333d22f36e Fix handling large values of delay when the timer might wrap. 2003-09-06 11:21:44 +00:00
rearnsha
7c9aacc774 Add bouncing support 2003-09-06 11:12:53 +00:00
rearnsha
a25a2641d9 General cleanups of the bootstrap code 2003-09-06 10:57:12 +00:00
rearnsha
b867034038 When an Integrator board has less than 256M of SDRAM fitted, the
memory that is "obscured" by the SSRAM is visible at a wrapped address.
So we can use the full amount of SDRAM in almost all cases.
2003-09-06 10:28:26 +00:00
rearnsha
15f5c8f7db Remove a verbose-boot message that kills the bootstrap (since the
console port mapping has just been moved).
2003-09-06 10:21:19 +00:00
rearnsha
0663dd6d22 The third argument to pmap_map_chunk is the pa not the va. 2003-09-06 10:18:07 +00:00
rearnsha
20b73e2b48 Add a flags field to _PhysMem structure so that we can describe
attributes of memory regions (BOOT_DRAM_CAN_DMA, BOOT_DRAM_PREFER).
Rearrange order of BootConfig members so that the describing how many
dram regions we have preceeds the descriptions of each region.
2003-09-06 10:08:13 +00:00
rearnsha
d35277ea35 Default all builds to not have debug information. Significantly
reduces disk space needed for a make release, especially if using
dwarf2 debug.
2003-09-06 10:00:51 +00:00
rearnsha
b805fdb7fa Add build-system support for ARM10. 2003-09-06 09:48:47 +00:00
rearnsha
46af0c9f17 Make sure _ARM32_BUS_DMA_PRIVATE is defined before we pull in any
include files to avoid problems with the rats nest of dependencies.
2003-09-06 09:46:37 +00:00
rearnsha
da86d47fb0 Support for initializing ARM10 processors in write-through mode. 2003-09-06 09:44:10 +00:00
rearnsha
ec2b5e2dfd Support for ARM10E class devices. 2003-09-06 09:42:12 +00:00
rearnsha
1eba58255a Support for ARM10. Extract some additional information about the
dcache so that we can have cache cleaning code that works for any
permitted arm10 cache architecture.
2003-09-06 09:31:37 +00:00
rearnsha
bb00ee6bce Add a function to read the processor cache configuation register. 2003-09-06 09:14:52 +00:00
rearnsha
637a44c215 Processor-specific operations for ARM10 class devices. 2003-09-06 09:12:29 +00:00
rearnsha
d4e1e335e8 Add support for ARM10 class processors. 2003-09-06 09:10:46 +00:00
rearnsha
a515ec698a Add processor-specific declarations for ARM10 class processors. 2003-09-06 09:08:35 +00:00
rearnsha
446ca3f32d Fix declarations of primary cache variables, so that they are
declarations, not definitions.
2003-09-06 09:04:52 +00:00
rearnsha
cfcc3a8ad4 Add support for ARM10 class devices. 2003-09-06 08:55:42 +00:00
rearnsha
e1f8618cbd Add arm1020E cpu id 2003-09-06 08:43:02 +00:00
itojun
fc918f8713 add rnd(4) device to installation media.
necessary for many purposes, including password seeding, tcp sequence number,
and more.  see tech-security
2003-09-06 03:25:23 +00:00
dsl
fe89b1db32 Add memcmp, memcpy and memset
Fix strncmp(x, y, 0)
Use unsigned compares for strcmp and memcmp (and bcmp).
Compiles but untested
AFAICT http://h71000.www7.hp.com/doc/72final/4515/4515pro_025.html#4515ch9_146
cmpc3/5 set %r4 and %r5 to zero, It doesn't look as though the procedure
call is set to preserve these, and I doubt that gcc is treating them as
scratch registers - does our vax pcs actually have %r2 and %r3 as scratch regs?
2003-09-04 10:40:44 +00:00
matt
cec9cb32df Move CLKF_BASEPRI to machine specific <intr.h> file since it depends on
the encoding of the spl for the port.
2003-09-03 21:33:31 +00:00
ragge
ffaea276d3 Add a few more prototypes. 2003-09-03 19:35:26 +00:00
ragge
a90264a9b5 Add alloca() prototype. XXX should be somewhere else. 2003-09-03 19:35:02 +00:00
simonb
05c33c1c05 Need to set BUS_DMA_COHERENT to BUS_DMA_NOCACHE on IBM ppc4xx CPUs.
The "emac" interface now works properly again on my Walnut.  Much
thanks to Steve Woodford for tracking this down.
2003-09-03 13:30:05 +00:00
mycroft
9b3ff19873 Whoops, reenable some stuff. 2003-09-03 03:19:04 +00:00
mycroft
7929022703 Add gzboot support for SMDK2410. 2003-09-03 03:18:30 +00:00
mycroft
56cdfe0eab GC a bogus variable that was causing link failures with PCMCIA. 2003-09-03 03:17:22 +00:00
mycroft
e5168f409e Use generic versions of rr_1, wr_1, sr_1 -- some PCMCIA cards use these. 2003-09-03 03:15:02 +00:00
mycroft
f13bd83ab3 Minor tweak for some macros elsewhere. 2003-09-03 03:12:28 +00:00
mycroft
1e2b27307d Add some register definitions. 2003-09-03 03:11:50 +00:00
mycroft
b715eaff3c Recognize some TI processors -- not that you'd want to use them. 2003-09-03 02:07:07 +00:00
mycroft
a93d49837e Don't clear PCIC_INTR_ENABLE here, either -- not appropriate. 2003-09-02 22:48:30 +00:00
fvdl
ce2fedd6fb Compile in the !MPACPI && NIOAPIC case. 2003-09-02 20:10:30 +00:00
fvdl
cd1ddca4f8 Use MPBIOS_SCANPCI by default. 2003-09-01 00:35:44 +00:00
fvdl
e8769fc0a0 Update a few types and formats. 2003-08-31 23:24:04 +00:00
fvdl
60ae17c7ae Fix signed/unsigned warnings. 2003-08-31 22:40:13 +00:00
chs
ea3277f683 add a defflag for USELEDS. 2003-08-31 01:55:27 +00:00
chs
e46cb5bfce add some placeholders so we can at least build. 2003-08-31 01:28:58 +00:00
chs
b5ed452510 just include the hppa version. 2003-08-31 01:28:22 +00:00
chs
e9303b36fc disable some things that don't build yet. 2003-08-31 01:27:18 +00:00
chs
a2ffedf11f add a hack for the link set stuff. 2003-08-31 01:27:00 +00:00
chs
cc0b88792e update for LWPs, and some lite cleanup. 2003-08-31 01:26:31 +00:00
chs
c023b4180f add "makeoptions MACHINE_ARCH=..." in std.* for mips ports
where it is constant (to ease cross-building).
2003-08-30 22:44:38 +00:00
fvdl
06298770b0 Add another -DBOOT_ELF64 for amd64. 2003-08-30 20:38:58 +00:00
fvdl
2d5fec0580 Remove a lot of stuff, making it closer to the i386 INSTALL. 2003-08-30 20:09:04 +00:00
fvdl
ee4b42342e Add -DBOOT_ELF64 for amd64. 2003-08-30 18:25:07 +00:00
fvdl
8ea680bb14 Add -m elf_i386 (for amd64) to LD. 2003-08-30 15:24:41 +00:00
fvdl
e8b1f4f135 Add -m elf_i386 to ${LD}, not ${LDFLAGS}, since bsd.lib.mk doesn't
include ${LDFLAGS} when using ld -x on an object file.

XXX what's the point of these ld -x rules anyway?
2003-08-30 15:15:01 +00:00
dsl
677dd78600 Placate people who insist on using non-standard disk layouts by adding
a valid MBR entry for partition 3 (covering the first 15 sectors) into the
end of the partition boot code.
2003-08-30 13:33:55 +00:00
nakayama
68369c646a Wrap diag message with #ifdef DIAGNOSTIC. 2003-08-30 04:07:56 +00:00
dsl
b98ddfffb3 libsa/bcmp.c now defines both bcmp and memcmp 2003-08-29 19:50:26 +00:00
bsh
43f6db1ea7 support CS8900A ethernet on SMDK2410.
XXX: SMDK2410 has no EEPROM connected to CS8900A. Currently the only
     way to set MAC address is give it via kernel config option.
2003-08-29 13:54:03 +00:00
ragge
23faa91baa Understand qt as root device. 2003-08-29 13:52:45 +00:00
ragge
c55ba2df08 Add the qt driver to GENERIC. 2003-08-29 13:51:47 +00:00
bsh
b0c5091bcb tweak memory controller on startup for CS8900A at CS3 and CL-PD7610 at
CS2.
2003-08-29 13:46:38 +00:00
dsl
154703d1f9 Use memset (instead of bzero) to clear bss.
bootxx_lfs now fits in the available space.
2003-08-29 12:58:39 +00:00
bsh
de45322924 support EXTINT[4:23] as interrupt sources. They are cascaded to
IRQ4 (EXTINT[4:7]) and 5 (EXTINT[8:23]). ssextio driver handles these interrupts.
2003-08-29 12:57:50 +00:00
dsl
99ace74e7b Create linker map file so it is possible to see which library members
are included and why.
2003-08-29 12:56:59 +00:00
bsh
2a0faa1f10 change CPU clock to 200MHz at kernel startup. 2003-08-29 12:42:13 +00:00
bsh
e979aaa6ea add option SMDK2XX0_CLOCK_CONFIG to change CPU clock at kernel startup. 2003-08-29 12:41:12 +00:00
bsh
23b593ca51 + set vendor name as Samsung.
+ delete debug printf() and use aprint_normal()
2003-08-29 12:38:48 +00:00
nakayama
fd41cea78c Use proper bus number from pci_attach_args instead of (unused) var. 2003-08-29 12:36:44 +00:00
bsh
1f218a14c4 fix a comment. 2003-08-29 12:07:33 +00:00
pk
721f0d1591 Fix DEBUG code in me_alloc(). 2003-08-29 08:26:21 +00:00
tron
aae64118ef Add missing blank line.
Don't treat pointers as boolean values.
2003-08-28 10:58:37 +00:00
isaki
589895ff03 Delete unnecessary RCSID. 2003-08-28 09:47:07 +00:00
matt
31cc6ab700 Move SFRAMELEN to frame.h and use it in vm_machdep.c. In setfunc, setup
callframe linkages correctly.  Restore use of ldptr to locore_subr.S
[pthreads and gdb no longer crash/hang the system]
2003-08-27 20:20:07 +00:00
uwe
a1cbc85a2f Bring _PROF_PROLOGUE back. The breakage was caused by calls to
__udivsi3 being treated specially by gcc.
2003-08-27 19:59:57 +00:00
matt
56f115e896 Switch back to adjusting stack by addi instead of ldptr until I can locate
who's setting up the stack wrong.
2003-08-27 19:45:28 +00:00
mrg
1a086c6b25 introduce an additional switch to enable building GCC3 instead of GCC2:
HAVE_GCC3.  if this is set, we also set USE_TOOLS_TOOLCHAIN=no.  change
the definition of the former to be restricted to whether tools/toolchain
is used or not.
2003-08-27 16:03:17 +00:00
mrg
9e599bdb11 change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function.  this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing.  testing by martin@
2003-08-27 15:59:49 +00:00
itojun
ffb2df7cd0 variable 'sc' needed in MPACPI case (what should we do about NIOAPIC?) 2003-08-27 11:38:54 +00:00
bsh
7726d33fed + fix the definition of timer #4 observation register. This change fixed
delay() bug.

+ match the names of timer registers to those in user's manual.
2003-08-27 03:57:05 +00:00
bsh
13543d215c move some definitions of register block size from s3c24[10]0reg.h
to s3c24x0reg.h when they are same for S3C2410 and 2400, and rename them as
S3C24X0_FOO_SIZE.
2003-08-27 03:46:05 +00:00
uwe
3a942f1015 cc_callout does not belong to struct cons_channel, as it's only used
by sparc for PROM console input channel.  Demote it to kd.c as a
static variable.

While there, use callout_schedule instead of callout_reset to
reschedule the PROM polling callout, and init prom_cons_channel
statically.
2003-08-27 01:37:38 +00:00
uwe
68f362b713 Kill __P(). 2003-08-27 00:23:32 +00:00
jdolecek
98c6c56281 add commented out entries for skc/sk SysKonnect SK9821 driver 2003-08-26 21:12:48 +00:00
tron
57c82d6312 Add support for i865G integrated graphics support to agp(4). Patches
contributed by Michael D. Allen in PR port-i386/22600.
2003-08-26 17:33:22 +00:00
uwe
5c666394c9 Drop fbvar.h from INCS now that it's been cvs rm'ed here. 2003-08-26 11:51:13 +00:00
uwe
5efaa48bea Framebuffer code common to sparc and sparc64 was merged and moved to
dev/sun 3 years ago.  Remove these redundant and out-of-date copies.
All code now uses dev/sun/fbvar.h
2003-08-25 19:24:49 +00:00
uwe
86b9436205 Use dev/sun/fbvar.h instead of machine/fbvar.h (which is just an out
of date copy of the former).

Compile tested with GENERIC32.
Ok by Martin Husemann <martin@netbsd>.
2003-08-25 19:03:41 +00:00
marcus
afc21ff9d1 mulaw/alaw timing bugfix from Izumi Tsutsui. 2003-08-25 18:48:31 +00:00
uwe
bb09aff859 Undo previous as it broke things.
There are some scattered implicit RASTERCONSOLE dependencies,
so there should be a better way.
2003-08-25 17:50:22 +00:00
tron
c8232f0d0f Protect inclusion of "opt_vm86.h" with "#ifdef _KERNEL_OPT" as appropriate. 2003-08-25 13:11:30 +00:00
drochner
8085017e31 fix _UC_MACHINE_SP() for the vm86 case: we have to add the SS offset 2003-08-25 09:20:25 +00:00
he
2dfc91641e Remove duplicate entry for ``pf''. 2003-08-25 09:05:13 +00:00
mrg
0e001a53fa make it "static long nil;" as it's used as &nil in an array wanting long *'s.
makes GCC3 happy.
2003-08-25 04:51:10 +00:00
marcus
9010cdf728 LINEAR and LINEAR_LE need to be interchangeable (fixes 8bit unsigned bug). 2003-08-24 19:52:46 +00:00
marcus
f436d156b4 Added some encodings which were supported but not listed. 2003-08-24 19:44:29 +00:00
chs
14ee4005a1 make sp_tlb_flush() work for profiling kernels:
when we're profiling, the compiler creates a stack frame for us,
so doing a "retl" isn't so good in that case.
2003-08-24 18:10:31 +00:00
chs
2ab420f918 recognize the latest version of the GMAC. 2003-08-24 18:02:00 +00:00
chs
939df36e55 add support for non-executable mappings (where the hardware allows this)
and make the stack and heap non-executable by default.  the changes
fall into two basic catagories:

 - pmap and trap-handler changes.  these are all MD:
   = alpha: we already track per-page execute permission with the (software)
	PG_EXEC bit, so just have the trap handler pay attention to it.
   = i386: use a new GDT segment for %cs for processes that have no
	executable mappings above a certain threshold (currently the
	bottom of the stack).  track per-page execute permission with
	the last unused PTE bit.
   = powerpc/ibm4xx: just use the hardware exec bit.
   = powerpc/oea: we already track per-page exec bits, but the hardware only
	implements non-exec mappings at the segment level.  so track the
	number of executable mappings in each segment and turn on the no-exec
	segment bit iff the count is 0.  adjust the trap handler to deal.
   = sparc (sun4m): fix our use of the hardware protection bits.
	fix the trap handler to recognize text faults.
   = sparc64: split the existing unified TSB into data and instruction TSBs,
	and only load TTEs into the appropriate TSB(s) for the permissions.
	fix the trap handler to check for execute permission.
   = not yet implemented: amd64, hppa, sh5

 - changes in all the emulations that put a signal trampoline on the stack.
   instead, we now put the trampoline into a uvm_aobj and map that into
   the process separately.

originally from openbsd, adapted for netbsd by me.
2003-08-24 17:52:28 +00:00
marcus
7973c3321c Added AICA sound driver contributed by Ryo Shimizu. 2003-08-24 17:33:27 +00:00
uwe
65aeb1d742 #include "opt_rcons.h" 2003-08-24 17:31:59 +00:00
chs
fd825b0f1e avoid taking the kernel lock for MPSAFE syscalls.
add missing unlock in fancy case.
2003-08-24 16:36:10 +00:00
chs
3cf764618d remove bogus code that terminates stack trace too early on OEA. 2003-08-24 16:33:41 +00:00
he
cb53c3ac12 The new ufs.o also needs memset, so add it. 2003-08-24 15:19:46 +00:00
he
d871277d7d Adapt to new ufs.c needing memcmp and memmove. 2003-08-24 15:11:18 +00:00
he
47a6e783ff Adapt to const-ification of the first arg of the open function of fs_ops. 2003-08-24 14:43:29 +00:00
mrg
b5076a98db 64 bit number literals need a "ULL" suffix 2003-08-24 00:41:43 +00:00
he
75219318a9 Add memmove.c, needed by new ufs.c. 2003-08-23 09:10:51 +00:00
dsl
f3404c9f63 Fix same breakage as previous (need memmove for symlink handling in ufs.c)
but use (probably) smaller footprint code from libsa.
2003-08-22 21:14:35 +00:00
dsl
6c51a53afa Add memmove - needed for symlink processing in ufs.c 2003-08-22 21:00:26 +00:00
he
b372f2beaa Adapt to const-ification of first arg of open function in fs_ops. 2003-08-22 08:06:19 +00:00
itojun
8ebd15f8cd add udav* 2003-08-22 07:52:48 +00:00
itojun
96467c96c7 add udav* 2003-08-22 05:14:00 +00:00
itojun
4440262659 create /dev/crypto 2003-08-22 05:06:22 +00:00
petrov
53514f157f Don't set and check absent interrupts on sabre. 2003-08-22 00:46:25 +00:00
petrov
051f6b8a9a Cosmetic: move DEBUG defines. 2003-08-22 00:45:40 +00:00
he
1c6c843936 Adapt to const-ification of first arg of open function in fs_ops. 2003-08-21 23:28:27 +00:00
he
09c6022868 Add memcmp, memmove and bcmp to handle the new ufs.c. 2003-08-21 23:24:36 +00:00
he
b6643fd4d3 Adapt to const-ification of first arg of open function in fs_ops. 2003-08-21 23:15:18 +00:00
he
241ad00001 Adapt to const'ing of the first argument of the open function in fs_ops. 2003-08-21 22:34:48 +00:00
he
395b0c6682 Now that ufsboot / ufs.c uses memmove(), we need to include it here. 2003-08-21 13:12:32 +00:00
pk
84ab67f557 sun4/sun4c DIAGNOSTIC: fix tally of locked down pmegs.
pmap_page_protect: DIAGNOSTIC: show `pg' argument in panic.
pmap_unwire: for now, only used for sun4/sun4c MMUs.
2003-08-21 09:36:28 +00:00
fvdl
c43b35423e Pass pointers to frames from assembly, do not use the 'frame on stack
as argument passed by value' trick, as gcc 3.3.x makes (valid) assumptions
about the stack that will not be true. Costs 2 instructions per trap/syscall
on i386, 4 per interrupt for MP. One instruction per trap/syscall on amd64,
2 per interrupt for MP. I expect gcc 3.3.1 to make up for this by better
optimization (it'd better..)

While here, make amd64 compile again by using subr_mbr_disk.c
2003-08-20 21:48:35 +00:00
matt
a1bba8f344 Relax things so that OFW implementations that don't conform to the OFW PCI
bindings will work.
2003-08-20 14:41:56 +00:00
ragge
e7bd9c8c0f Add Makefile. 2003-08-20 12:29:08 +00:00
ragge
7ea6b903f5 Basic machine-dependent code for pdp10.
Lots of stuff here not yet finished.
2003-08-19 10:54:59 +00:00
ragge
a08c4b9e22 Header files for pdp10. 2003-08-19 10:53:04 +00:00
ragge
7a599d2c3e Simple ebus, Massbus adapter and Massbus disk drivers.
The Massbus disk drivers should be merged with the vax Massbus disk drivers
when the 4.4BSD Massbus code gets free.
2003-08-19 10:51:57 +00:00
ragge
ab103e8af7 Configuration files for pdp10. 2003-08-19 10:49:57 +00:00
eeh
677644de4b Increase the size for the symbol table so we don't overflow anymore. 2003-08-18 23:20:06 +00:00
matt
121c8942a6 Not all PPC ports (e.g. macppc) equate IPL_NONE with 0. 2003-08-18 22:10:33 +00:00
eeh
26ed6e652b Do not rely on an address from one particular firmware version. 2003-08-18 21:34:11 +00:00
eeh
e898bed96b Use the only documented method to get the board data from the firmware. 2003-08-18 21:30:51 +00:00
dsl
fc94061686 Further fallout from making 'path' arg to 'ufs_open' 'constchar *'.
There may be fallout in other builds....
2003-08-18 15:47:41 +00:00
matt
93b63570a0 Properly walk the OF tree to map a PCI node's interrupt property into the
proper settings for the interrupt-controller.
2003-08-18 07:08:11 +00:00
hannken
d56baf4735 Add a placeholder for lpt, char 20.
Requested by: Matt Thomas
2003-08-17 19:15:50 +00:00
chs
e02e4ecc2b lots-o-stuff:
- fix opcodes_base[10] to allow us to find "cmpli".
 - fix "cmp" definition.
 - add various missing SPRs.
 - use the right bits for the "BI" operand.
 - fix operand calculation for "rlwinm" and friends, and display
   the operands in the same order as the manuals do.
 - make the buffer bigger to avoid overflow.
2003-08-17 18:23:17 +00:00
chs
f96eebf908 use the value of the "soft-reset" property (if it exists) to locate
the reset vector (needed on my shiny new G4).  from tsubai.
2003-08-17 18:12:34 +00:00
chs
86bd9c4a5e recognize the product ID used on the latest G4s. 2003-08-17 18:10:09 +00:00
chs
4ba6255f14 add some 745x-specific MSSCR0 bits. 2003-08-17 18:08:17 +00:00
chs
f19809f0fa remove an unused proto. 2003-08-17 18:07:11 +00:00
pk
dd51ebce3f sun4/sun4c MMU: keep `wired' status per page, implemented by defining a bit
in the PTE word that is not used by the hardware. Use it to unlock a `pmeg'
if the wired count in a segment drops to zero.
2003-08-17 18:00:51 +00:00
kochi
35312b5efa make shutdown error messages clearer (idea from Christoph Egger) 2003-08-17 14:23:16 +00:00
kochi
1cc19c34e0 Try shutdown with ACPI only when ACPI is enabled.
Patch from Masanori Kanaoka (with a little modification by me).
2003-08-17 14:15:43 +00:00
hannken
efc0a23c7d Add lpt (for explora) as char 20.
This major number is unused in macppc.
2003-08-17 11:06:46 +00:00
pk
fda797e0a4 sun4/sun4c MMU: keep `wired' status per page, implemented by defining a bit
in the PTE word that is not used by the hardware. Use it to unlock a `pmeg'
if the wired count in a segment drops to zero.
2003-08-16 19:21:21 +00:00
hannken
af69915880 Add bus_dmamap_sync as dma regions are no longer uncached. 2003-08-16 15:40:41 +00:00
hannken
58f4f18578 Fix a typo: sm->sg_npte -> sp->sg_npte 2003-08-14 11:00:02 +00:00
tsutsui
143adabe3d If BUS_DMA_ALLOCNOW is specified with nsegments > 1
in jazz_bus_dmamap_create() disable BUS_DMA_ALLOCNOW for now
rather than return ENOMEM.  Required by some PCI devices (like pciide(4)).
XXX needs re-think how BUS_DMA_ALLOCNOW should be handled.
XXX (we should use another flag for the jazz internal DMAC?)
2003-08-14 09:35:26 +00:00
yamt
e6483a7858 - leave a compiler which register is used for an asm argument.
- use correct asm constraints.
- eliminate usage of dummy variables.
2003-08-13 12:40:31 +00:00
yamt
fd72624430 use correct asm operand indexes.
(previously 'GLptr' was used as mask.)
this long standing bug seems to be uncovered by
my previous change(rev.1.2) on some machines.

PR/22457 from Matthias Scheler, and tested by him.
2003-08-13 12:38:35 +00:00
ragge
923106363e Some of the vax-specific mem*() functions did not check for len > 65535,
and when MAXDSIZ were increased memcpy() length sometimes were larger
than 64k (like in amap_extend()) All functions now checks the length.
This fixes PR#19968.

Disable the inline string functions and use the C versions instead.
2003-08-13 11:30:50 +00:00
scw
031f751a7d Lmapped_start is used in db_trace, so mark as a 'function'. 2003-08-12 21:48:07 +00:00
matt
1d1029332d Remove this. The architecture specific ones are now used. 2003-08-12 18:35:51 +00:00
matt
47483092bd Cleanup/rework cpu_switch*, switch_exit, Idle routine. Remove pcb_psl
since it was write-only.  When setting up a process, make sure the fake
callframes are properly linked together.

Only lower SPL when in Idle loop.  Raise spl to previous level (which would
be IPL_SCHED) when exiting Idle loop.  Never lower SPL anyplace else.
2003-08-12 18:34:47 +00:00
matt
b986a8c215 D'oh! The PCB can't be accessed with the MMU off. So get the pmap pointer
*before* disabling the MMU.
2003-08-12 15:40:02 +00:00
pk
87d5e88b94 sun4/sun4 mem_fault(): on kernel faults we now need to try to page in a
a `pmeg' too. See also sparc/pmap.c, rev 1.265.
2003-08-12 15:34:32 +00:00
pk
98d3a23993 Extensive rewrite of the sun4/sun4c pmap code to allow non-wired kernel
mappings to use the pre-emptable pool of `PMEG' MMU resources.
2003-08-12 15:31:56 +00:00
pk
fe30a2e6c1 Use pmap_remove_all() to flush the cache by context and set a flag to
avoid subsequent user space cache flushes by page or segment in pmap_remove().
2003-08-12 15:13:11 +00:00
scw
10e88b305a copy{in,out} and kcopy should return success if 'len' is zero. 2003-08-12 13:51:52 +00:00
scw
8d5dbf5382 An FPUEXC leaves the PC pointing to the FP instruction
which caused the exception. To avoid an endless loop if
the user is ignoring or catching SIGFPE, adjust the saved
PC to skip over the offending instruction.

XXX: It's not clear that this is the correct behaviour,
XXX: but it's the only way to make sh5 pass the IEEEFP
XXX: regression tests in regress/lib/libc/ieeefp/except.
2003-08-12 13:50:23 +00:00
dsl
744ee27288 Try looking RF_PROTECTED_SECTORS further down the partition if /boot
cannot be found.
Lets the system boot directly from a rad set.
2003-08-12 10:03:03 +00:00
bsh
e1cdd07843 use CLZ insn to find a pending interrupt. 2003-08-12 08:24:04 +00:00
matt
a3a18840be Remove SPILLSTK leftovers. 2003-08-12 05:15:41 +00:00
matt
c0d6cb285d Nuke ci_curpm and curpm. Nuke pcb_pmreal. Those were use for spill stacks
and those no longer exist.  for few uses that need CURPM, use CURPCB/PCB_PM
2003-08-12 05:06:53 +00:00
fvdl
8c1a2eef97 Fix deadlock issue. Slight variation on patch by Stephan Uphoff. 2003-08-11 21:15:50 +00:00
drochner
657c8bd72c fix a memory deallocation botch in the realloc-ldt case,
plus some cosmetics
from Stephen Ma per PR port-i386/19724
2003-08-11 17:26:24 +00:00
drochner
6fb41457ab arrgh - KERNBASE_LOCORE! 2003-08-11 16:56:46 +00:00
matt
3527dc3950 When getting the lwp to switch to, test to see if the scheduling queue is
empty, and if so panic.  Change references to "proc/process" to lwp.
2003-08-11 15:39:24 +00:00
drochner
e8d0979bed Fix stack location for VM86 processes in the !sigaltstack case.
I doubt it makes much sense to use the VM's stack for this, but the
old code was doubtless wrong because it potentially overwrote random
user memory.
(It might be a good idea to use the process' pre-vm86()-call stack,
but atm the infrastructure for this is missing.)
2003-08-11 14:09:18 +00:00
christos
cdf5cfc132 Kill another stray setup_stack. Thanks @@@. 2003-08-11 13:27:58 +00:00
atatat
3e5ef14f22 Make sure to wrap include opt_foo.h in _KERNEL_OPT. 2003-08-11 13:20:39 +00:00
christos
2b16e874b8 I don't understand why there this is here, since we have exec_ecoff.c in kern,
but remove the stack setup function anyway.
2003-08-11 12:58:43 +00:00
chs
b90614b54e catch up with changes elsewhere. 2003-08-11 05:13:20 +00:00
matt
341742a7e9 Add PTEGCOUNT defparam for opt_pmap.h 2003-08-11 01:33:30 +00:00
scw
927c51ccaf Explicitly declare some symbols used by db_stack_trace_print()
as functions so they can be picked up as such.
2003-08-10 22:24:50 +00:00
scw
27479ae035 64-bit db_addr_t makes life much easier now that ddb uses ksyms. 2003-08-10 22:22:31 +00:00
scw
7f2011899c In PIC_GET_GOT, use a local numeric label which is very unlikely to
clash with other labels in code which uses it.
2003-08-10 22:18:12 +00:00
martin
965abb5c4c Avoid intermediate (void*) casts.
Replace aliased pointer magic with shift/mask arithmetic.
2003-08-10 15:17:55 +00:00
martin
7406b873ca Replace strict-alias bug prone pointer magic with (IMHO clearer)
shift/mask arithmetic.
2003-08-10 15:14:02 +00:00
martin
c26dc73c1d Remove unecessary intermediate (void*) casts. 2003-08-10 14:53:12 +00:00
martin
7a1600bb14 Remove unecessary intermediate (void*) casts. 2003-08-10 14:50:09 +00:00
tsutsui
5b7e87e535 Fix a leftover comment. 2003-08-10 12:00:03 +00:00
tsutsui
37b01430e9 Call prep_bus_space_init() and consinit() after oea_batinit() and oea_init()
because powerpc/bus_space.c:bus_space_init() checks BAT maps. (from mvmeppc)
2003-08-10 11:41:36 +00:00
chs
792f9a7f05 remove some leftover cruft. 2003-08-10 02:30:51 +00:00
chs
78a835abdc fix typos in comments. 2003-08-10 02:03:31 +00:00
chs
a883716eb4 track changes in libsa Makefile. 2003-08-10 02:01:26 +00:00
uwe
e4bd28ac72 Undo previous. It breaks profiling, but I managed to test against the
wrong tree and so missed it.
2003-08-10 01:22:03 +00:00
uwe
147642d466 Real _PROF_PROLOGUE so that assembly language functions can be profiled. 2003-08-10 00:00:26 +00:00
uwe
9cd06ccd7e For ELF put RCSID strings into .ident section. 2003-08-09 23:04:43 +00:00
dsl
221f1dff47 Some systems (esp. those with a Promise IDE controller card) seem to
destroy %dl (drive number) across the 'disk reset' command.
Preserve %dl across that call and all registers across the disk reads.
Reorder the code to remove some long conditional jumps to save space.
2003-08-09 20:57:45 +00:00
bsh
7061f16abb enable LCD, PCMCIA, CF and PS/2 keyboard. 2003-08-09 19:41:44 +00:00
bsh
eab266e671 add following drivers for Intel Lubbock.
LCD
	on-board SA-1111 companion chip
	PCMCIA/CF slots
2003-08-09 19:38:53 +00:00