Commit Graph

44253 Commits

Author SHA1 Message Date
jdc
06da305240 We don't need the cpu_startup() prototype here. It is already provided by
sys/systm.h.  Pointed out by skrll@.
2006-12-22 18:00:19 +00:00
elad
3d11477c94 Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.

Update documentation and example secmodel code.
2006-12-22 11:13:21 +00:00
rumble
e42e4bd92a EEPROM and LED controls occupy the same byte. Unify them again. 2006-12-22 08:35:46 +00:00
rumble
121e1e9bfa Provide attaching hpc devices with the eeprom contents, should a chip be
connected to the HPC. The only real reason for doing this is to get the
mac addresses off of E++ ethernet boards and the Challenge S IOPLUS board.
If no eeprom is present, we read in invalid data and take some default
action (query ARCBIOS).
2006-12-22 08:17:14 +00:00
rumble
5e86516f78 Sprinkle static. 2006-12-22 05:26:01 +00:00
rumble
b8f12e0261 Rework detecting the HPC revision. In most cases we can presume what it is
based on mach_type (or at least know the major revision). The only case we
really need to concern ourselves with is differentiating between HPC1
and HPC3 on IP22. Specifically, between a HPC3 on the Challenge S IOPLUS
board and a HPC1.5-based adapter in an Indy.
2006-12-22 05:08:56 +00:00
rumble
fe14643cc2 Fix previous by including the necessary header. 2006-12-22 01:36:24 +00:00
rumble
d5df315486 Remove superfluous extern declarations; they're already in the headers. 2006-12-22 01:34:20 +00:00
rumble
af1144f245 Guiness -> Guinness. 2006-12-22 01:32:37 +00:00
rumble
2ae0b89234 Codenames for IP12 and IP20. 2006-12-22 01:26:44 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
simonb
a236c92fa8 Fix a tyop, and a few other little punctuation nits while here. 2006-12-19 01:13:05 +00:00
gdt
38eac16b69 Use agp_machdep.c from the new location (x86, not i386). 2006-12-18 20:07:36 +00:00
nonaka
964e61ba35 compile again. 2006-12-18 15:32:10 +00:00
nonaka
751c643773 Bump up SYMTAB_SPACE. 2006-12-18 15:31:30 +00:00
nonaka
405a97b628 Fix evbarm compile again. 2006-12-18 15:30:56 +00:00
nonaka
225dafea20 cosmetic 2006-12-18 13:50:58 +00:00
nonaka
9dc4fd032d Remove unused files. 2006-12-18 13:36:47 +00:00
christos
03f66b5764 Moved from i386/pci/agp_machdep.c; from Blair Sadewitz 2006-12-18 12:11:33 +00:00
christos
75cde65fed move to x86/pci/agp_machdep.c from Blair Sadewitz 2006-12-18 12:10:42 +00:00
christos
8e5125c9ca Attach agp too. 2006-12-18 12:07:40 +00:00
skrll
03c2b891e6 Update uvm_grow to support stacks that grow upwards.
Use on hppa and fix a bug in the hppa trap handler.
2006-12-18 09:39:14 +00:00
ad
f48eb2511b __cpu_simple_unlock(): add a note about memory ordering and why this is
correct, contrary to Intel's documentation.
2006-12-18 07:34:42 +00:00
simonb
346a126e90 Handle KSEG0 addresses specifically in pmap_extract(), similar
to how other KSEG-style pmaps (alpha, sh3, sh5) do.

Add a DIAGNOSTIC panic for KSEG1 addresses (nothing should touch
uncached memory, right?)

Clean up the the pmapdebug printfs a little too (athough with
more ugly #ifdef DEBUG bits of code).
XXX: should use DPRINTF() type printfs here.


Fixes panic running regress/sys/kern/umount on MIPS platforms
reported by Martin Husemann.
2006-12-18 00:40:26 +00:00
bouyer
ea4f35dcd0 Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device.
Ported from OpenBSD by cube@, with some bus_dma fixes by me.
Tested on i386 and amd64.
2006-12-17 23:02:06 +00:00
bouyer
462dc620e3 Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.
2006-12-17 22:57:14 +00:00
macallan
b2bac7650b don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
2006-12-17 21:26:04 +00:00
peter
636b3f6446 Add zaurus. 2006-12-17 16:11:56 +00:00
peter
d2bbe532c1 Add zaurus. 2006-12-17 16:08:09 +00:00
peter
f19ed1a8fa Update from the latest Zaurus source from NONAKA Kimihiro.
- LCD screen and keyboard are working now.
- Add bootstrap loader.
2006-12-17 16:07:11 +00:00
peter
ac86e5557a Update from the latest Zaurus source from NONAKA Kimihiro.
Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
2006-12-17 16:03:33 +00:00
nonaka
4ed55699c1 Bump up SYMTAB_SPACE. 2006-12-17 10:27:33 +00:00
ober
9dd043ccd4 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:57:48 +00:00
ober
c657d4868d Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:42:42 +00:00
ober
953d3b5b66 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:17:58 +00:00
ober
d429c3dc76 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:07:52 +00:00
macallan
b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
ober
dbc112ba13 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 03:35:51 +00:00
macallan
af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00
simonb
f5b5aea261 Fix a grammatical nit near the previous typo fix.
Left the now somewhat bogus mips3_ prefixes in comments as is for now...

Thanks Pooka.
2006-12-12 12:03:45 +00:00
martin
eeb58feda1 Convert DMA memory allocation to bus_dmamem_alloc. From Dave Huang. 2006-12-12 11:46:33 +00:00
simonb
7641a1d1ad Fix a tyop in a comment. 2006-12-12 08:44:18 +00:00
yamt
b0a14e5934 - remove a static configuration, FILEASSOC_NHOOKS. do it dynamically instead.
- make fileassoc_t a pointer and remove FILEASSOC_INVAL.
- clean up kern_fileassoc.c.  unify duplicated code.
- unexport fileassoc_init using RUN_ONCE(9).
- plug memory leaks in fileassoc_file_delete and fileassoc_table_delete.
- always call callbacks, regardless of the value of the associated data.

ok'ed by elad.
2006-12-11 15:24:27 +00:00
tsutsui
5a004f99ec Reduce diffs between GENERIC and INSTALL. 2006-12-11 14:49:12 +00:00
macallan
35a2b63b90 actually change the sample rate when asked to.
Fix provided by Marco Trillo in PR35204
While there also enable 24bit I/O.
2006-12-11 02:17:53 +00:00
macallan
610ea4a4c0 don't issue ADB commands if there's no adb node.
This should fix spontaneous poweroffs seen on PowerBooks that have no ADB
(last generation PBG4 which have only USB)
needs testing on more machines
2006-12-10 19:28:12 +00:00
kiyohara
3871190271 Add definition the HWUART (and NSSP). 2006-12-10 12:46:48 +00:00
scw
92bdf64528 Repeat after me: Compile/Test before commit. 2006-12-10 10:30:55 +00:00
scw
94359b8f74 Ditch the messy "disk access" polling code. There was no way to
determine accurately which LED to illuminate.

Instead, hook into the PCI[ABC] interrupt chains (used solely for the
USB controller) and use the disk1/disk2 LEDS to indicate general USB
activity.

Use the "Ready/Status" LED as a CPU activity indicator by hooking the
TMR0 interrupt and illuminating the LED if the CPU is non-idle.
2006-12-10 10:23:37 +00:00
scw
b95de082ef Add watchdog and NPE Ethernet support. The latter is not well tested
on IXDP425 since the PHYs fail to probe my board. This may be due to
an incompatibility between the stepping A0 CPU and the microcode.

Additionally, the MAC addresses are not configured by Redboot, so more
work is needed in this area.
2006-12-10 10:12:22 +00:00
scw
9a59c269b4 Add NPE Ethernet and watchdog support.
Ethernet is enabled by default, but will be non-functional without
a microcode image from Intel. See arch/arm/xscale/ixp425-fw.README.
2006-12-10 10:08:05 +00:00
scw
4152e66e28 Adjust watchdog reset register base. 2006-12-10 10:04:40 +00:00
scw
b9811c82af Support the IXP425 watchdog timer. 2006-12-10 10:03:22 +00:00
scw
bdea1361ab Add a port of Sam Leffler's IXP425 micro-engine support (from FreeBSD).
This is very much a work in progress. At the present time, only Ethernet
is supported.
2006-12-10 10:01:49 +00:00
uwe
00ef4640eb One missed s/printf/aprint_error/ in apmbiosattach. 2006-12-10 04:38:55 +00:00
uwe
55313d2657 Use aprint_normal for PCIBIOS_PRINTV 2006-12-10 04:17:20 +00:00
uwe
b5831015b3 For consistency use PCIBIOS_PRINTV instead of printf even under
#ifdef PCIBIOSVERBOSE.
2006-12-10 04:16:46 +00:00
uwe
71d06da6c2 Convert to use aprint_* (except PNPBIOSEVENTS code). 2006-12-10 03:20:49 +00:00
macallan
74ab06b7a7 when powering up the mediabay wait two seconds before looking for devices
Without this CDROM drives wouldn't be found when hotplugged.
2006-12-10 02:41:30 +00:00
uwe
9ee91471c3 Properly def{flag,param} all PNPBIOS* options and consolidate them in
opt_pnpbios.h.  Update DEBUG config since PNPBIOSDEBUG_VALUE requires
parameter now.
2006-12-09 22:45:26 +00:00
chs
74234c1818 don't include <sys/endian.h> when building as a host tool. 2006-12-09 22:02:24 +00:00
chs
5115829218 feed /dev/null to awk for building modedef.c (for building on solaris). 2006-12-09 22:01:01 +00:00
tsutsui
6f7d423e1a Use "options<space><tab>" 2006-12-09 12:52:16 +00:00
tsutsui
8474274d47 Add the following network devices:
- pcn at pci
- wm at pci
- makphy at mii
- rgephy at mii
- rlphy at mii
2006-12-09 12:45:35 +00:00
bouyer
8f9ec90387 Remove extra ) causing compile failure when CONS_OVERRIDE is defined.
From Hideo Masuda in PR port-xen/35217.
2006-12-09 10:37:52 +00:00
tsutsui
8c797b13b0 Add pcn(4) at pci. Tested on AlphaPC164. 2006-12-09 04:50:56 +00:00
yamt
98cfc473c8 - pass intrframe by-pointer, not by-value.
- make i386 and xen use per-cpu interrupt stack.

xen part is reviewed by Manuel Bouyer.
2006-12-08 15:05:18 +00:00
xtraeme
2a45f1f640 * Rename pnow_cpu_quirk_check() to pnow_cpu_check().
* Add another model that needs to be added into the quirk table.
* Don't iterate over the pnow_cpu_quirk array if the two signatures
  are identical.

Patch sent privately by Olaf 'Rhialto' Seibert, thanks.
2006-12-07 22:50:12 +00:00
macallan
793de63a0f add igsfb at ofbus 2006-12-07 03:11:15 +00:00
macallan
0e7f627c30 add glue for igsfb at ofbus 2006-12-07 03:10:14 +00:00
hauke
82e4e09423 Support for four nubus video cards:
Formac ProNitron 80.IVb (1024x768/8)
Relax 19" Model 200 (1024x768/8)
Apple Monochrome Video Card (640x480/1)
VillageTronic Mac Picasso 320 (up to 1920x1080/up to 24)

Nubus identifiers for Creative Solutions parallel & serial cards,
and a Becton Dickinson data acquisition card.
2006-12-06 21:21:12 +00:00
skrll
ecf6232588 Some installation fixes:
- add a ses(4) major number as the MI MAKEDEV tries to create the
	  nodes. hi elad.

	- create audio devices.

	- provide mount_kernfs and a dmesg command.

	- start sysinst automagically and fix backspace key.

Mostly prompted by David H. Gutteridge on port-hp700.
2006-12-06 10:27:00 +00:00
skrll
7e7373acc9 Enable the .note.netbsd section for hppa. 2006-12-05 16:58:11 +00:00
martin
fe8307c191 Enable the .note.netbsd section 2006-12-05 16:17:20 +00:00
elad
ca185532f5 sparc64: don't enable PaX MPROTECT by default for now.
sparc: add commented out 'FILEASSOC'.
2006-12-04 23:43:35 +00:00
tsutsui
8687a698bd Add the following network devices:
- wm* at pci?
- makphy* at mii?
- rgephy* at mii?
- rlphy* at mii?
Tested with RTL8139C, RTL8169S-32, and i82544EI on EB164.
2006-12-04 17:33:41 +00:00
dyoung
add8c1de7f Add rtw at pci to the GENERIC kernel. 2006-12-04 01:32:37 +00:00
dyoung
571fae988f Compile gre(4) into the GENERIC kernel. 2006-12-04 01:30:56 +00:00
dsl
66a1a1560d Add -DUNALIGNED_ACCESS here, libsa/dosfs.c seems to need it.
Probably it ought to come from some generic .h file, but I've no idea
which - nor if any existing define has the same effect.
In any case this saves oodles of bytes in bootxx_msdos.
2006-12-03 19:14:08 +00:00
macallan
5d88b0aa20 make /dev/openfirm work in GENERIC again 2006-12-03 04:13:55 +00:00
freza
e388b581bd Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
2006-12-02 22:18:47 +00:00
christos
6420383ae6 keep the note section 2006-12-02 04:49:37 +00:00
he
25e5748c32 Add -Os to CFLAGS, so that the boot code fits within the constraints
again.  Sorry, I've not traced why this fit in the past, or what
changed to make it not fit anymore.
2006-12-01 13:52:46 +00:00
bouyer
7b4730a29f Add ahcisata(4), a driver for AHCI 1.0 and 1.1 controllers. Tested on the sata
ports of a Intel 63xxESB chipset. Does not support NCQ yet.
2006-11-30 21:01:15 +00:00
mhitch
fd011e452f Something I've wanted to do for quite some time: while looking for the
RDSK block, check for a valid native NetBSD label.  If found, use the
NetBSD label.  When writedisklabel() gets called, if no RDB was found,
write out the native NetBSD label.  The disk won't be usable by AmigaDOS,
but is usable as a 'normal' NetBSD drive, with partition changes saved in
the disk label.
2006-11-30 05:14:24 +00:00
freza
e2db2efb2e Instead of mapping whole RAM with reserved TLB entries, map just enough
to ensure trap code will work (that is 0 upto ${endkernel}) and leave the
rest to pmap_tlbmiss(). Mapping whole physmem into the kernel wired way
too many TLB entries, see

  http://mail-index.netbsd.org/port-powerpc/2006/10/27/0000.html

for performance analysis. While there, be a bit more descriptive in
pmap_tlbmiss() comment and use macro instead of numeric constant.

OK by Simon Burge
2006-11-29 19:56:46 +00:00
tsutsui
bad6707cdd Get info of kernel symbol table from bootloader before calling consinit().
consinit() was moved before oea_init() in rev 1.136, but startsym and
endsym are not initialized at that point.
Now kernel symbols are usable (on ddb(4), ksyms(4) etc.) again on macppc.
2006-11-29 16:31:19 +00:00
drochner
9604fc283a -add two new FSB speeds from the latest Intel spec; this should fix
PR port-i386/35059 from Jaromir Dolecek
-fix rounding for another one (mostly cosmetic)
-add cache descriptor for L2 cache 4 MB 64B/line 16-way
2006-11-29 16:15:38 +00:00
drochner
93be0e3524 whitespace fix in console printout 2006-11-29 15:53:42 +00:00
xtraeme
fae6ff8d21 Add pseudo-device drvctl... needed for drvctl -p <device> to show
device properties dictionary.

IMHO this should be enabled by default in GENERIC.
2006-11-29 13:41:28 +00:00
elad
8bb202af97 Move ktrace, ptrace, systrace, and procfs to use kauth(9).
First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.
2006-11-28 17:27:09 +00:00
christos
cc00177a7d Separate -Os into COPTS; pointed out by Izumi Tsutsui. 2006-11-28 16:24:54 +00:00
christos
edc54bf23f s/COPTS/CPUFLAGS/
s/-O2 //
2006-11-28 16:15:36 +00:00
drochner
aa18e3ca8f match ICH-7M / -DH
(The watchdog doesn't reset the box for me, but it is present according
to the datasheet.)
2006-11-27 19:58:20 +00:00
skrll
6cff9cd2f4 Initialise the result rather than returning garbage. 2006-11-27 07:22:07 +00:00
tsutsui
e2e52f2716 - add working vge* at pci? and ciphy* at mii?
- remove an obsolete comment
2006-11-26 16:14:03 +00:00
bjh21
1372543b73 The ARM7500 ID is no longer a guess -- I've confirmed it on a real ARM7500. 2006-11-26 15:10:18 +00:00
cube
35d885e59a Introduce acpi_check() to inform the caller whether the acpi driver is
still enabled, as it could have been disabled through USERCONF.

Use it in amd64 and i386 mainbus code and skip all ACPI processing in case
it is disabled.
2006-11-26 12:30:05 +00:00
mhitch
f12efa62ca If no 'a' partition on initial label, create a BSDFFS 'a' partition for the
default label.  Allows creating an FFS filesystem on an unlabeled disk
without needing to use the RAW partition.  If an RDSK block is found,
reset the default label prior to processing the PART blocks.
2006-11-25 18:45:03 +00:00
mhitch
12f26b14c2 Correct spelling in comment. 2006-11-25 18:28:18 +00:00
freza
24a77a1111 PR toolchain/35105: Don't include reloc.h, instead provide R_PPC_* defines
and make R_TYPE() use them. This is more consistent with other ports, too.

Suggested by Manuel Bouyer, ok'd by Matt Thomas.
2006-11-25 18:04:33 +00:00
dsl
c68404728d Remove the firmware for a few cards - saves 70k (before compression) 2006-11-25 17:55:28 +00:00
christos
c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
elad
062d05f541 Remove dead code. __HAVE_PROCFS_MACHDEP is not defined for amd64. 2006-11-25 16:11:07 +00:00
scw
efb2b3439f Partition sizes are specified in terms of the physical sector size of the disk. 2006-11-25 13:09:14 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
riz
11f6dc7a44 Don't worry about the ELF32_MACHDEP_ENDIANNESS macro when compiling
a host tool - it's never used there.
2006-11-25 07:32:53 +00:00
wiz
5c056f6785 s/apparant/apparent/, from Zafer. 2006-11-24 22:54:47 +00:00
wiz
09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
wiz
fa34b615d2 Correct spelling of "immediate(ly)". From Zafer. 2006-11-24 21:23:07 +00:00
wiz
d6a98601a8 s/heirarchy/hierarchy/, from Zafer. 2006-11-24 21:20:05 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
christos
d8f5d5f044 fix capitalization of NetBSD; from Zapher 2006-11-24 19:38:55 +00:00
elad
8f6d3d35da Always #undef CG14_MAP_REGS, since it opens a security hole (as the comment
says) and should be used only for debugging.

Okay mouse@, christos@.
2006-11-23 19:49:41 +00:00
rpaulo
74c9505238 Add pseudo-device etherip. 2006-11-23 04:22:02 +00:00
yamt
c25123ccc5 - make several functions static.
- #if 0 out unused db_find_trace_symbols.
- add some comments.
(no functional change is intended.)
2006-11-22 13:29:03 +00:00
yamt
bcf1b9e864 - unwrap short lines.
- whitespace.
2006-11-22 12:31:51 +00:00
elad
4b316db1d1 Introduce KAUTH_REQ_MACHDEP_{ALPHA,X86}_UNMANAGEDMEM to handle access
to unmanaged memory.

These are the last two securelevel references in the MD code.
2006-11-22 12:12:51 +00:00
dsl
09cad86587 Make the install actually die when the boot code is too big (which it is).
No idea how long it has been bust for.
Other parts of this makefile are deeply sub-optimal.
2006-11-21 18:31:44 +00:00
christos
887f588c92 adjust limits takes struct proc again. 2006-11-21 15:02:18 +00:00
christos
1882355e27 From Nicolas Joly:
> It seems that 32bits programs, running under compat_netbsd32, using
> setrlimit force all other programs to have their maximum data size
> fixed at 3GB, where native 64bits apps used 8GB previously.

I tracked this one to the `netbsd32_adjust_limits()' function (called
when creating a new process under compat_netbsd32), where data and
stack limits are set without checking for shared `p_limit' structure
(p_limit->p_refcnt > 1). This explain the side effect where processes
have their limits changed when a compat_netbsd32 (or compat_linux32)
program is run.

The fix is to use `dosetrlimit()' to ensure the needed copy-on-write
behaviour for shared structure.
2006-11-21 14:32:27 +00:00
yamt
9777cce8d1 include the i386 frameasm.h rather than inlining it. 2006-11-21 07:35:01 +00:00
hauke
ee98815c38 Better make sure CLK_INTERVAL remains an integer for creative non-default
values of HZ.
2006-11-20 20:48:36 +00:00
hauke
9659017417 Add Timecounter support for mac68k, using the otherwise idle second
timer of VIA1. Passes regression/sys/kern/time regression test.

While we are here, GC leftover prototypes from MI todr integration,
and clean up clockreg.h in the light of "Guide to the Macintosh
Hardware" information.

(Reviewed and okayed by Martin Husemann)
2006-11-20 19:58:38 +00:00
erh
061923aa84 Add casts so this works with DISK_DEBUG defined. 2006-11-18 19:58:56 +00:00
tsutsui
18bff81fab Add rgephy at mii for Realtek 8169S. 2006-11-18 18:28:15 +00:00
dsl
1423b45db9 remove KERNFS it isn;t in any of the other install kernels, and mount_kernfs
isn't in the ramdisk images.
2006-11-18 16:52:57 +00:00
tsutsui
9cdb8836f5 Fix wrong prototype declarations of _spl*() functions.
Pointed out by Havard Eidnes.
XXX: should these decls be in <mips/intr.h> or <mips/locore.h>?

While here, remove "extern" keyword from function declarations.
2006-11-18 16:40:21 +00:00
tsutsui
655bb5e6f1 Remove options SOSEND_NO_LOAN. Now it's handled in mips/pmap.c. 2006-11-18 14:28:55 +00:00
tsutsui
7cb169d2dd Disable sosend_loan() in sys/kern/uipc_socket.c temporarily on CPUs
which have virtual address indexed cache and whose pmaps don't always
allow normal shared mappings even for read only pages.

In future, these pmaps should be rewritten to handle such read only
shared mappings properly like ARM pmap, but currently we just disable
sosend_loan() to avoid unnecessary uncached mappings and cache flushes
on MIPS3 CPUs, or map/unmap thrashing on SH4.

Discussed with thorpej a while ago.
2006-11-18 14:25:39 +00:00
tsutsui
fbed9c84db COPTS should have -O2 otherwise we'll get no generic optimization.
XXX: I prefer CPUFLAGS, but there isn't any conclusion yet.
2006-11-17 22:18:22 +00:00
tsutsui
44e83481b7 Defer _spl0() or _splnone() calls (which enable hardware interrupts)
from cpu_configure(9) to cpu_initclocks(9) on mips ports which use
mips3_clockintr.c:mips3_clockintr() (i.e. CPU INT5 clock) to avoid
hardclock(9) before softclock interrupt is initialized in initclocks().
This should be harmless because initclocks() is a part of configure()
in these days and there is no MI function which expects hardware
interrupts between cpu_configure(9) and cpu_initclocks(9).

Disccussed on tech-kern and port-mips.
2006-11-17 21:01:03 +00:00
macallan
aa4a0d1a02 add RADEONFB_MMAP_BARS 2006-11-17 17:01:47 +00:00
uwe
20e7821e8a Enforce correct userspace bounds in copy{in,out}str().
From Miod Vallat <miod@openbsd.org>.
2006-11-16 23:12:23 +00:00
uwe
4fb9f81ff9 Sync with sys/endian.h: s/const/__const__/ in __attribute__ 2006-11-16 23:01:16 +00:00
uwe
bd3c9477fb Bring back __unused (sed cannot tell if it's in an argument list or not). 2006-11-16 22:55:25 +00:00
oster
d4240170d8 xen_shm_errintvl is only used in the DEBUG case. Fixes build for non-DEBUG. 2006-11-16 22:38:18 +00:00
yamt
730ba489f6 xen_shm: make some variables static. 2006-11-16 05:43:47 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
drochner
1a7611ad20 since these stupid codenames are mentioned everywhere, do so for Core2
as well
2006-11-15 19:18:33 +00:00
jdolecek
7ab2ff0691 Model 15 is the 'Core 2', so let's use that instead of the default 2006-11-15 17:48:56 +00:00
uwe
13117244bf Recompile. Important fixes since the previous version (according to
my archive of commit mail):

Take DST into account when computing bi.timezone offset, so that
NetBSD gets correct time when booted in the summer.

Fix framebuffer address for Jornada 7xx machines, so that you can boot
with layouts other than "Japanese" (which happened to have the
framebuffer address in its entry).

Fix a bug where ksyms were not loaded correctly, which also caused the
kernel to not recognize detached miniroot.

Kludge required memory size calculations to compensate for partially
filled tagged pages, or kernel with certain segment sizes wouldn't
load.

[hpcarm have picked up some of these fixes in hpcboot v14 that was
compiled/committed in the meanwhile, for hpcarm only].
2006-11-14 23:20:18 +00:00
bouyer
70aa8a0541 vn_lock() the vnode we got from bdevvp(), otherwise if something else uses
this device in userland (e.g. qemu-dm when running a HVM guest), we'll reuse
the existing vnode and we'll panic in VOP_UNLOCK(). We don't have this issue
most of the time because when xbdback is the only user, we get a specfs
vnode for which locking operation are NOPs.

Thanks to Antti Kantee for spotting the missing vn_lock() in sources and
giving details about vnode locking.
2006-11-14 22:14:56 +00:00
drochner
58cf8a6614 as on i386, don't use ":=" assignments with .OBJDIR 2006-11-14 14:09:54 +00:00
drochner
ff2890767a use "=" instead of ":=" where .OBJDIR is used because it might change
later in <bsd.obj.mk>, thanks to Alan Barrett for the hint
2006-11-14 14:03:12 +00:00
he
0b108ad573 Adapt to the wsmouse_input() change where we now require the 'w' axis. 2006-11-13 09:35:34 +00:00
dyoung
fabb7d3379 Improve the tags target for i386:
Update the Atheros HAL directories.

	Don't compute tags for nonexistent assembly-language sources
	in sys/arch/i386/isa/.

	Don't echo the rm -f step.
2006-11-12 22:44:00 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv
d4e479987d Regen. Per bernd@'s instructions. 2006-11-12 09:14:32 +00:00
he
cb4c2207ba Add a netbsd-sd0 kernel, so that the corresponding gzimg can be built. 2006-11-11 23:50:54 +00:00
jld
bd403112d6 Under Xen2, timestamp updates should happen every 10ms, and a timer
event should be raised every 10ms if we're runnable.  Unfortunately,
there seems to be an intermittent bug in the hypervisor such that,
for about 1<<32 ns (~4.3s) after it manifests, every running domain
continues to run but not get its timer events and new timestamps (nor
is it preempted in favor of other domains on that CPU).  This can cause
strange behavior from our timekeeping; for example, hardclock() is never
called during this interval.

So here's a workaround: if timestamp is allegedly up to date but is more
than 40ms old (this is semi-arbitrary), the domain sets its timer to a
time in the past, which causes it to become immediately pending, and also
results in the publication of a new timestamp.
2006-11-11 23:33:12 +00:00
bouyer
a897b56088 Simplify XEN3 domU kernel config by including the XEN2 domU configs and
adding only XEN3 specific options/devices.
2006-11-11 20:00:39 +00:00
bouyer
b8f3db3eea Follow GENERIC and enable TMPFS 2006-11-11 19:34:54 +00:00
jmmv
fb3e66fdb3 Enable TMPFS by default. OK'ed by core@.
I'm leaving those platforms with few users and those whose machines are
not very powerful untouched per uwe@'s suggestion.  The port masters or
the real users of those ports are better suited to make the decision of
enabling it.
2006-11-11 19:00:16 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
bjh21
7acb866d02 All of the older COMPAT_?? options imply COMPAT_13, so there's no need to
check each one individually.
2006-11-11 16:58:04 +00:00
christos
eeedf4b2c2 convert variable allocation to constant. 2006-11-10 18:15:12 +00:00
yamt
641f2cc444 xennet_checksum_fill: remove a debug printf. 2006-11-10 11:52:49 +00:00
tsutsui
36fcb0cbe4 Add rgephy at mii and rlphy at mii.
Tested on Ultra5 with RTL8139C (not plus) and RTL8169S.
2006-11-09 15:23:42 +00:00
tsutsui
2ae6e40c03 More cleanup of sparc64 clock stuff:
- split mkclock attachment from sparc64/clock.c into dev/mkclock.c
  (now clock.s only contains clock interrupt and timecounter stuff)
- rename match/attach functions of rtc at ebus to match the device name
- update some comments around clock devices in GENERIC

No objection on port-sparc64 for a month.
2006-11-09 15:08:04 +00:00
scw
814254d821 Add an install kernel for CP3100. 2006-11-09 00:28:37 +00:00
scw
5bfa580df1 Add support for the Certance CP-3100.
"The Certance CP3100 product family provides high-end disk-to-disk-to-tape
(D2D2T) functionality for small-to-medium businesses."

To software, the unit is very similar to the IQ80321 and IQ31244 eval
boards from Intel. As such, we share almost all of their code.

Onboard hardware:
 - IOP321 XScale CPU. Core clock is 600MHz.
 - 256MB SDRAM (not sure if that's true for all)
 - Four-port Intel i31244 SATA controller. One port is connected to the
   internal disk. The remaining three are available on the back-panel.
 - Dual GigE ports on the back panel, using an Intel i82546EB controller.
 - Two Symbios Logic 53c1010 SCSI controllers, one in host mode the other
   in target mode. Both SCSI busses are available on the back panel.
   Note that NetBSD does not support SCSI target mode.
 - 8MB of NOR Flash, containing a fairly vanilla Redboot together with
   a minimal compressed Linux image.
 - Some front-panel LEDS (not supported).
 - Serial console.

Contributed by Wasabi Systems, Inc.
2006-11-08 23:49:02 +00:00
scw
d3089a454e If I80321_HPI_ENABLED is defined, add support for handling interrupts from
devices hooked up to the HPI pin.

HPIs cannot be masked at the interrupt controller; they can only be masked
by disabling IRQs in the XScale core. To deal with this, we tweak the
interrupt frame so that IRQs are disabled when the interrupt dispatcher
returns due to a masked HPI interrupt. IRQs will be re-enabled by a
subsequent splx(9).

Fortunately the only instance where HPI is used is for the console UART
on a couple of boards, so this hack does not adversely affect performance.

Contributed by Wasabi Systems.
2006-11-08 23:45:41 +00:00
rpaulo
4081961b95 Backout half of previous by popular demand. 2006-11-08 21:18:13 +00:00
rpaulo
a70745bf73 Remove MATH_EMULATE.
Add DEBUG and LOCKDEBUG. This kernel config is suited for development.
2006-11-08 16:01:50 +00:00
macallan
a6f7fc75a8 enable accelerated wsdisplay drivers 2006-11-08 05:48:43 +00:00
macallan
65d4544efe add control codes for virtual console switching
looks like I forgot to commit this ages ago...
2006-11-08 03:27:29 +00:00
macallan
4f70466a7c split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.
2006-11-08 01:25:10 +00:00
mrg
72a7dfed29 fix another uninitialised variable picked up by the gcc -O3 optimiser. 2006-11-07 10:31:31 +00:00
macallan
0bb8ed626b allow IDE DMA on Heathrow again 2006-11-07 02:23:27 +00:00
jmmv
c3429f8083 Pass a simple ELF header to ksyms_init_explicit with the minimum contents
required to initialize ksyms_hdr.  Otherwise LKMs do not work when using
ksyms_init_explicit instead of ksyms_init, as is the case of booting an
i386 kernel using Multiboot.
2006-11-06 13:35:35 +00:00
elad
66e42f0f77 XXX: use KAUTH_DEVICE_RAWIO_PASSTHRU for direct disk access here. 2006-11-05 23:00:54 +00:00
jld
e973fa550e If the timestamp is/becomes stale when computing the current system_time,
obviously shadow_system_time will need to be reread as well.
2006-11-05 10:11:55 +00:00
yamt
0f0ac5fba9 vmapbuf: don't try to modify non-lvalue. 2006-11-05 08:04:55 +00:00
jld
9253e28032 Ensure that the timestamp we use in get_tsc_offset_ns remains valid
until after we do the rdtsc; since Xen3 dynamically adjusts its idea of
the clock frequency, this is important.  (Linux and FreeBSD both do this.)
2006-11-03 12:09:46 +00:00
jld
f566d2017b "static volatile", not "volatile static". 2006-11-03 09:16:13 +00:00
tsutsui
57a0051fe5 - no need to scan zsc units in zshard(), just use passed one
- call zsc_intr_soft() directly on softintr and remove zssoft()
  (no need spltty() since it should be done in each MD handler)
2006-11-03 03:04:53 +00:00
jld
2d61afc3e7 Recycle old buffers into new rx requests when their number reaches half of
those not tied up in active mbufs, rather than half of the total number.

(Or, to more literally translate the C, when there are at least as
many buffers waiting to be reused as outstanding rx requests.)

This prevents us from dropping off the network for a while when more
than 128 of the 256 buffers are in use by mbufs, which might not be
freed for an arbitrarily long time; the remaining buffers would stack up
on the free list but not be reclaimed until enough mbufs were eventually
freed, leaving the interface unable to receive packets until then.
2006-11-03 03:03:32 +00:00
tsutsui
23c5e05646 Remove a function declaration of zssoft() which was
inside #ifndef __HAVE_GENERIC_SOFT_INTERRUPTS.
2006-11-02 20:43:30 +00:00
tsutsui
ce97c50f55 Pass zsc_softc to zshard() directly rather than searching it in zshard().
Checking all zsc units in zshard() is efficient only on ports
which share one interrupt among all zsc units, like sparc or sun3.
On such ports, zshard() is established as a handler only once.

XXX1: more other MD zs drivers should be fixed similarly.
XXX2: zsc on macppc has independent interrupts for channel A and B,
      but MI z8530sc can't handle such configuration.
2006-11-02 20:05:04 +00:00
tsutsui
5e4ac42c65 macppc always defines __HAVE_GENERIC_SOFT_INTERRUPTS,
so remove #ifdef/#ifndefs against it.
2006-11-02 19:41:34 +00:00
martin
0a67366540 Make the syscall "code" variable unsigned - we don't test for negative
values when range checking.
2006-11-01 22:37:35 +00:00
tls
bd4d319d4b Change GENERIC, GENERIC.MP, GENERIC.MPACPI, GENERIC_LAPTOP, INSTALL,
INSTALL.MP, INSTALL_LAPTOP, and DISKLESS kernels so that they are
smaller and faster by removing support for actual i386 CPUs (which
lack write protection in supervisor mode, which requires a costly
workaround) and math coprocessor emulation.  Coprocessor emulation
is retained in the LAPTOP kernels, but not in the others.  Where
it is known that a configuration cannot be run with particular CPUs
(i486 in *MP kernels) remove that support as well.  Compile all
kernels with appropriate architecture and tuning flags (reduces
size, makes things faster).  Those requiring support for machines
with i386 CPU or lacking coprocessor can use the *SMALL or *TINY
kernels.
2006-11-01 19:33:41 +00:00
xtraeme
fae505266c Use __arraycount from <sys/cdefs.h>. 2006-11-01 08:49:50 +00:00
joerg
fc0bc19fc7 Add rum(4) for newer USB Ralink devices. Obtained from OpenBSD.
Special thanks to Sepherosa Ziehau for helping debugging USB issues.
Hook up rum(4) for i386 config files.
2006-10-31 22:21:16 +00:00
thorpej
f347528e49 In the pcn driver:
- Remove the PCN_NO_PROM option.  Instead, query the am79c970-no-eeprom
  property, and read the MAC address from the CSRs if that property is TRUE.

In the ibmnws port:
- Implement device_register().
- In device_register(), set the am79c970-no-eeprom property for the
  built-in Ethernet.
2006-10-31 14:04:29 +00:00
perry
0623ef4ad5 one more time. sigh. 2006-10-31 00:23:20 +00:00
perry
8d9a6af4cd reddo the last space/tab fix *correctly* 2006-10-31 00:20:29 +00:00
perry
a3ed824965 another space tab fix 2006-10-31 00:18:12 +00:00
hauke
9d2e5c6d9c The {GENERIC,INSTALL}SBC kernel configurations are out of sync with
the vanilla ones. They are supposed to be identical to
{GENERIC,INSTALL}, apart from the different ncr5380 driver.
Instead of re-sync'ing, use a new feature of configure and just disable
the ncrscsi driver.

(Approved by Allen Briggs)
2006-10-30 19:40:47 +00:00
garbled
54ded9290c Make these files compile with -Wextra -Wno-unused 2006-10-30 17:54:29 +00:00
garbled
9d0e6979a5 Make these files compile with -Wextra -Wno-unused. 2006-10-30 17:52:12 +00:00
skrll
e231c02e1c KASSERT that the pmap_extract works in _bus_dmamap_load_buffer 2006-10-30 16:22:42 +00:00
skrll
140ca90ce5 pmap_kenter_pa the kernel and it's data structures including the kernel
stack.

Fixes the "booting from disk memory corruption bug" which was a result
of pmap_extract silently failing against a scsipi_xfer data area allocat-
ed on kernel stack in _bus_dmamap_load_buffer
2006-10-30 16:04:10 +00:00
perry
671b3fbc73 note about UFS_DIRHASH from i386, and a couple of space tab fixes 2006-10-30 12:34:22 +00:00
skrll
4663c12d85 Add some debug code. 2006-10-30 08:41:27 +00:00
skrll
c6dcde599c Whitespace fixes. 2006-10-30 08:39:04 +00:00
skrll
92df06c2d1 G/C pages_per_vm_page 2006-10-30 08:30:01 +00:00
elad
eddfaaf54c Move i386/amd64 common code (check_pa_acc()) to x86.
I didn't know what header to put the prototype in, so it's both in
i386/mem.c and amd64/mem.c; probably can be moved later.

Tested on amd64, assumed working on i386. :)

yamt@ okay
2006-10-30 00:41:26 +00:00
christos
0e5129986f fix print formatting. 2006-10-29 19:05:36 +00:00
christos
7379f78872 handle NPX_CPUID 2006-10-29 18:00:10 +00:00
christos
1fb46e1531 handle NPX_CPUID. reported by Takahiro Kambe 2006-10-29 16:11:54 +00:00
he
19b3e362f5 Work around the propagation of volatile-ness from struct to struct members.
OK'ed by nsmrtks.
2006-10-29 16:05:15 +00:00
minskim
ff7273278a Correct spelling. 2006-10-29 09:34:35 +00:00
dogcow
f7bd540aee cargo-cult copy changes from npx_isa.c so that GENERIC.MPACPI builds again.
(hi, christos!)
2006-10-29 09:24:47 +00:00
uwe
ba0408a7f5 Lift extern shb_cd declaration to the top level.
Make all routines static.
2006-10-29 02:10:12 +00:00
christos
238d204377 Make npx work on the AMD Geode LX-800 processor by short-circuiting
the npx detection code. Since exception reporting is broken,  check the
CPUID_FPU feature. This is what FreeBSD does.
2006-10-28 21:24:45 +00:00
bjh21
1aeaeb0efa When setting the FIFO preload, chose an entirely safe value rather than
using a completely bogus heuristic to guess at one.  This might cause FIFO
underruns in particularly exciting video modes, but it also makes more
boring ones work correctly.
2006-10-28 17:39:59 +00:00
garbled
3dc1c33272 Add the crypto swcrypto and veriexec psuedo devices. Also add FILEASSOC
and VERIEXEC, following elad's lead.
2006-10-27 20:37:17 +00:00
garbled
e5bff3e418 A few changes so pnpbus devices can do isadma. Note that isadma still
does not seem to work properly on prep.
2006-10-27 19:52:51 +00:00
garbled
8685914d8f Change an instance of curaddr to PHYS_TO_BUS_MEM(t, curaddr) in
_bus_dmamap_load_buffer, otherwise when attempting to DMA a buffer larger
than PAGE_SIZE on an arch where PHYS != BUS it will allways fail.
2006-10-27 19:36:15 +00:00
perry
360359b671 fix a bit of trailing whitespace, and do the space tab dance for a
couple of options so that they work well when commented out
2006-10-27 17:37:44 +00:00
uwe
523122cd3e Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers. 2006-10-27 00:08:32 +00:00
uwe
2909b42808 Fix __mcount to use bsrf to call _mcount. We know it's in the same
module (in the same file even), so we know the offset at link time and
don't need a reloc.  This kills the last text relocation in the sh3
libc.so.

While here, tweak the code slightly to put delay slots into use.
2006-10-26 23:54:28 +00:00
simonb
c7f58e7f3e Make mcount static.
Same problem as described in port-alpha/10582 by ITOH Yasufumi.
pc532 problem pointed out by Valeriy Ushakov.
2006-10-26 23:53:27 +00:00
bjh21
ed5db5831e boot_file is not used by generic NetBSD/arm code, and its type varies by
MACHINE.  Thus, move it out of <arm/bootconfig.h> and put it into
<machine/bootconfig.h> on those MACHINEs (cats, hpcarm, and shark) where
it's used outside the file in which it's defined.
2006-10-26 23:31:47 +00:00
bjh21
3191d2a481 Change the type of initarm() on OFW-based ARM systems to match other non-hpcarm
ports.  This seems sensible since all of them call it from the same locore.S.
This makes NetBSD/shark GENERIC compile.
2006-10-26 22:49:36 +00:00
bjh21
b09fd5bdb5 No need for two __KERNEL_RCSIDs. 2006-10-26 22:42:00 +00:00
elad
d70e6d1b25 Compile in Veriexec by default on some popular archs (amd64, i386, sparc64)
so it's more accessible and less of a hassle to put to use. Also enable
fileassoc(9) by default as a result, which for itself may open the door for
a lot of cool stuff. (stay tuned. :)

I recommend port masters of other archs to consider doing the same.
Personally I don't know which ports are considered more of a legacy than
in-production, so I'm leaving it for someone else for now...

No objections on tech-kern.
2006-10-26 11:48:38 +00:00
macallan
4c4d8037a9 Take into accout that SCSI controllers may attach to other things than
pci or sbus, like esp at dma.
So now my U1 can find its boot device again.
2006-10-26 00:19:44 +00:00
he
af0b64f490 Bump SYMTAB_SPACE so that it fits again. 2006-10-25 20:46:48 +00:00
he
b773aa1b24 Bump SYMTAB_SPACE so that it fits again.
Hm, this port doesn't error out the build if it doesn't...
2006-10-25 20:44:57 +00:00
jmmv
3ecc718811 Mark MULTIBOOT_SYMTAB_SPACE obsolete instead of silently removing it.
Per cube@'s suggestion.
2006-10-25 15:52:28 +00:00
jmmv
8d30a46449 Remove the usage of Multiboot's "a.out kludge" to tell the boot loader to
reserve some more space for the BSS section than the binary says.  This
trick was used to leave room after the kernel's image to copy the symbol
table following the format required by ksyms_init.  (It was also used to
workaround a bug in the physical address fields of the binary, but this has
been long fixed.)  Yes, the MULTIBOOT_SYMTAB_SPACE option goes away; yay!

Instead, copy the required data after the kernel in a way that avoids having
to reserve space and use the new ksyms_init_explicit function to avoid the
need to construct a minimal ELF image.

Fixes ksyms when using an "unpatched" GRUB (one that does not contain the
fix to honour the "a.out kludge" for ELF images, even when present) -- i.e.
ddb and lkms.  As a side effect, the new code is much clearer to read and
digest.

Closes PR port-i386/32865.
2006-10-25 13:56:15 +00:00
mrg
66365a4f3c - note that __idle_u should go away but doing so breaks things
- fix several comments to reality
- clean up the #ifdef NO_VCACHE code slightly
- use call instead of set/jmpl
- remove a couple of unnecessary stores to curlwp
2006-10-25 11:56:56 +00:00
elad
eae258eadf Use kauth(9) (device scope tty open). 2006-10-25 11:30:45 +00:00
skrll
2ec9405f64 Fix the code to deal with new gcc propagating const-ness from structs to
members. All fixups of the mcontext are done in the trapframe.
2006-10-25 11:06:02 +00:00
skrll
da3d10d5b0 Whitespace fixes. 2006-10-25 07:07:48 +00:00
he
87a71ab54f Propagate const, prompted by new gcc. 2006-10-25 07:04:13 +00:00
christos
12be2d1032 remove a bit of code and a label and explain why in a comment; no code size
change.
2006-10-24 23:41:01 +00:00
martin
f559eee297 In the INTSTACK and KSTACK_VA special case treatment in pmap_exctract,
do not add the offset to the result - the calculated PA is the right
value - not the start of the page as in the other cases.
This fixes DMA to kernel stack, and avoids "fabricating a geometry"
warnings.
2006-10-24 21:11:58 +00:00
bjh21
695ea57fe2 parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
2006-10-24 21:09:03 +00:00
bjh21
84e47229be parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
2006-10-24 21:03:13 +00:00
bjh21
65d685fe36 Use <arm/bootconfig.h>. 2006-10-24 20:39:13 +00:00
bjh21
b4dff5b189 ANSIfy, KNF, remove unnecessary includes. 2006-10-24 20:25:52 +00:00
he
9ed827d944 The new gcc propagates const-ness from structs to members, so
make local variable const as well.  Avoid writing to the now-const
variable, instead do the masking before in the trapframe register
assignment.

OK'ed by thorpej and nathanw.
2006-10-24 16:53:01 +00:00
oster
7f33898207 Fix a logic bug in the bootblock code.
OK'ed by christos@
2006-10-24 15:56:55 +00:00
mrg
4b539e3eec move a label such that it is only visible in the scopes it is used in. 2006-10-24 02:47:40 +00:00
uwe
07dcd59f52 __pmap_kpte_lookup: verify that ptp is not NULL. 2006-10-24 01:56:33 +00:00
skrll
e90404b342 - mbus_dmamap_create: remove a redundant local.
- mbus_dmamap_sync: restructure/simplify code and add our our version of
  sync_caches that does sync; syncdma; sync. This is now smaller as a
  result.
2006-10-23 21:58:52 +00:00
christos
d0545a9b43 nuke $DBG, since it contains -O2; suggested by uwe. 2006-10-23 21:57:46 +00:00
christos
3380fe7daf shrink further. 2006-10-23 21:36:47 +00:00
uwe
d8092bae40 Kill get_ascii and its alternative format, it's not very useful. We'd
better use it for something else later.  I'm also thinking of g/c'ing
the temp buffer and emit disassembly with db_printf direcly, and
get_ascii gets in the way.
2006-10-23 21:13:00 +00:00
peter
4c87aba921 Enable MI todr(9) and timecounter on hpcarm. 2006-10-23 21:12:42 +00:00
he
8a7e351ffd Constify, since the new gcc propagates constness to struct members. 2006-10-23 19:49:47 +00:00
uwe
9287c88e77 Const-poision. While here, rename the argument s/code/pc/. 2006-10-23 19:28:07 +00:00
he
8d51656fd4 Const-ness is now (by the new gcc) propagated from structs to
members, so constify so as to not lose qualification.
2006-10-23 18:58:24 +00:00
uwe
351eae3599 Be careful when fetching instruction to disassemble. Check for
unalinged address, refuse to disassemble P4 area (on-chip i/o regs),
use fusword/kcopy to fetch the instruction.
2006-10-23 18:33:56 +00:00
gson
3b3814b873 const correctness 2006-10-23 18:10:44 +00:00