bjh21
3d0535f928
Remove needless includes of <dev/pckbc/wskbdmap_mfii.h>.
2004-03-13 17:23:32 +00:00
matt
e03259960d
Fix some gcc3 uninitialized variables.
2004-03-13 07:22:21 +00:00
jmc
d58ac80c5e
Set some defaults where gcc can't follow the interrupt code
2004-03-13 07:05:54 +00:00
dyoung
4ccb1f5236
Add a 'tags' target to macppc.
2004-03-13 05:55:40 +00:00
jmc
cb992ce856
Comment out the rest of the opencrypto bits for now; the bebox port does not yet have generic soft interrupts, which the opencrypto software depends on.
2004-03-13 05:29:29 +00:00
jmc
a0ba19bfcf
Comment out opencrypto bits for now; the bebox port does not yet have generic soft interrupts, which the opencrypto software depends on.
2004-03-13 05:20:10 +00:00
wrstuden
74fec3bc40
Fix ofwboot to deal with larger kernels. Rather than loading at
...
0x6?0000, load at 0xe00000. This gives us room for around 13 MB of
kernel, as opposed to the current 5 MB (0x600000 - 0x100000).
No changes to load-base or real-base are needed due to this change,
though machines that needed specific OFW settings before (OF 1.x
and 2.x) this change still need those settings.
Partially revert revision 1.25 -> 1.26 of ofwboot/Makefile & friends.
We do not need to distinguish between where ofwboot and ofwboot.{elf,xcf}
load; they are both fine loading somewhere other than load-base.
2004-03-12 19:13:37 +00:00
jmc
6a03536b28
Toolize and use install to make mdec/std so it's in METALOG. Now a make release
...
works once again for atari
2004-03-12 17:52:54 +00:00
nonaka
57c768218b
reduce size...
2004-03-12 15:18:33 +00:00
drochner
9cd594d535
report SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
...
tested by Martin Husemann
2004-03-12 13:27:03 +00:00
jkunz
1917acaf35
Make new Intel i82596 Ethernet driver default for hp700.
2004-03-12 11:44:13 +00:00
jkunz
098a6e75bb
Import hp700 MD part of new Intel i82596 Ethernet driver.
2004-03-12 11:41:39 +00:00
cl
41d325dc43
Add port to the Xen virtual machine monitor.
...
(see http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ )
2004-03-11 21:44:08 +00:00
christos
fcc8e3a5b0
PR/24741: Aymeric Vincent: Variable sme_flags isn't initialized to zero
2004-03-11 15:40:13 +00:00
yamt
aad9f63765
before resuming from failure during return to user mode,
...
- clear PSL_NT. it can be set by userland because setting it
isn't a privileged operation.
(cf. DSA-336-1, CVE-2002-0429)
- set PSL_I. otherwise, if SIGSEGV is ignored, we'll
end up to infinite loop, generating the same traps, with
interrupts disabled.
2004-03-11 11:42:04 +00:00
yamt
b62ef7b657
update trap(), resume_iret and friends to match with
...
the recent version of INTRFASTEXIT.
might be related to PR/24711.
2004-03-11 11:39:25 +00:00
jmc
ad0332662d
daddr_t is forced to int32_t in sys/arch/atari/stand/Makefile.inc so correct
...
the printf formats to match this
2004-03-11 07:22:25 +00:00
cgd
965d1e331b
update from SiByte Sample Software version 1.0.26 from:
...
http://sibyte.broadcom.com/public/resources/download-request.html?samplesw/samplesw-1.0.26.tar.bz2
2004-03-11 02:12:24 +00:00
nonaka
ff60b11847
missing new-line after mc146818_attach().
2004-03-10 15:19:22 +00:00
nonaka
4c2b0e6fe2
boot-loader can find attached kernel again.
2004-03-10 15:17:01 +00:00
nonaka
b67a1a734a
wdc_obio can be used again.
2004-03-10 15:14:49 +00:00
jdc
bfd698dc3d
Catch up to the bootblock split into std and milan directories.
2004-03-09 20:14:27 +00:00
sekiya
4a4eccf833
Add int2_wait_fifo(), which will idle while awaiting a flag in the interrupt
...
controller to deassert. Needed for the more interesting features of various
SGI framebuffers.
2004-03-09 14:05:09 +00:00
cgd
9ace356dba
proper name for SB-1 is ... SB-1 (not SB1).
2004-03-09 00:47:14 +00:00
simonb
38b2b82a1a
Wrap some long lines.
2004-03-08 11:28:48 +00:00
jmc
7ea4175be1
Nuke unused var
2004-03-08 06:35:23 +00:00
jmc
1e908aacac
Don't trim the ramdisk space smaller than the max ramdisk size...i.e. make it 2M
2004-03-08 05:52:56 +00:00
jmc
ed141a197a
Sync up w. other sh3 ports and don't install trap.h
2004-03-08 05:12:10 +00:00
simonb
aaf826ed6a
Strip out a few more sections when making the ecoff file to reduce the
...
ECOFF file size. Problems noticed by James Chacon.
2004-03-08 05:00:02 +00:00
sekiya
64732fc9ae
Print an informative message when unimpl_intr() is invoked, rather than panic().
2004-03-06 07:50:56 +00:00
drochner
d56da55ea4
-oops - correct the x87 si_code reporting to use the current fsw
...
-for XMM traps, report mxcsr in si_trap
2004-03-05 21:21:14 +00:00
drochner
571265fc35
deal with XMM exceptions
...
(I'm not sure whether it is right to clear the "sticky"
exception bits here, but in the i387 case even the whole
FPU is initialized...)
2004-03-05 17:20:13 +00:00
he
efb05353c0
Remove the local proc_trampoline definition from this file as well.
2004-03-05 15:50:42 +00:00
junyoung
0f89803028
Drop trailing spaces.
2004-03-05 11:30:50 +00:00
kleink
8e54f10bf7
* Turn isinf(3) and isnan(3) into C99-style macros.
...
* Make it possible for ports to override these (i.e., VAX).
* Remove isnanl(), which was internal to libc only.
2004-03-04 23:42:38 +00:00
drochner
bb362b40bf
fix some problems with FPU exception signaling:
...
-The MachFPTrap did generate pre-siginfo arguments to trapsignal(),
leading to an immediate crash.
Put the siginfo generation into a separate .c file for simplicity.
-The exception bits in MIPS_FPU_CSR didn't get cleared, leading to
trouble later ("kernel used FPU" on pmax).
XXX This should probably be done for the "unimplemented fpu instruction"
case as well, but I don't know how to test this. Or, even better -
centralize the CSR clearing before the branch in MachFPTrap.
2004-03-04 20:17:01 +00:00
jdc
162e36abb1
Make this include the Jornada 720 config and just change the memory size,
...
as it is exactly the same otherwise.
2004-03-04 19:57:59 +00:00
nathanw
797c90374e
Centralize identical copies of proc_trampoline code.
...
(lots more opportunites here for the bored hacker, such as rei and trap0...)
2004-03-04 19:53:44 +00:00
dbj
1ea0a01420
fix comment about spllowersoftclock
2004-03-04 19:10:10 +00:00
drochner
302b606369
fix some problems with lazy fpu context handling:
...
-if a new process gets a CPU with an FPU state of another process, it
needs to initialize it to a clean state
(actually, put the "fninit" where it belongs logically)
-initialize mxcsr as well
minor cleanup/optimization
Signal delivery after unmasking some cause is still broken - it doesn't
care about xmm exceptions. For now, set at least si_code to something
positive so that it doesn't look like a user generated asynchonous signal.
2004-03-03 20:27:53 +00:00
kleink
9ff09d5dff
Pull in SPRs via <powerpc/spr.h> in this single instance, and dispose of
...
<machine/spr.h> again.
2004-03-02 00:35:54 +00:00
kleink
591762a7d0
Insert a newline after autoconf output.
2004-03-01 23:49:12 +00:00
drochner
98dbb9f046
on (fast) syscall exit, force %ds to its standard value --
...
it might have been modified by a netbsd32 process
2004-03-01 12:10:41 +00:00
drochner
7925327e58
set MDP_IRET in cpu_setmcontext() - the normal (fast)
...
syscall exit is not able to propagate all register
arguments
2004-03-01 12:06:02 +00:00
dsl
44eaa39982
Report errno value from boot1() - even though the standalone FS code
...
seems to translate everything into ENOENT.
2004-02-28 23:01:55 +00:00
dsl
da7ffa3cbe
Look for /boot in the 'a' partition (from the label in the mbr partition)
...
if it can't be found in a filesystem (or raid set) at the start of the
mbr partition.
2004-02-28 22:32:23 +00:00
dbj
5b782a2183
allow err of IREENT_MAGIC when looking for interrupt frames
2004-02-28 20:30:58 +00:00
simonb
a50cc8bd42
Catch up with the November 2002 (!!) change to remove ABI exposure
...
from cpu_fork and the proc trampoline. pthreads programs that fork
now work (at least the regress test case does).
Program reported by Florian Stöhr on port-sgimips.
2004-02-28 16:02:03 +00:00
simonb
7e050bc20e
ANSIfy, wrap long lines.
2004-02-28 15:44:34 +00:00
dbj
0dcc30f1ff
fix bug in tracing current process by explicit pid
2004-02-28 02:58:35 +00:00
dbj
ba0f8cbecc
fix an uninitialized variable problem that prevented t/u from working.
...
this also helps some when no symbols are available
2004-02-28 01:00:30 +00:00
sekiya
d289507533
Blinkenlitzen for IP20 (Indigo).
2004-02-28 00:53:56 +00:00
dbj
d3e00c7d64
fix backtracing through interrupt frames and system call frames
2004-02-27 22:52:03 +00:00
enami
ac317107c7
Backout (part of) rev. 1.187, since the control no longer fall through.
2004-02-27 21:37:48 +00:00
scw
c29e82af70
Must Test Before Committing...
2004-02-27 18:55:19 +00:00
jdolecek
b1d292e1be
add yet another ServerWorks variant
...
from PR port-i386/24570 by Ray Phillips
2004-02-27 09:01:26 +00:00
uwe
0ed7ecdd91
G/c unused "hdc" variable.
2004-02-27 04:22:26 +00:00
uwe
c45485b3de
Forgot to call ReleaseDC().
2004-02-27 04:20:38 +00:00
uwe
c23bdf5200
On winder HPC screens use wider Boot/Cancel buttons that looks better.
2004-02-27 03:53:33 +00:00
uwe
6212a368a7
Make sure the root window always has focus, so that hpcboot can be
...
operated using only the keyboard. It should now be possible to boot
NetBSD on HPC devices with broken touchscreens.
2004-02-27 03:23:12 +00:00
uwe
d6be11a58d
Use realsize() to determine the size of the miniroot image.
...
It's now possible to boot from gzipped miniroots.
2004-02-27 02:02:16 +00:00
uwe
318e48690d
Implement realsize() method. For gzipped files it reports the
...
uncompressed file size.
2004-02-27 02:00:32 +00:00
petrov
b062992f9d
Correct VA_ALIAS_MASK. From Chuck Silvers.
2004-02-26 20:24:29 +00:00
petrov
c8c8407406
Correct ffb attachment.
2004-02-26 20:23:17 +00:00
perry
39c2ad666c
fix another whitespace nit
2004-02-25 18:56:26 +00:00
perry
c5e487ca2c
juggle tabs and spaces so comments don't nuke line lengths as badly
2004-02-25 18:50:01 +00:00
drochner
6f1a2b7cbf
deliver SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
...
tested by Juergen Hannken-Illjes
(there are more uninitialized ksi.ksi_code arguments)
2004-02-24 18:31:46 +00:00
drochner
45fc887212
deliver SIGSEGV/SEGV_ACCERR if code execution on stack is attempted,
...
tested by Chuck Silvers
2004-02-24 18:25:27 +00:00
wiz
516a72484d
Spell through with two hs. From Peter Postma.
2004-02-24 15:24:35 +00:00
wiz
73e1501b98
parameter with two es. From Peter Postma.
2004-02-24 15:22:01 +00:00
wiz
85746c6759
Spell interrupt with two rs. From Peter Postma.
2004-02-24 15:16:04 +00:00
wiz
f05e6f1a3a
occured -> occurred. From Peter Postma.
2004-02-24 15:12:51 +00:00
wiz
dc4cc98b15
becuase -> because. From Peter Postma.
2004-02-24 15:05:53 +00:00
jandberg
4328680c2a
regen after wsfont changes
2004-02-23 21:18:50 +00:00
jandberg
c7998e2542
Add wsfont pseudo-device.
...
With this the custom font loading code isn't needed and is removed.
2004-02-23 21:14:08 +00:00
jandberg
bd3891888b
Replace an IBM-encoded wsfont with ISO-encoded one
2004-02-23 20:53:41 +00:00
uwe
0294b2b99a
WinCE 2.11 doesn't support keyboard focus traversal for nested
...
dialogs, so implement poor man keyboard focus manager. The goal is to
make it possible to use hpcboot on HPC devices with broken touch
screen. (TODO: Make sure that when the window is activated, there is
a focused control).
2004-02-23 05:20:48 +00:00
uwe
dc89f5be32
If MEMORY_DISK_IS_ROOT - don't compile/use get_device(), as setroot()
...
anyway will ignore the info we pass.
2004-02-23 03:32:23 +00:00
uwe
590efeca88
Wrap "unknown instruction in prologue" in TRACE_DEBUG. gcc3 reorders
...
instructions so that prologue code and function code get mixed, and
you get a lot of noice from this printf, making traceback very hard to
read if not useless.
2004-02-23 01:06:53 +00:00
sekiya
bb60b4d04f
Correct descriptive comment (these routines are not used for r5ksc).
2004-02-22 03:23:54 +00:00
bjh21
859077437c
Use 0 for integers, not NULL.
2004-02-21 23:25:01 +00:00
bjh21
af905e2600
RCSID()
2004-02-21 23:22:34 +00:00
bjh21
02d168952e
Ensure file ends with a newline.
2004-02-21 23:20:53 +00:00
augustss
8666d19603
Make INSTALL kernel a little slimmer.
2004-02-21 11:38:28 +00:00
junyoung
2402a07435
- Locate comment in right place.
...
- Fix wrt protection against multiple inclusion.
2004-02-21 04:31:40 +00:00
jkunz
7006f1c550
Import ipmlementations for _bus_dmamap_load_buffer(), mbus_dmamap_load(), mbus_dmamap_load_mbuf(), mbus_dmamap_load_uio() and mbus_dmamem_mmap(), from sys/arc/vax/vax/bus_dma.c and rework mbus_dmamap_sync() based on sys/arc/arm/arm32/bus_dma.c.
2004-02-20 20:22:10 +00:00
jkunz
c43db93399
hp700 has no PCI support yet. Enabling PCI devices breaks compilation, so disable all PCI devices for the moment.
2004-02-20 20:18:37 +00:00
drochner
972fe86c42
Provide a dummy cpu_exec_aout_makecmds() to make a kernel
...
with COMPAT_NETBSD32+COMPAT_AOUT link.
netbsd-1.3/i386 binaries are running now.
2004-02-20 18:11:16 +00:00
yamt
2becafcd79
don't assume that bus on intr_extra_buses has non-null pci_bridge_tag.
...
pchb's second bus doesn't have it.
ok'ed by Frank van der Linden.
2004-02-20 18:04:06 +00:00
yamt
d749a2d0b4
defer pmap switching until it's really needed
...
to avoid frequent loading of cr3 register, which involves tlb flush.
with some fixes/improvements from Stephan Uphoff and Bang Jun-Young.
2004-02-20 17:35:01 +00:00
drochner
289fa68010
provide a definition NETBSD32_MID_MACHINE which tells for the a.out MID
...
to look for in 32-bit emulation
2004-02-20 16:11:44 +00:00
drochner
2982fa170d
use no-execute page permissions if supported
2004-02-19 17:18:38 +00:00
drochner
fdeec1f029
define AMD64's CPUID_NOX bit (I'm curious where Intel puts this bit in the
...
ia32 extension just announced)
XXX there should be a better separation between generic and vendor
specific feature flags
2004-02-19 17:09:39 +00:00
drochner
d2414542a3
-on instruction fetch fault from non-executable pages, signal
...
SIGSEGV/SEGV_ACCERR
-whitespace cleanup
2004-02-19 17:06:06 +00:00
drochner
893de0a21e
signal SIGSEGV/SEGV_ACCERR if non-executable stack is jumped to
2004-02-19 17:02:44 +00:00
uebayasi
5d41e06074
Update some URLs.
2004-02-19 12:23:47 +00:00
bjh21
fb330ce71b
Remove pckbc_machdep_cnattach() -- it's no longer needed.
2004-02-19 01:03:45 +00:00
matt
77effcd27e
Don't waste space on likely unused sysmon structure.
...
Instead malloc them as needed.
2004-02-17 22:03:52 +00:00
wiz
bb3980ab7a
Remove last traces of DUMMY_NOPS option that was removed some
...
time ago.
From Jeff Rizzo in PR 24442.
2004-02-16 17:11:26 +00:00
thorpej
e1e9cfd40a
Comment out some SYSV* and *VERBOSE options to shrink these down so
...
they fit in the current boot floppies.
2004-02-16 02:43:53 +00:00
bjh21
5aca86918f
Add a new MI attribute, pckbc_machdep_cnattach, and change pckbc_cnattach()
...
to only call pckbc_machdep_cnattach() if this is present. This allows
pckbc_machdep_cnattach() to be omitted entirely on most ports, where it only
returns ENXIO anyway.
The devices with this attribute at the moment are pc(4) on i386 and bebox, and
pckbc on sparc, where pckbc_machdep_cnattach() mysteriously returns 0 rather
than ENXIO.
2004-02-14 14:33:28 +00:00
bjh21
2e7e5cf29f
Remove definitions of "pc" and "pcconskbd" devices which couldn't work since
...
they used arch/prep/isa/pccons.c, which was removed in late 2001.
2004-02-14 14:00:22 +00:00
jdolecek
af46922ada
add compat hook in check for zerodev; use this hook to recognize
...
the old ARM /dev/zero minor mapping #ifdef COMPAT_16
fixes second part of PR kern/23581 by Richard Earnshaw
2004-02-14 12:20:14 +00:00
simonb
aa459d7b32
Make everything in this file except for the sysctl CTL_MACHDEP related
...
information hidden outside the kernel.
2004-02-14 08:20:43 +00:00
bsh
c9e2add10b
add drivers for LCD and keyboard.
2004-02-14 07:32:31 +00:00
bsh
58613436a1
Support SMDK2410's 240x320 TFT LCD.
...
This can be configured with or without wsdisplay.
Only 8- and 16-bpp modes have been tested.
2004-02-14 07:26:35 +00:00
bsh
782b4d1e18
Keyboard driver for semtech SPICoder-SA06 on Samsung SMDK2410.
...
The board has a full keyboard. The controller is hooked to SPI port.
2004-02-14 07:23:30 +00:00
bsh
ba2cd9f97b
add lcd and spi
2004-02-14 07:20:20 +00:00
bsh
126ae44aa1
SPI support for Samsung S3C2410.
...
spi driver doesn't provide any actual I/O, and attaches child drivers
for devices that hooked to SPI ports.
2004-02-14 07:19:51 +00:00
bsh
0eedb024e6
Support S3C24X0's on-chip LCD controller.
...
lcd driver can be configured with or without wsdisplay.
With wsdisplay, it supports text mode using rasops in 8bpp or 16bpp.
Without it, users only can mmap(2) the framebuffer.
XXX: 1-, 2-, 4-, or 24- bpp mode is not supported yet.
XXX: S3C24x0's LCD controller can have virtual screen which is bigger
than actual LCD panel. Our wsdisplay framework doesn't have
features to utilize it.
2004-02-14 07:12:50 +00:00
snj
d02c32fcce
s/rediculous/ridiculous/
2004-02-13 22:47:04 +00:00
drochner
dc30e923ea
plug kernel lock leaks
2004-02-13 18:57:19 +00:00
drochner
61c3181dd6
plug obvious kernel lock leaks
...
(untested)
2004-02-13 18:27:14 +00:00
drochner
8437e697bc
plug 2 obvious kernel lock leaks
...
(compile tested only)
2004-02-13 18:01:44 +00:00
drochner
8d3cefb29e
grab the kernel lock during 32-bit syscalls too
2004-02-13 17:07:56 +00:00
scw
a402937c23
Avoid using two 'GPIO' bits of the interrupt mask to signify soft
...
interrupts; some boards actually use those GPIO pins as external
interrupt sources.
Instead, assign soft interrupt bits to on-chip sources which are
not used by the IXP425 port.
2004-02-13 15:49:02 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
wiz
f582138c1b
Uppercase CPU.
2004-02-13 10:11:56 +00:00
wiz
5fd0048361
Uppercase CPU where appropriate.
2004-02-13 10:10:18 +00:00
wiz
48d8646b50
Uppercase CPU.
2004-02-13 10:08:55 +00:00
wiz
f5b32c1e69
RealTek -> Realtek.
2004-02-13 10:00:54 +00:00
scw
7096f676a7
Very occasionally, the MMU is enabled before the 'ldr' which loads
...
the mapped address to leap to completes. This generally manifests
itself as a random exception with RedBoot just after 'go'.
Fix it by adding a data-dependency on the 'ldr' result.
2004-02-12 23:26:48 +00:00
bsh
03e6ee6d67
add register definitions for LCD controller, AD converter, and SPI.
2004-02-12 03:52:46 +00:00
bsh
da6312579b
be consistent with #define<TAB>
2004-02-12 03:47:29 +00:00
chs
3865de5a5a
pmap_activate() on pmap_kernel() should be a no-op.
...
needed for now while exiting processes "borrow" vmspace0,
but it's reasonable to check anyway.
2004-02-12 03:25:48 +00:00
yamt
03e3b6a13c
pmap_create: initialize pm_cpus.
2004-02-11 12:15:12 +00:00
matt
b820eb3ad3
32-bit corefiles should use a MID for i386, not xf86_64.
2004-02-11 01:01:37 +00:00
jdolecek
3eb13d5e8f
whitespace police
2004-02-10 16:43:43 +00:00
jdolecek
2d609e233b
need lpt_ofisa_machdep.c also for atppc attachment
2004-02-10 16:43:22 +00:00
bjh21
47df99b02a
__HAVE_NWSCONS seems to mean, "If this port uses pckbc(4), it also uses
...
sys/dev/pckbc/files.pckbc." This is true of sparc, so define __HAVE_NWSCONS,
and remove the code in pckbc_machdep_cnattach() that was conditional on its
not being defined and that is no longer needed (since with __HAVE_NWSCONS,
pckbc_cnattach() will call pckbd_cnattach() itself if necessary).
2004-02-10 01:11:45 +00:00
bjh21
36727732df
Remove pcconskbd(4) support code since this port doesn't have pcconskbd(4)
...
and the code was conditional on a macro that was never defined anyway.
2004-02-09 19:37:43 +00:00
bjh21
62c2e676ba
Increase the attach priority of opms(4) and kbd(4) (also rpckbd(4), but that
...
slipped into a previous commit) so that they can override the forthcoming
iomdkbc(4) if necessary.
2004-02-08 13:43:52 +00:00
bjh21
11ab4a17ac
Attach rpckbd(4) and kbd(4) in the same place, so that they can't both end
...
up attached at the same time, and so that they can both prevent the forthcoming
iomdkbc(4) attaching to the keyboard slot.
[ file missed in last commit ]
2004-02-08 13:41:53 +00:00
bjh21
165d7132e7
Attach rpckbd(4) and kbd(4) in the same place, so that only one of them can
...
attach at a time, and so that either of them can prevent the forthcoming
iomdkbd(4) attaching to the keyboard slot.
2004-02-08 13:39:21 +00:00
sekiya
ad76afdc86
de-__P.
2004-02-08 13:15:42 +00:00
sekiya
e03691c03d
More newport driver tweaks:
...
* detect and store vc2 revision. This is (likely) the important factor in
determining the proper cursor offset, so add a bit of logic that does the
right thing on my revision 0 vc2. This will have to be determined
empirically, revision by revision.
* take a stab at detecting framebuffer depth. SGI does it quite differently,
but their algorithm doesn't work, so we'll do it along the same lines as
linux.
* implement newport_mmap() for use by X. The necessary xsrc commits have been
made (with the notable exception of the config/cf changes, which probably
shouldn't go in until 4.4.0 has been imported).
2004-02-07 04:34:34 +00:00
drochner
5ab60443ab
please test-compile before committing
2004-02-06 10:28:03 +00:00
junyoung
bf274fed3f
ANSIfy & KNF.
2004-02-06 08:18:39 +00:00
junyoung
9a410f9ed0
Rename es_check in struct execsw to es_makecmds.
2004-02-06 08:02:58 +00:00
augustss
2135e62a21
Add code to initialize the EEPROM in case the boot monitor doesn't do it.
2004-02-04 15:44:18 +00:00
jmcneill
8c56c583be
The vraiu(4) hardware doesn't provide any interface for volume control.
...
Added software volume control functionality in vraiu_volume(), called from
vraiu_start(). Can be changed by the mixerctl 'inputs.dac' -- 0 is muted,
255 is the level that the driver previously outputted (quite loud on the
IBM Workpad Z50), and everything else is a smooth transition between the
two. Thanks to toddpw@ for lending me the hardware to test these changes.
2004-02-04 06:43:47 +00:00
soren
535d4588f0
Add Pentium M MSR definitions from Michael Eriksson.
2004-02-02 08:28:00 +00:00
uebayasi
189c5218f4
Typo typo.
2004-01-31 14:12:33 +00:00
jdolecek
5ecaa7ecee
add dependency on isadma for atppc attachments
...
add atppc_isadma.c for atppc@isapnp and atppc@ofisa, too
2004-01-31 13:59:20 +00:00
augustss
95d29f513f
Trim INSTALL kernel.
2004-01-30 14:25:54 +00:00
augustss
8bc2d678bc
Use more symbol table space in generic kernel.
2004-01-30 14:25:36 +00:00
he
22d88e6c63
Omit declaration of "device lpt" in files.mvme; this is now done by
...
the recently introduced files.ppbus.
Also, let the mvme68k port use it's own lpt implementation for now,
so define USE_ALT_LPT option in std.memv68k.
This makes the mvme68k kernels configure and build again.
2004-01-30 09:42:01 +00:00
reinoud
91f1fdd2b7
The `beep' device has been removed but aparently this small reference was
...
obmitted resulting in a compilation failure in the autobuilds.
It effectively removes the now redundant reference to "beep.h" and removes
an associated prototype that wasn't used.
2004-01-29 16:43:42 +00:00
dbj
ce701fa38b
fix for backtracing through trap frames from Christian Limpach
2004-01-29 04:58:50 +00:00
yamt
2a93afdfd5
rename i386 mdlwp flags from MDP_ to MDL_
...
to avoid confusion with mdproc flags which also have MDP_ prefixes.
2004-01-28 10:48:55 +00:00
yamt
20236bf218
gdt_alloc_cpu: use unmanaged mappings as gdt_init and gdt_grow.
2004-01-28 10:43:50 +00:00
jdolecek
41f3d22517
add PNPBIOS attachment foor atppc(4) driver; compiles, otherwise untested
2004-01-28 09:09:14 +00:00
cdi
42a4dd9368
Load the boot program at 0x80F00000 to give the boxes with just 16Mb of
...
RAM a chance to boot. Discussed with soren@, tested on customer's board.
NB: While acceptable as a temporary workaround since most (all?) Cobalt
hardware comes with no less than 16Megs on board, changing a kernel load
address or making a boot loader relocatable could be a better solution.
2004-01-27 21:03:18 +00:00
scw
43cdf5ffb6
__splbarrier() is deprecated in favour of the MI __insn_barrier().
2004-01-26 19:43:25 +00:00
rearnsha
8e61df4a12
Switch the ARM9 to using the Dcache in write-back mode. Avoid an
...
unknown problem with dcache_inv_range by using a wbinv for now
(similarly for ARM10).
When setting the ARM9 system control register, use the computed
cpuctrlmask value (not 0xffffffff) so that the clocking-mode bits are
not reset to FastBus mode (which isn't very fast).
2004-01-26 15:54:16 +00:00
lonewolf
8ecc24789a
Remove unused dc_screens from the softc, the driver does not support multiple
...
screens.
2004-01-26 11:00:47 +00:00
scw
b9992109f0
Make it possible to call badaddr_read() from interrupt context, even
...
if curpcb is NULL, by borrowing lwp0's pcb if necessary (needed to
be able to set pcb_onfault).
Problem reported by Allen Briggs.
2004-01-26 10:45:24 +00:00
sekiya
6595b5b178
Slight modifications to newport driver:
...
* Add resolution and depth variables to softc (for use in X driver, although
depth detection is currently problematic),
* Store more information about various chip revisions,
* Implement ioctls to help the X driver detect device presence and geometry.
2004-01-26 07:12:33 +00:00
bjh21
ed0dd3010c
Remove spurious inclusion of obsolete <arch/arm/iomd/waveform.h>.
2004-01-25 14:46:44 +00:00
bjh21
d7db239545
Remove another mention of "beep".
2004-01-25 13:52:00 +00:00
bjh21
239eec55fd
Remove mentions of "beep" driver.
2004-01-25 13:51:29 +00:00
bjh21
5efebff42a
Remove the "beep" driver. Its function is largely subsumed by a
...
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
2004-01-25 13:46:59 +00:00
minoura
873a493daa
Remove COMPAT_HPUX support. It did not work for a long time,
...
and I do not think emulating frame buffer devices is useful.
KNF.
2004-01-25 13:17:00 +00:00
jdolecek
e702ddcd47
include SMBFS support
2004-01-23 13:43:46 +00:00
simonb
359d88a947
Fix compile problem with recent buffer changes.
2004-01-23 04:44:20 +00:00
simonb
6765e4c055
Fix trailing white space and trailing blank line nits.
2004-01-23 04:12:39 +00:00
simonb
9cd9c7cf83
"#define<TAB>" police.
2004-01-23 04:03:38 +00:00
simonb
9f857ffb2f
Drop maxphys to 64k. Makes new buffer scheme compile, and is in line
...
with most other ports.
2004-01-23 03:54:54 +00:00
jonathan
e83c4e9b7e
An i386 config file that includes GENERIC and adds ``options FASSDT_IPSEC''.
...
Intended as a tinderbox/regression-test aid, to prevent skew or
other bitrot between KAME IPsec and fast-ipsec.
2004-01-23 02:16:38 +00:00
nathanw
3d9ac0d037
In decode_prologue(), ignore positive-offset frame adjustments ("lda
...
sp, 64(sp)") on the theory that they're from the function epilogue,
which aggressive code motion has placed before the end of the
function's code.
Addresses my PR port-alpha/23996.
2004-01-22 18:59:00 +00:00
lonewolf
20f66016c1
Correctly read the board revision.
2004-01-22 14:15:51 +00:00
bjh21
d25f64bd25
Add commented-out entries to attach atppc and friends at pioc.
...
While I'm here, remove entries for pioc children that never exist.
2004-01-22 13:27:07 +00:00
bjh21
cbd3cc0528
Add support for using ppbus(4) on acorn32. Only tested to the extent that it
...
attaches correctly.
2004-01-22 13:25:51 +00:00
matt
82ad975738
Add #define cpu_lwp_free do { } while (/*CONSTCOND*/0)
...
(VAX systems don't need to do anything in cpu_lwp_free)
2004-01-22 01:24:10 +00:00
skrll
3dfd94284a
Leave errno as zero when we SIGSEGV. This means my CATS now passes
...
regress/lib/libc/siginfo/sigsegv
OK'd by christos.
2004-01-21 15:39:21 +00:00
mrg
719a671e87
back out previous; it was only required for a dead function.
2004-01-21 11:31:20 +00:00
petrov
e7595eb1ce
For pci devices without ofw mapping find ino by pci bus/slot/device
...
information, from OpenBSD.
2004-01-21 07:16:07 +00:00
jdolecek
46fdc63ac8
add register64_t which appears to be necessary for COMPAT_NETBSD32 nowadays
2004-01-20 20:30:41 +00:00
jdolecek
6c14651ea0
cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
...
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue
2004-01-20 19:58:00 +00:00
kleink
15afe0b4fc
Move FP_ROP and FP_DIRTYZERO from <math.h> to <vax/math.h> (where they
...
would have ended up if I hadn't missed the latter file in the commit).
2004-01-20 19:52:40 +00:00
matt
85d908affc
Add multiple protection inclusion.
...
s/u_int/unsigned int/
Fix typo.
2004-01-20 19:09:27 +00:00
martin
966fcad67c
How stupid can you borke a commit? I could *swear* I had tested the last
...
revision before commiting - but you ain't going to believe me anyway.
2004-01-19 19:27:46 +00:00
martin
cada3deec9
Rename switchexit to cpu_exit and g/c the old C implementation of cpu_exit.
2004-01-19 10:39:49 +00:00
sekiya
bdf3df3127
Checking for IP32 in each driver is redundant -- they're attached as children
...
of mace, so it is sufficient to perform the check in mace_match(). Pointed
out by soren@.
2004-01-19 10:28:28 +00:00
martin
dc94fda17b
Add missing paranthesis. Fixes PR 24144.
2004-01-19 08:42:20 +00:00
sekiya
d0207690f0
opt_machtype.h no longer exists.
2004-01-19 08:06:54 +00:00
sekiya
5ca2e0b59c
Completely remove IP2X and IP32, which renders opt_machtype.h obsolete.
2004-01-19 03:26:14 +00:00
sekiya
cfc3bade55
Attach the com and mcclock devices only if the machine is an IP32.
2004-01-19 00:30:17 +00:00
sekiya
3791a9994b
g/c obsolete function.
2004-01-19 00:19:36 +00:00
sekiya
90448f3f3f
Attach int0 at mainbus (precedent being the ip32 CRIME device, which handled
...
interrupts and timer calibration yet is also attached at mainbus).
Introduce the INDY_R4600_CACHE config option, which more accurately describes
the code enabled by this option.
This renders #ifdef IPxx completely obsolete, thus we theoretically can unify
the GENERIC files if a workable load address relocation scheme can be found.
2004-01-19 00:12:31 +00:00
martin
1d4a6379f7
Only compare the trampoline version in SIGTRAMP_VALID as an unsigned value.
...
From Christos Zoulas.
2004-01-18 20:53:57 +00:00
martin
b7fcfc0137
Support RAS for 32bit kernels too.
2004-01-18 19:41:06 +00:00
uwe
8939f2bdbd
Implement proper switch_exit in assembler. Since cpu_switch is
...
reduced to just a call to switch_exit, g/c the C version and add a one
instruction assembler version that just falls through to switch_exit.
Addresses PR#24007 by Jaromir Dolecek <jdolecek@netbsd> and makes sh3
kernels work again after his elimination of the reaper. Tested on hpcsh.
2004-01-18 18:54:17 +00:00
martin
da4e67accc
Do not export __HAVE_RAS to userland. Applications are supposed to try
...
rasctl() and detect failure with EOPNOTSUPP.
2004-01-18 18:23:19 +00:00
martin
3d03085b79
Use mi_userret() to do most of our userret() work.
2004-01-18 17:14:46 +00:00
he
18465464b9
Comment out opencrypto bits for now; the prep port does not yet
...
have generic soft interrupts, which the opencrypto software depends on.
2004-01-18 16:08:15 +00:00
bjh21
3bcd444b32
vidcaudio_set_params() must return a value (oops!).
2004-01-18 14:42:09 +00:00
sekiya
6ce242b753
Keep chip revision and EISA information on same line as attach information.
2004-01-18 13:11:18 +00:00
scw
ee92d9d4d2
Fix ARM_VECTORS_LOW fallout caused by the recent reaper removal.
...
Just before removing the vector page mapping, switch to the kernel
pmap's L1/vector page mapping so as not to pull the rug out from
under ourselves.
To prevent the stale L1/vector page mapping from being restored by
cpu_switch, replace the relevant fields of the dying process' pcb
with those of lwp0's pcb.
2004-01-18 13:03:50 +00:00
sekiya
6f76c4237a
ANSIfy, de-__P(), add a little glue for IP12.
2004-01-18 13:00:05 +00:00
sekiya
6feffff053
Properly disable watchdog timer.
2004-01-18 12:18:57 +00:00
uwe
a6ced7eb12
G/c symbols related to structs proc and mdproc.
2004-01-18 05:29:45 +00:00
uwe
dcc320b65f
s/proc/lwp/ in comments.
2004-01-18 04:59:52 +00:00
sekiya
bc71fd3468
Remove another #ifdef IP32
2004-01-18 04:43:42 +00:00
sekiya
5aea276a37
Add files.dev and files.mace
2004-01-18 04:07:17 +00:00
sekiya
63b59c4db4
Following the example of the hpc/, gio/, and ioc/ directories, move the
...
mace devices to their own mace/ directory. Alter conf/files.sgimips to
reflect this change in a sane manner (i.e., pull in dev/files.dev and
mace/files.mace when appropriate).
At the same time, allow crime_intr_establish() to fall through to
mace_intr_establish(). mace devices now call cpu_intr_establish().
2004-01-18 04:06:42 +00:00
uwe
269b569458
Add wi at pcmcia.
...
While here, do some cosmetic changes:
* sort PCMCIA network interfaces section.
* ksyms is not a wscons related pseudo device, so move it to misc.
* line up scif at shb line, and move related options to be after it.
2004-01-18 03:00:48 +00:00
sekiya
590daf63b8
Nuke two more instances of #ifdef IP32.
2004-01-18 01:00:48 +00:00
sekiya
06419e6abe
ip2x.c and ip32.c are no more.
2004-01-18 00:55:26 +00:00
sekiya
23020fc3cf
Finish moving code between ip2x.c and ip3x.c to imc.c and crime.c.
2004-01-18 00:54:55 +00:00
sekiya
90ed8dc85b
Add more platform hooks in platform struct.
2004-01-18 00:53:49 +00:00
sekiya
f754464233
Do not directly reference crime_*() routines, go through the platform
...
struct pointers instead.
2004-01-18 00:50:08 +00:00
sekiya
7f7429081d
Large rototill of the lowlevel code:
...
* move all device-specific bitbanging to the device drivers in question --
i.e., the ip32 init code doesn't access the CRIME registers directly but
instead trusts the CRIME driver to DTRT. machdep.c is cleaner thereby.
* introduce int.c, which handles the interrupt-controller goo formerly
in ip2x.c.
* unify the CPU interrupt handler, with CRIME, INT2, and the various timer
handlers hooked in via pointers in the platform struct.
* eliminate ip2x.c and ip32.c. After the interrupt handler cleanup, the
actual platform-dependent code was so minimal (rev identification, mask level
initialization) that it made sense to move it into machdep.c
* "#ifdef DEBUG printf("foo"); #endif" becomes aprint_debug.
Tested on my ip22 and ip32. Discussed with pooka@, rafal@.
2004-01-18 00:47:21 +00:00
bjh21
8078bc62c9
Change the control flow in vidcaudio_set_params() so as to make the indentation
...
less hairy.
2004-01-17 23:41:20 +00:00
bjh21
5510e882f1
Adjust vt(4) (WHICH MUST DIE) to the new way of handling bells on
...
NetBSD/acorn32.
2004-01-17 22:52:42 +00:00
bjh21
a332903327
Remove sysbeep device.
2004-01-17 21:52:02 +00:00
bjh21
13d0914a93
Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
...
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
2004-01-17 21:49:24 +00:00
bjh21
e095fd5eda
More light KNF.
2004-01-17 21:25:25 +00:00
bjh21
2ae7606f01
Light KNF.
2004-01-17 21:24:29 +00:00
bjh21
e37ee89427
Don't include option headers we're not going to use.
2004-01-17 21:16:13 +00:00
bjh21
b727d5da17
KNF.
2004-01-17 21:14:46 +00:00
bjh21
8e0990aadd
Un-__P.
2004-01-17 21:05:40 +00:00
perry
c70305f794
Make the warning on NEW_BUFQ_STRATEGY much milder -- I've upgraded it
...
to "Likely stable". I'm not going to make it the default unilaterally
but I really think it should be.
2004-01-16 17:02:05 +00:00
martin
9a80a6dc4b
In proc_trampoline don't bother to clear condition codes in the trap
...
frame, since we no longer rely on this.
While there fix a few comments.
2004-01-16 12:43:43 +00:00
martin
3b86738bf3
Don't rely on proc_trampoline to clear condition codes for a new
...
child process on fork - it could be overtaken by a signal delivery
and then use the stale condition code in the trap frame.
Instead, set tf_tstate aproprietaly right from the start.
Fixes PR sparc64/20675.
Many thanks to Paul Kranenburg for hints on a similar problem he fixed
for the sparc port.
2004-01-16 12:42:41 +00:00
dyoung
dee4867ed0
Compute tags for *.[sS]' instead of
*.s', only.
2004-01-16 10:08:42 +00:00
martin
c89e32bbcc
Minor comment fix.
2004-01-16 09:10:10 +00:00
mrg
23884e8622
clean up a little:
...
- delete ktrsyscall32()
- add a check #ifdef _LP64 to do the conversion if P_32 is set to the
standard ktrsyscall()
- add a couple of similar _LP64/P_32 checks to the systrace code.
this should get systrace working for 32 bit apps as well as complete
ktrace support for "trace_enter/trace_exit" using platforms such as amd64.
XXX: systrace isn't supported on sparc64 currently... (it doesn't use
trace_enter/trace_exit, or have it's own calls to systrace_xxx()...)
2004-01-16 05:03:02 +00:00
mrg
273220e38e
call ktrsyscall32() for 64 bit kernels and 32 bit syscalls.
2004-01-15 14:57:20 +00:00
mrg
1d9c8161a0
begin to implement some ifreq ioctls... long long way to go.
2004-01-15 14:36:28 +00:00
pooka
6e2ad2392e
Remove historic remnant that treated the O2 load address as the
...
sgimips standard. Define it in the respective config file.
2004-01-15 08:53:42 +00:00
pooka
60b4d7ab8d
Replace prehistoric comment "Indy" with something a bit more current
2004-01-15 08:46:31 +00:00
pooka
f78de077a8
The O2 has a PCI slot, add opencrypto.
...
Brush up some comments a bit while in here.
2004-01-15 08:45:12 +00:00
matt
8ef4267baa
Netwinders don't have PCI slots so you can't crypto devices to them.
2004-01-14 23:17:59 +00:00
jonathan
abb59e6f0c
Add support for opencrypto, PCI accelerators to sys/arch/*/conf/GENERIC
...
files for machines I know to have genuine PCI slots. As sent to tech-kern
for feedback in December 2003. Based on feedback, opencrypto is commented
out in the macppc GENERIC (due to absense of GENERIC_SOFTINT support),
and added to the sparc64 config (sys/arch/sparc64/conf/GENERIC32).
2004-01-14 22:29:03 +00:00
tsutsui
ca7e52eb4f
Preserve kernel symbol table not only #if defined(DDB) but
...
also #if NKSYMS > 0 || defined(LKM).
Should fix port-macppc/21742.
2004-01-14 14:08:40 +00:00
yamt
d113fe51e0
spllower: lower spl before checking pending interrupts.
...
otherwise, interrupts happened immediately after the check might be left
pending for a while. (until the next tick in the worse case.)
2004-01-14 11:41:27 +00:00
yamt
7246e2cc80
issue memory read barrier for BUS_DMASYNC_POSTREAD operation.
...
PR/21665 from Stephan Uphoff.
2004-01-14 11:31:55 +00:00
yamt
6125e101f7
remove a duplicated definition of MDP_USEDFPU.
2004-01-14 11:29:40 +00:00
he
9730086e9d
Copy code from iq80321 / ixp425:
...
Use __insn_barrier() to prevent the compiler reordering splx/splraise
relative to the code they're supposed to protect.
2004-01-13 23:18:54 +00:00
nathanw
6eea658635
Adjust the DEBUG check in PMAP_ISACTIVE() to special-case process
...
exit, since the invariant it checks no longer holds there after the
recent reaper changes.
2004-01-13 18:50:40 +00:00
sekiya
58a060c797
Assign memory controller-dependent watchdog reset functions to
...
platform.watchdog_reset.
2004-01-13 14:31:37 +00:00
sekiya
986c9703a5
Switch DMA sync function initializer to _bus_dmamap_sync_mips3 to keep things
...
aligned with previous MIPS1/MIPS3 differentiation.
2004-01-13 14:30:43 +00:00
sekiya
4598391267
The watchdog timer is a function of the memory controller on all SGI platforms.
...
Add to the machine struct.
2004-01-13 14:18:56 +00:00
sekiya
ffc95bbe6e
As the platform-specific bus reset routine varies based on the memory
...
controller used, set it in the memory controller driver rather than the
platform init code.
2004-01-13 13:05:17 +00:00
sekiya
e5d4293223
Call sgimips_bus_dma_init() in mach_init to set up the proper MIPS1/MIPS3
...
bus_dma_sync() routine.
2004-01-13 12:57:24 +00:00
sekiya
9c531ea057
Add IP12 subtypes. From Steve Rumble.
2004-01-13 12:30:23 +00:00
sekiya
8507d232d3
Add a call to ip1x_init().
2004-01-13 05:51:07 +00:00
sekiya
a72de90260
Implement bus routines for MIPS1 processors. Originally from Steve Rumble,
...
massaged by pooka@.
2004-01-13 05:47:09 +00:00
petrov
704586c08c
Fix 32bit kernel build, pointed by Juergen Hannken-Illjes.
2004-01-12 21:16:01 +00:00