Commit Graph

2013 Commits

Author SHA1 Message Date
rpaulo 64fd052c74 Add file-system PTYFS (commented out) so that people know its existence.
Ok'ed by Christos Zoulas and Hubert Feyrer.
2005-06-25 12:05:15 +00:00
thorpej 6a02aeb003 Small clean-ups before an overhaul. 2005-06-19 23:36:47 +00:00
briggs 7f01fdeb84 Rename 'ncpus' to 'sparc_ncpus' to avoid shadow warnings in m.i. code.
Also sprinkle an __UNVOLATILE() for sparc.
n.b. sparc64 'cpus' should probably be renamed to 'cpu_info_list' to
     match i386 et al.
2005-06-16 04:17:49 +00:00
tron 74088f139f Remove commented out "upa" attachments because NetBSD doesn't have a
driver for that anyway. Approved by Martin Husemann.
2005-06-15 12:57:44 +00:00
dyoung a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
snj e03ccec166 Fix typo in last. This compiles once again. 2005-06-11 08:54:35 +00:00
matt e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
tsutsui 4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
blymn b8d51f1d4b Removed verified exec major, now a MI one. 2005-06-03 13:16:02 +00:00
jdc 6fafff7c46 Remove prototypes for non-existent db_dump_buf() and db_dump_espcmd(). 2005-06-02 06:52:51 +00:00
jdc b6141d5839 Add const (catching up with additions to MI ddb code). 2005-06-01 21:05:36 +00:00
scw 8f4aee207b Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).
2005-06-01 13:01:35 +00:00
macallan 9bd3941e72 changed wsdisplay* attachment so the console display will always be
wsdisplay0
2005-06-01 12:58:13 +00:00
tron a97eb895f6 Remove attachment for the piixide(4) driver from all non-x86 kernel
configurations because Intel IDE disk controllers only exist as part
of Intel chipsets for x86 systems.
2005-05-31 22:23:52 +00:00
martin b7680d1847 Rearange slightly to avoid the use of an unitialized variable in the
(unlikely) case that we do not have any hardware clock.
2005-05-31 21:34:21 +00:00
macallan 71c7a235ad added initialization for tv in resettodr() 2005-05-31 17:34:35 +00:00
macallan 2ab2c90883 fixed a stupid typo that chained copycols to itself 2005-05-31 17:33:02 +00:00
macallan e149dd92ec added missing ffb_ras_wait() 2005-05-31 14:36:17 +00:00
christos f6b4c20f18 s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name. 2005-05-31 04:03:08 +00:00
macallan d2c9943bdd added support for virtual consoles 2005-05-31 02:48:37 +00:00
christos c7adb6dca7 - sprinkle const
- avoid shadowed variables
2005-05-31 00:53:02 +00:00
christos 962a880036 add a const and remove bogus casts. 2005-05-31 00:52:24 +00:00
christos 567dd2f4cd Deal with the fact that time is volatile and todr_*() are not. This needs
to be fixed properly.
2005-05-31 00:51:57 +00:00
christos 1a18f24f3c - sprinkle const
- avoid variable shadow
2005-05-31 00:50:28 +00:00
christos a38d2d274a sprinkle const. 2005-05-31 00:49:42 +00:00
chs b0a8a83e7b remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them. 2005-05-31 00:45:02 +00:00
martin b4a2d78c01 Adapt to constification. 2005-05-30 09:37:40 +00:00
macallan 588c5238ba fixed a bug in ffbfb_mmap to make XFree's sunffb driver work, added another
special case region for afbinit
2005-05-27 22:50:43 +00:00
martin b7de61b9b3 Rename REALWHITE to SNOWWHITE.
While there, add LIGHT versions of the other predefined colours as well.
2005-05-23 09:44:57 +00:00
martin 55cbd28f3f Use the new WSCOL_REALWHITE as default background color. 2005-05-22 20:17:09 +00:00
martin de0502e591 Just ignore (and don't fail) FBIO{S,G}CURSOR. 2005-05-15 16:41:25 +00:00
mhitch 9277bf836b Fill in fb_depth, fb_width, and fb_height in the fb_type info. XFree86 works
better now.
2005-05-13 06:33:32 +00:00
martin 21d2a323b7 Make ffb take part in the /dev/fbN circus. 2005-05-04 14:38:44 +00:00
martin d261be07a4 Ansify. 2005-05-04 10:01:32 +00:00
martin b49b573121 Use ansi function header style consistently. 2005-05-04 06:38:06 +00:00
martin b68faae566 Add wsmux and wsfont pseudo devices. 2005-05-03 14:48:52 +00:00
martin 6a4a23191b Add all missing USB stuff (from i386 GENERIC). 2005-04-29 19:41:21 +00:00
martin 82a05c7f12 Avoid returning -1 from ffb_ioctl() - we want EPASSTHROUGH or EIO. 2005-04-29 08:38:33 +00:00
martin 43e2f101d2 Use wscons/wskbd/wsmouse/wsdisplay by default. 2005-04-28 16:02:43 +00:00
matt 26330d866c Match a device_type of scsi-2 as SCSI (as found in a Netra 1405). 2005-04-28 06:22:41 +00:00
lukem 3fd1802e62 Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.
2005-04-25 15:02:02 +00:00
matt f854ad4125 For GCC3 and later, use the __builtin_va* constructs. 2005-04-20 05:15:15 +00:00
itohy d665949330 Add ukyopon(4). 2005-04-15 17:27:20 +00:00
yamt 6b2d8b66a4 merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
fvdl c487efe4a7 Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.
* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
  that will return the default VM map address. The default function
  is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
  macro. This gives emulations control over the default map address,
  and allows things to be mapped at the right address (in 32bit range)
  for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
  or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
  instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2

Tested on amd64, compile-tested on sparc64.
2005-03-26 05:12:34 +00:00
dsl 94015fc9d6 Fix convertion of seconds to nanoseconds.
Add the usec to the secs before subtracting the usec offset - otherwise
I suspect the value can do horribly wrong!
Change all T_SVR4_GETHRESTIME to return sec + nanoseconds (I've not sure
this is correct, but I doubt the 32bit emulation in a 64bit kernel should
act differently to a 32bit kernel!)
Untested - I don't even have a sparc compile setup at the moment.
2005-03-12 16:29:59 +00:00
matt a6db24a485 Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
2005-03-09 19:04:43 +00:00
martin 28b1934cb5 Make it compile for 32bit kernels. XXX - does OF realy return pointers to
64 bit entities here?
2005-03-07 22:10:14 +00:00
scw 51315622ae Undo revision 1.175 (hi jason!) to prevent a buzz-loop in
bus_dmamap_load_mbuf(). This implementation already dealt
with zero length mbufs.

Addresses port-sparc64/29473
2005-03-04 22:04:51 +00:00
martin 418c9f0372 Nuke options RASTERCONSOLE for sparc64 2005-02-25 19:16:45 +00:00