yamt
4adfbedff5
include stdlib.h for exit().
2006-07-12 13:50:23 +00:00
simonb
cc85b518f1
Remove unused ppc4xx_tlb_unpin() function.
2006-07-12 06:22:17 +00:00
yamt
eeb2c6eb23
inittodr: if xen3, add processed_system_time (system_time) to
...
shadow_tv (wc_sec/nsec) as linux guest does.
2006-07-11 12:26:58 +00:00
perry
39ddc4631d
Make sure that the remaining battery life is set to zero if the value
...
is known to be invalid. Discussed with Christos (and based on his comments).
2006-07-11 02:35:30 +00:00
gdamore
d3788a855d
New psm driver for use on Ultrabook IIi. Right now it supports the power
...
button and lid switch. I will add environmentals (battery, etc.) later.
2006-07-10 17:54:08 +00:00
thorpej
55e8bbeb6e
Put appropriate prefixes on property names to reduce chances of name
...
collisions.
2006-07-10 16:28:44 +00:00
fvdl
64d1b810eb
kern/33961: add kgdb support and remove some redundant (and incorrect) register
...
offset definitions from reg.h
2006-07-10 13:09:47 +00:00
freza
75998ff7ee
Fix recent ibm4xx/intr.c rework:
...
- Recalculate masks _after_ new interrupt handler is enqueued, otherwise
the very last one won't ever be enabled (from hannken@)
- We can't use splhigh() to protect intr_calculatemasks() since it would
use soon-to-be-invalid mask. Instead, fiddle PSL_EE directly as we do
in other places.
Reviewed and tested (evbppc/explora) by hannken@
2006-07-10 12:52:13 +00:00
christos
d957913795
Fix a bit of debugging code (from Arnaud Lacombe)
2006-07-09 21:31:40 +00:00
mlelstv
8261b32756
move and renumber bthub major to avoid conflicts with other archs
2006-07-09 18:56:35 +00:00
he
22e14a460c
Add 8k more SYMTAB_SPACE so that it fits again.
2006-07-09 16:52:54 +00:00
peter
a93b4acd14
Nit: The silicon revision level is in bits 7:4, so we must right shift
...
by 4 bits. Also removed an unneeded include.
2006-07-09 14:47:30 +00:00
christos
86c579f9d0
include files.apm
2006-07-09 06:22:32 +00:00
christos
cfa1686dee
include files.apm
2006-07-09 01:59:42 +00:00
christos
4829e29205
remove INTRDEBUG
2006-07-08 21:23:38 +00:00
christos
10b8651771
remove functions we don't use
...
and adjust to the new prototype.
2006-07-08 20:30:57 +00:00
christos
eaa95b68b5
- apm.c -> apmbios.c and s/NAPM/NAPMBIOS/
...
- adjust to new function call signatures.
2006-07-08 20:30:00 +00:00
christos
1b36a60be8
Adjust to the new apm backend.
2006-07-08 20:28:06 +00:00
ross
dd8ab8abc4
add new split personality for ELF64
2006-07-08 06:36:42 +00:00
matt
46d05ada18
Don't bcopy to 0 because gcc4 doesn't like. Instead use a structure copy
...
to 0 to do the equivalent thing. XXX this is evil.
2006-07-08 00:27:30 +00:00
matt
c266c91b24
Reorganize pmap_extract so that *pap is always set to quash gcc4
...
uninitialized use warnings.
2006-07-08 00:26:21 +00:00
matt
08f6d0142a
Make GCC3/GCC4 happy with these asms.
2006-07-08 00:25:24 +00:00
gdamore
d266f72a20
Add AR531X GPIO support. This also registers the reset button with sysmon,
...
so that when it is pressed the default reset button action (currently board
reset, no change to data in flash) is taken.
While here, remove the AR531X generic config, because it just doesn't make
sense.
2006-07-07 22:03:19 +00:00
ross
c389a93699
Add _LP64 version of _mcount for ppc64
2006-07-07 21:28:03 +00:00
ross
d08a822069
Add stmd and lmd macros.
2006-07-07 21:26:54 +00:00
yamt
fa517f1fc0
make this compilable without kernfs in the case of !DOM0OPS && XEN3.
2006-07-07 18:15:53 +00:00
yamt
aa5b46a800
xbdsize: fix an null dereference.
2006-07-07 17:59:21 +00:00
skrll
e5bd1e1629
Disable DDB_DEBUG by default
2006-07-07 09:40:54 +00:00
skrll
0fd55006fe
Fix use of user_backtrace. It takes a lwp pointer now.
2006-07-07 09:38:47 +00:00
cherry
8e4670dadf
Towards building libc/arch/ia64
2006-07-07 06:42:32 +00:00
ross
96cf233754
more refinements for ppc64 PIC/PLT/TOC issues
2006-07-06 15:26:51 +00:00
scw
5914c06c4c
Fix the entries for SPR_DC_ADR and SPR_DC_DAT.
2006-07-06 15:09:54 +00:00
bouyer
de888ac7f5
Comment out acpi0, until someone can make it compile again after the recent
...
acpi changes.
2006-07-05 17:00:46 +00:00
drochner
ff6945ed02
obey VM_PROT_EXECUTE in pmap_kenter_pa (just use protection_codes[])
2006-07-05 14:36:29 +00:00
bjh21
6431f3b2de
Descend into nbfs -- I think it's useful now.
2006-07-04 23:08:51 +00:00
bjh21
c6bb58fda2
We don't actually use NEWVERSWHAT, but we should still try to make it correct.
2006-07-04 23:08:10 +00:00
bjh21
ac8af88277
Add some definitions necessary for the latest NBFS, plus a couple of
...
functions that my boot32 hacks are likely to require.
2006-07-04 23:06:51 +00:00
bjh21
6022ed9721
Fix missing newline at end of file.
2006-07-04 22:42:11 +00:00
bjh21
b314f251e2
Add suppport for FSEntry_file 255, loading whole files. Now I can open
...
/etc/passwd in Zap.
2006-07-04 22:34:54 +00:00
christos
96c223fe5a
spell NACPI correctly.
2006-07-04 18:46:42 +00:00
christos
9f1b8cb28e
Another missed dependency.
2006-07-04 18:41:41 +00:00
martin
1a8d6cd53d
Initialize the "console screen" once - no matter if we are console or
...
not.
2006-07-04 18:14:44 +00:00
christos
a5bf930cbd
PR/33912: tron: Building GENERIC kernel fails
...
Fallout from ACPI changes.
2006-07-04 14:53:47 +00:00
he
c3480eebba
The declaration of mpacpi_active needs to be unconditional because
...
there's an unconditional use.
2006-07-04 10:05:06 +00:00
jld
3ebfa1a07d
Fix accidentally unsigned comparison, which was causing the timer event
...
handler to run ~forever in the face of slightly unexpected input from
Xen (system_time apparently going backwards). Pointed out by kardel@.
2006-07-04 07:35:28 +00:00
simonb
78877867ee
Remove some unused variables.
2006-07-04 06:25:50 +00:00
christos
01158ea892
Apply fvdl's acpi pci interrupt configuration code.
...
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI
2006-07-04 00:30:21 +00:00
skrll
4b14ca6f7c
Actually drop into ddb for unknown traps (with the right conditions)
2006-07-03 19:48:30 +00:00
cherry
daf99d36cd
towards exec(): first round at fixing USPACE
2006-07-03 17:02:56 +00:00
cherry
46c3dfbc17
misc #define cleanups
2006-07-03 17:01:45 +00:00
cherry
f0def1c53a
fix nbmake-ia64 to clean include links
2006-07-03 16:50:40 +00:00
mrg
8a3f21aea4
always include the code to lookup bootinfo for memory size. however,
...
don't use it if biosbasemem or biosextmem are non-zero. this allows
one to set these variables in /netbsd rather than a kernel rebuild with
options REALBASEMEM/REALEXTMEM, as used to be. PR#33659.
2006-07-03 01:25:33 +00:00
mrg
ba1331d1b0
don't pass unsigned char * to functions wanting char *.
2006-07-03 01:21:50 +00:00
bjh21
32bed2b7b7
Add support or FSEntry_Func 14 and FSEntry_Func 15, which seem to be the
...
important directory-listing entry points.
2006-07-02 22:06:16 +00:00
bjh21
1b0f046ee7
Define LIBSA_NO_TWIDDLE, since NBFS really shouldn't twiddle().
2006-07-02 22:05:07 +00:00
bjh21
7ec4d05a27
Add a *NBFS command to select NBFS as current filing system.
2006-07-02 22:03:23 +00:00
bouyer
2707ad28d9
Add a kernel config file for Xen3 Dom0, built as part or i386 release.
2006-07-02 21:28:39 +00:00
bouyer
a2847deb82
Fix a bogus gcc4 uninitialized warning.
2006-07-02 18:54:25 +00:00
cherry
2d00b8d1f2
nits
2006-07-02 17:28:11 +00:00
cherry
efe41d02f0
trying MFS for ski FS
2006-07-02 17:23:59 +00:00
bouyer
b96fedac26
block device backend driver for Xen3. Add
...
pseudo-device xbdback
in your config file to use.
2006-07-02 16:35:24 +00:00
bouyer
3fc47e70cc
Fix a off by one error in xstart_mmu[] that would cause bad corruption
...
when handling full batch of requests.
Linux expects to have 16 btyes free between the start of the RX buffer and the
start of the packet, handle this.
Get rid of the "hotplug-status" hack, we now have proper tools to deal with
it in userland.
Various minor fixes and code reorg.
2006-07-02 16:32:49 +00:00
bouyer
9b4c2c6758
m_copyback() doesn't adjust m->m_len if the data to copy is smaller than
...
the mbuf's size. Set it to a proper value before calling m_copyback().
This should fix panics in m_makewritable() reported by several peoples.
While there, add MCLAIM() calls where appropriate, a few more #ifdef DEBUG
checks, and various minor fixes.
2006-07-02 16:29:49 +00:00
tsutsui
344bead7dc
Rearrange DELAY() macro to use an asm statement so that we'll get more
...
proper delay.
2006-07-02 11:24:43 +00:00
tsutsui
8fa9dbf439
Remove sc_table[] decl, which is in device.h.
2006-07-02 11:10:28 +00:00
tsutsui
8fee3d1ece
Use a volatile variable in DELAY() macro so that gcc4 won't omit it.
...
Fixes output corruption on DCA console boot.
XXX some mips ports have the similar macro in <machine/param.h>.
2006-07-02 10:40:25 +00:00
jdc
94f3432c06
PCI device list and interrupt mapping for JavaStation Espresso.
...
Interrupt line values from Linux sparc sources.
2006-07-02 10:14:15 +00:00
tsutsui
554727189c
Use register macro defined in <dev/ic/i8259reg.h>.
2006-07-02 04:22:38 +00:00
christos
2e36d566f6
If we the current process is a kernel proc, then we don't need to play with
...
the pmap, because the wakecode is already mapped. Makes the acpi based apm
shim work.
2006-07-01 21:42:39 +00:00
ross
db9b461644
Add ppc64 ENTRY() macro that defines the descriptor and the dot symbol.
2006-07-01 20:34:49 +00:00
xtraeme
22b2e63617
Add commented out it(4) entry, per suggestion in PR kern/33886.
2006-07-01 19:55:32 +00:00
tsutsui
e50565f96a
No need to install autoconf.h.
2006-07-01 17:33:25 +00:00
tsutsui
3eb4d24002
No need to export autoconf.h to userland.
2006-07-01 17:24:19 +00:00
tsutsui
06801cfcf5
Remove obsolete display.h.
2006-07-01 17:19:39 +00:00
tsutsui
0b60e69029
Use MI <dev/ic/pcdisplay.h> rather than MD <machine/display.h>.
2006-07-01 17:15:46 +00:00
nakayama
401d23b252
Uncomment "midi* at midibus?" to make umidi work.
2006-07-01 15:19:32 +00:00
jmmv
ce9f9820ee
Fix order of biosbasemem and biosextmem order in a comment to match reality.
...
Closes PR kern/32082 by Dave J. Barnes.
2006-07-01 09:21:28 +00:00
mrg
5bf1ad3744
fix pointer signedness and build with GCC4.
2006-07-01 05:55:34 +00:00
ross
5a664ca53d
Map powerpc64 to powerpc
2006-07-01 01:29:55 +00:00
freza
78037d3f6d
Bring ibm4xx interrupt code up to date:
...
- generic soft interrupts (ie. use powerpc/softintr.c)
- interrupt event counters (using the ones from powerpc/cpu.h:cpu_info
where appropriate)
- cleanup ibm4xx_intr.h, move implementation details to intr.c
Convert all affected evbppc platforms.
OK by simonb@, some points discussed with matt@
2006-06-30 17:54:50 +00:00
tsutsui
1c1d619cf7
Regen from GENERIC.in rev 1.53:
...
> Add CARP to further platforms
2006-06-30 10:54:09 +00:00
tsutsui
62040eebd7
Add (commented out) pseudo-device carp.
2006-06-30 10:51:46 +00:00
tsutsui
90c32d008c
Sync with GENERIC (commented out UDF, carp, VND_COMPRESSION, and veriexec)
2006-06-30 10:48:57 +00:00
tsutsui
bc766890f7
Make GENERIC config really generic and change GENERIC32 config for 32 bit
...
compat kernel to include the GENERIC and use "no" keywords of config(1).
Also merge std.sparc64-64 into std.sparc64 and prepare std.sparc64-32
which uses "no" keywords for 32 bit kernels. OK'ed by mrg.
2006-06-30 10:27:48 +00:00
garbled
793a3b26d8
Change how the MPIC/OpenPIC is configured at boot. Rather than scanning
...
for a magical PCI device location (that is sometimes wrong), we scan the
residual data for an MPIC, and if we find one, wire it up from there.
This will hopefully allow interrupts to work on the MPC750 and the
7025-F40. I suspect however the interrupt vector address on the 7025 will
still need some work.
2006-06-29 17:16:59 +00:00
martin
e61efdcd34
Style nits from Christos.
2006-06-29 16:12:27 +00:00
martin
e7c025db82
The arguments to syscalls (struct args) need 64 bit alignment for some
...
syscalls (like mmap), and the same is true for return values (lseek).
Make both structs a union to force alignment. Thanks to uwe for helping
analyze this!
While there move the non syscall-related functions out of this file
(back to trap.c).
This makes kernels compiled with gcc4 and -Os work.
2006-06-29 15:05:06 +00:00
liamjfoy
d00a9ac91b
Add CARP to further platforms
...
ok christos, julian coleman and matthew green
2006-06-29 14:00:55 +00:00
lukem
7a08c82b0b
whitespace cleanup
2006-06-29 06:39:38 +00:00
lukem
e84a5a6bd9
Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks.
2006-06-29 06:37:19 +00:00
lukem
accbe31e2f
support MAKEVERBOSE
2006-06-29 06:31:12 +00:00
lukem
005d886d08
whitespace cleanup.
2006-06-29 06:29:39 +00:00
lukem
419dfdd76b
Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks.
2006-06-29 06:24:50 +00:00
lukem
d315681443
Support MAKEVERBOSE
2006-06-29 03:46:43 +00:00
lukem
0de20fdaf1
Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
2006-06-29 03:38:24 +00:00
lukem
1e9eece03f
support MAKEVERBOSE
2006-06-29 01:45:03 +00:00
lukem
aa161fb130
Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
2006-06-29 01:28:33 +00:00
lukem
3358af6498
support MAKEVERBOSE
2006-06-29 00:30:32 +00:00
lukem
9969942b49
Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
2006-06-29 00:28:30 +00:00
he
34485a4327
Make devsw non-static to match libsa/stand.h.
2006-06-28 22:22:50 +00:00
martin
378dec2fe2
Align the size and alignment of label_t (kernel jmp_buf equivalent)
...
with the use in setjmp/longjmp. Duh!
This makes DDB work again on sparc kernels compiled with gcc4.
2006-06-28 20:55:45 +00:00
tsutsui
17e0f13ac0
Sync with GENERIC:
...
> Add CARP to GENERIC kernel configs. CARP is not enabled by default.
2006-06-28 18:11:18 +00:00
he
6117af14a1
Fix a build problem ('kernel_l1pt.pv_va may be used uninitialized').
2006-06-28 18:10:13 +00:00
lukem
18f00f5cff
support MAKEVERBOSE
2006-06-28 16:28:51 +00:00
lukem
78538138b4
Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
2006-06-28 16:27:27 +00:00
lukem
b231a333f6
more MAKEVERBOSE
2006-06-28 16:24:08 +00:00
lukem
0b18a2cbf7
support MAKEVERBOSE
2006-06-28 16:23:24 +00:00
lukem
dcf5685dbf
Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
2006-06-28 16:20:42 +00:00
liamjfoy
aeee5deab9
Add CARP to GENERIC kernel configs. CARP is not enabled by default.
...
ok: christos
2006-06-28 15:19:27 +00:00
tsutsui
12b8371e3a
Remove extern decls for static variables.
2006-06-28 09:55:08 +00:00
lukem
b1abc055c0
support MAKEVERBOSE
2006-06-28 09:27:17 +00:00
lukem
b03adcaa93
Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
2006-06-28 02:20:44 +00:00
garbled
d0b840b1df
General fixups:
...
1) Fix support for the powerstack E1. This machine needs to use the 8259
directly, and cannot use the prep interrupt vector register. Place a
quirk entry in the table for the machine.
2) Add a new com0_vreset boot image. The vreset code only works on a few
machines, and breaks others like the 7025-F40. Its only limitedly useful
when used with the com0, so just make it an optional image the user can
install by hand if they want.
3) Bump the bootloader to 1.8 with the above change.
2006-06-27 23:26:13 +00:00
he
22d1eb4faa
Fix a build problem ('kernel_l1pt.pv_va may be used uninitialized').
2006-06-27 23:02:04 +00:00
peter
0c9a60ff27
Hide the bit invertion/shifting of values received from and send to the MCU
...
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
2006-06-27 14:36:50 +00:00
peter
7d389a2c21
Invert the brightness/contrast values so that higher values will
...
give more brightness/contrast instead of less.
No objection on port-hpcarm.
2006-06-27 14:18:00 +00:00
peter
a92b58da31
KNF. Correct some spelling errors.
2006-06-27 13:58:08 +00:00
peter
d6a89fc155
"AUTHOR" is really meant here, not "REGENTS".
...
Eleminate some use of #ifdef SED_DEBUG.
2006-06-27 13:30:19 +00:00
peter
257aff65b2
Minor KNF, correct some comments.
2006-06-27 13:26:44 +00:00
tsutsui
b9927f2311
Remove static from devsw[] declaration since it's declared as extern
...
in <lib/libsa/stand.h>.
2006-06-27 11:12:57 +00:00
tsutsui
267074cf60
- fix signed/unsigned mismatch
...
- fix lvalue cast
2006-06-27 11:07:17 +00:00
peter
5fb2d42e80
Use symbolic constants for the UART register locations.
...
Consistently write "SA-11x0".
2006-06-27 11:01:41 +00:00
tsutsui
762bb578e9
Include <stdlib.h> for exit(3) prototype.
2006-06-27 10:55:16 +00:00
tsutsui
d03388424c
volatile void func(decl) -> void func(decl) __attribute__((__noreturn__))
...
to appease gcc4.
2006-06-27 10:53:11 +00:00
peter
72b6ac7a94
Add a symbolic constant for the Infrared Communications Port.
2006-06-27 10:45:06 +00:00
tsutsui
c4a04b7ba4
Backout previous since there is an objection and I'm not a toolchain guy.
2006-06-27 09:22:30 +00:00
he
b1682c2909
Make use of -Wno-pointer-sign conditional on HAVE_GCC > 3, and include
...
<bsd.own.mk> so that HAVE_GCC is appropriately defined.
2006-06-27 06:37:26 +00:00
mrg
6294d76e22
fix the swap16/swap32 macros to actually swap the argument,
...
not discard the swapped value.
2006-06-26 19:48:41 +00:00
drochner
e7c88abe60
Better explicitely specify the "ki2c" interface attribute,
...
so that the "config_found" can't hit "i2cbus".
Up to now, this relied on the fact that the i2cbus and ki2c
attach args both had a string as first element which was used
to distinguish. Now, interface attributes should take care
that attach arguments are not misinterpreted.
2006-06-26 18:37:53 +00:00
drochner
a3464e1d27
use the "i2cbus" interface attribute rather than putting a string name
...
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
kiyohara
409c2af88f
Add lmtemp(4).
2006-06-26 16:20:50 +00:00
christos
ff147f9d5b
define PC_ADVANCE to avoid a LHS cast which makes gcc4 unhappy.
...
From Kurt Schreiner
2006-06-26 14:11:29 +00:00
christos
29c1a4c22e
GCC4 fixes from Mike Pumford
2006-06-25 21:32:39 +00:00
bouyer
9e9d09bf73
Use the right test for ring full condition. Avoid an infinite loop when the
...
ring is full (because the domU is in ddb for example).
2006-06-25 19:46:52 +00:00
bouyer
58af96f414
Don't loop forever if we receive a packet while the interface is down.
2006-06-25 18:34:09 +00:00
bouyer
65918da968
DTRT when the number of grants to map or unmap is more than one.
2006-06-25 18:03:49 +00:00
tsutsui
1cf7251d79
- use (uint8_t *) for scsi buffers
...
- u_char -> uint8_t for byte data
- use proper type variable
2006-06-25 17:40:14 +00:00
tsutsui
c06815799e
Use (uint8_t *) to specify buffers for hpib xfers.
2006-06-25 17:37:43 +00:00
tsutsui
5845cc2e3c
Fix unsigned/signed mismatch.
2006-06-25 17:35:12 +00:00
tsutsui
6d0b292e48
- move declaration for sc_table from samachdep.h to device.h
...
- include <lib/libsa/stand.h> from samachdep.h for struct fs_ops
- remove unneeded declarations from samachdep.h
2006-06-25 17:34:30 +00:00
tsutsui
eec8d4d1e5
Make some local functions static.
2006-06-25 16:52:01 +00:00
bouyer
2613e19eec
Add a 'base' argument to xenbus_read_ul, so that we can read number is base
...
other than 10.
2006-06-25 16:46:59 +00:00
tsutsui
0aa05e92ff
Remove unused struct abus stuff.
2006-06-25 16:46:15 +00:00
tsutsui
d71cfc62f0
Make some local functions static.
2006-06-25 16:44:02 +00:00
tsutsui
6e1a8fe413
- make a local variable static
...
- remove struct user dumppcb, which is declared in mips_machdep.c
2006-06-25 16:29:14 +00:00
tsutsui
82f68c0092
Rename arc_trap.c to interrupt.c, which derived from ancient pica_trap.c
...
but currently contains only interrupt stuff. Ok'ed by soda.
2006-06-25 16:11:41 +00:00
bouyer
22247e56e0
Adapt for new xen_shm_* signatures.
...
While here add more xenbus_dev_fatal() calls for some failure cases.
2006-06-25 15:20:39 +00:00
bouyer
b063155744
Allow xen_shm_map() to map multiple grants in a contigous virtual address
...
space.
While here garbage-collect unused xen_shm_vaddr2ma()
2006-06-25 15:18:53 +00:00
lukem
6e749ba167
Use ${TOOL_STAT} to get the size, instead of ls | tr | cut.
2006-06-25 15:01:00 +00:00
lukem
186054d0dd
Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
2006-06-25 14:49:32 +00:00
lukem
4c28e73199
Use -Wl,-Ttext,foo instead of -Ttext foo when using $(CC)
2006-06-25 14:35:18 +00:00
lukem
8c4a6c51bf
whitespace consistency
2006-06-25 14:24:53 +00:00
tsutsui
45e77c51c9
XXX: Appease gcc4 -Wuninitialized warnings.
2006-06-25 14:19:56 +00:00
tsutsui
da091c39ed
Fix "warning: matching constraint does not allow a register" on gcc4.
...
(I guess constraints "0-9" are valid only for register operands, right?)
2006-06-25 14:17:40 +00:00
tsutsui
0099b09a49
Remove unused extern variable declarations. Noticed by gcc4.
2006-06-25 14:14:18 +00:00
lukem
51c3e093dc
Use LDFLAGS (with $(CC) syntax) instead of appending to LD.
2006-06-25 14:12:14 +00:00
lukem
9073aac5f2
Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
2006-06-25 13:36:26 +00:00
kiyohara
383a50d6cd
Supoort read/write word.
2006-06-25 13:32:16 +00:00
mrg
f71386cb37
-fwritable-strings is not valid for GCC4.
2006-06-25 05:12:29 +00:00
mrg
404c14b93f
apply -Wno-pointer-sign and -fno-strict-aliasing.
2006-06-25 05:11:42 +00:00
soren
07b847aa9a
Add quirk for the not quite standard PCI bus in Parallels Desktop for Mac.
2006-06-25 03:46:56 +00:00
tsutsui
f2e4550a60
Implement separate statclock(9) handler which uses the MIPS3 CPU INT5
...
internal timer compare register. Based on hp300 and arm implementation.
This is enabled by options ENABLE_INT5_STATCLOCK, but disabled by default.
2006-06-24 04:00:21 +00:00
tsutsui
2a8a21a021
Misc minor cleanup for arc interrupt handlers:
...
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
register in cpu_intr() to make CLKF_BASE() works
properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers
okay'ed by soda.
Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
2006-06-24 03:50:38 +00:00
tsutsui
648df6ea96
Pass sed command path to asm2gas via environment
...
rather than arg. ok'ed by gdamore.
2006-06-24 03:28:42 +00:00
garbled
17ca05a76f
1) Modify pnpbus attachment code to properly decode pnp memory range packets.
...
2) Modify pnpbus attachment code to record the chipid of the device if it
has one.
3) Change the clock probes to use the chipid, rather than relying on
potentially untrustworthy subtype and interface.
4) Add decoding of memory ranges to the RESIDUAL_DUMP code.
5) Add a we@pnpbus device to allow netbooting and root device detection
from an IBM we ethernet. (it will only work if your firmware detects it)
6) Because I moved the pnpbus probe to occur prior to pci and isa, it
screwed up the root device detection and firmware path building code.
Completely rewrite the fw-path detection code to deal with this.
2006-06-23 03:08:41 +00:00
jmcneill
f86d875a7a
Add an 'uninit' callback to PCI ICU drivers. This allows (for example) the
...
PIIX support to release its mapping on the edge/level control registers.
Now that these are guaranteed to be unmapped, capture and restore the
registers in piixpcib(4)'s powerhook. The same will need to be done on a
per-chipset basis.
Concerns were raised about calling pci_intr_fixup on resume WRT hotplug
devices, so this has been removed.
Ok cube@.
2006-06-22 16:24:34 +00:00
jmcneill
58e47b4c68
Only call pci_intr_fixup if both PCI_INTR_FIXUP and PCIBIOS options are
...
defined.
2006-06-22 13:05:28 +00:00
garbled
4c0cfa49ad
Attach the pnpbus prior to attaching the pci bus on the prep. This
...
should allow us to probe for both pnp-attached devices and isa-attached
devices while preferring the pnpbus attachment point.
2006-06-21 20:08:11 +00:00
jmcneill
c6b709de73
Call pci_intr_fixup on resume if options PCI_INTR_FIXUP is enabled. Solves
...
interrupt sharing issues on my Vaio PCG-Z505LEK after a suspend/resume
cycle.
2006-06-21 18:12:47 +00:00
jmcneill
287d6c5cf2
Allow pci_intr_fixup() to be called more than once.
2006-06-21 18:10:51 +00:00
rjs
74327480d3
Rename shadowing time variable.
2006-06-21 00:02:26 +00:00
jmcneill
92a6d96206
Regen.
2006-06-20 22:37:14 +00:00
jmcneill
93305d7b62
Make resetting the video BIOS in the ACPI wakecode optional. It can be
...
configured via sysctl machdep.acpi_vbios_reset. Defaults to 1 -- reset vbios
on resume.
2006-06-20 22:36:58 +00:00
drochner
5fea743b13
add license texts (public domain for hw header, minimal BSD for sw)
...
so that this stuff can be used by others
2006-06-20 20:30:22 +00:00
is
d6a3b8fecd
Fix typo in comment
2006-06-20 19:57:32 +00:00
garbled
cb76e8b6d7
Update install WRT recent clock changes, and break INSTALL into INSTALL
...
and INSTALL_SMALL. Since floppy images have to fit on one floppy, we
have to really cut down on the drivers on that image, but people
netbooting don't have that problem, so they deserve a more featured
kernel to install with. (namely one with raid support and more ethernet
drivers)
2006-06-20 17:29:07 +00:00
gdamore
1c8dd20510
Use portable | cat 1>&2 instead of > /dev/stderr. This allows this script
...
to work, and supports building on Solaris 10.
Reviewed/approved by jlam@.
2006-06-20 15:35:03 +00:00
skrll
86bff00eef
Enable installation of ia64 includes - mostly from cherry.
2006-06-20 15:26:19 +00:00
garbled
1efe96e909
Basic prep timecounter support. This greatly increases the stability of
...
ntp on my 7248, however, my 7043-140 is still a bit flaky. I suspect the
only way to fix the 7043 is going to be writing a timecounter driver for
the 8254 present on these machines. Either way, this makes some of the
machines better, and the other machines are still about the same as they
were before, so it's a net gain for the port.
2006-06-20 05:49:09 +00:00
jdc
4e27372d03
Add support to the 2nd stage boot loader for booting from RAID
...
partitions. We do this by checking the NetBSD label to see if the
boot partition is of type RAID. If so, we offset reads from the
disk so that the kernel image can be read.
Note that with this code, sun4 machines (with PROM monitor) will only
boot from RAID if the RAID partition is the first one on the disk.
Tested on a SPARCstation 20, a SPARCstation 2 and a 4/330.
2006-06-20 05:41:59 +00:00
christos
18b73e414c
Don't allocate too much stuff on the stack.
2006-06-20 03:22:12 +00:00
rpaulo
6c7e5e5535
Enable altq for macppc.
2006-06-19 21:36:56 +00:00
gdamore
a5c89047c0
Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
...
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.
The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.
Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
jmcneill
3c27eb63b5
cube@ says that acpi_pci_fixup() only writes in devices interrupt line
...
registers, so restore the PCI-ISA bridge IRQ routing here again.
2006-06-19 10:08:16 +00:00
hannken
835f09ae96
db_stack_trace_print(): Enable backtrace with pid argument.
...
Approved by: Martin Husemann <martin@netbsd.org>
2006-06-19 08:44:45 +00:00
jmcneill
6df1267b6f
Enable interrupts in the error path also.
2006-06-19 02:33:19 +00:00
jmcneill
dda9d480db
Don't try to fixup PCI interrupt routing here; we're going to use ACPI to
...
do this for us instead. This prevents us from having to write chipset
specific support -- yay!
2006-06-19 02:30:35 +00:00
nonaka
3b9b5a75bb
Added 'Low Voltage Intel Pentium M processor 1.30 GHz' entry.
2006-06-18 16:39:56 +00:00
xtraeme
0b27695a68
Fix AMD 766 PMC entry.
2006-06-18 10:34:34 +00:00
xtraeme
9552b18ed1
Match the following products:
...
* SIS 962 and SIS 963
* AMD 766 and AMD 768
* ALI M1533
... syncing the code with openbsd.
2006-06-18 09:57:37 +00:00
xtraeme
c8a267e9c8
Sync with openbsd and apply fix from mickey@openbsd rev 1.5:
...
"It seems that via has 7, not 4 pci interrupt lines.
this fixes unmapped interrupts on some via-based boards."
2006-06-18 09:55:11 +00:00
gdamore
ef3a65883d
Fix to make this cross compile on Solaris. (Don't include sys/endian.h
...
if HAVE_NBTOOL_CONFIG_H is defined.)
2006-06-18 05:53:51 +00:00
gdamore
5b4951cdf4
Use TOOL_SED for asm2gas, which makes it possible to cross-compile this
...
on Solaris 10. (Solaris 10's sed doesn't like the comment lines, and
also complains about too many commands in the input.)
2006-06-18 05:21:21 +00:00
christos
99d15da99a
Don't dick with cr3. It pisses pmap.c off.
2006-06-17 20:14:26 +00:00
mrg
911a6956b3
add another GCC4 uninitialised variable warning. it only shows with -O3.
2006-06-17 19:00:03 +00:00
jmcneill
e1b3711024
More ACPI wakecode changes:
...
* Enable VBIOS hack by default
* Beep while calling VBIOS, for debugging.
* Fix a DIAGNOSTIC error in the sleep path.
* Remove the erroneous mutex not locked error message.
2006-06-17 17:11:53 +00:00
simonb
62496a150d
LCD and PCMCIA address info is chip-specific and not board-specific.
...
Remove them from here.
2006-06-17 14:42:54 +00:00
tsutsui
0d19f25f87
Fix typo and a function name in panic message.
2006-06-17 14:11:16 +00:00
tsutsui
0b8cd19c9e
Remove extern from function declarations.
2006-06-17 14:10:28 +00:00
rjs
58b3f82903
Rename IPL_IMP to IPL_VM, needed for CardBus support.
2006-06-17 12:44:52 +00:00