Commit Graph

176733 Commits

Author SHA1 Message Date
rtr b198a0fd79 regen for christos_time_t merge 2009-01-12 11:53:23 +00:00
tsutsui 69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
tsutsui ab4ced3e93 Uset uint64_t rather than (signed) long to read the PCC register. 2009-01-12 11:04:00 +00:00
tsutsui c959ad2698 Fix getsecs() to return more proper values:
- use not only second but also minute and hour registers
- use bcdtobin() to read mkclock registers
2009-01-12 11:00:49 +00:00
dogcow a217648bf2 more shared library major number bumps. 2009-01-12 10:01:33 +00:00
tsutsui 6945dc39ed Move declarations into a common header. 2009-01-12 09:41:58 +00:00
dholland dbfa1570e7 Fix blatantly wrong exposition of .WAIT example.
PR bin/40372 from Gao Ya'nan.
2009-01-12 09:28:10 +00:00
cegger ce06928cbd use PRI macro formats to printf type dev_t 2009-01-12 08:55:48 +00:00
sborrill 1916312e0f Return ENOENT instead of panicking when irq doesn't equal line
(mpacpi_findintr_linkdev: irq mismatch). This doesn't fix the cause of
kern/38540, but stops the bogus panic. It's pretty definite that the device
with the mismatched irq will not function.
----------------------------------------------------------------------
2009-01-12 08:36:36 +00:00
cegger 2846a218fe use PRIu64 format to printf DISKPART 2009-01-12 08:33:02 +00:00
cegger 942939bc67 use PRIu64 format to printf major() value 2009-01-12 08:30:38 +00:00
cegger e3ea11974a cast to char to printf DISKPART
XXX Shouldn't sun3 use the MI drivers instead?
2009-01-12 08:27:26 +00:00
cegger cc49ee3c57 use PRIu64 format to printf major() and minor() values 2009-01-12 08:22:37 +00:00
cegger da1cef7418 cast to char to printf DISKPART 2009-01-12 08:16:27 +00:00
cegger 7bff66c0b7 use PRIu64 format to printf major() and minor() values 2009-01-12 08:12:46 +00:00
tsutsui 27d0a967bd Enable and fix prototype warnings. 2009-01-12 08:06:54 +00:00
cegger 7a0ccae4d3 use PRIx64 format to printf type dev_t 2009-01-12 07:57:55 +00:00
tsutsui 5af0a1dff0 - WARNSfy
- make sure machine and ${MACHIN_ARCH} symlinks are always created
- several tweaks to allow build without installed DESTDIR
2009-01-12 07:56:31 +00:00
tsutsui 7704306fc5 Warning options should be in CFLAGS, not CPPFLAGS. 2009-01-12 07:51:02 +00:00
tsutsui e7cdb2297e WARNSfy 2009-01-12 07:49:57 +00:00
tsutsui e46a73d2df - WARNSfy
- make sure machine and ${MACHINE_ARCH} symlinks are always created
- add incpath to AFLAGS too for build without DESTDIR
2009-01-12 07:47:47 +00:00
tsutsui b4d6984248 - WARNSfy
- add src/common/dist/zlib to incpath for build without DESTDIR
2009-01-12 07:45:24 +00:00
tsutsui 9eb4d00797 - WARNSfy
- make sure machine and ${MACHIN_ARCH} symlinks are always created
- add src/common/dist/zlib to INCPATH and remove unnecessary options
- remove -I${DESTDIR}/usr/include from INCPATH
2009-01-12 07:42:30 +00:00
tsutsui 1ab746642d Use WARNS=2 rather than WARNS=4 since it's too strict for MI libsa yet. 2009-01-12 07:32:32 +00:00
tsutsui edb2ee0c90 WARNSfy 2009-01-12 07:29:23 +00:00
tsutsui 395163339e - add some make variables to suppress errors on build without DESTDIR
- make sure machine and ${MACHINE_ARCH} symlinks are always created
2009-01-12 07:25:39 +00:00
tsutsui c2aee7cf41 Make sure machine and ${MACHINE_ARCH} symlinks are always created. 2009-01-12 07:23:59 +00:00
tsutsui 2a366090a5 Add some make variables to suppress errors on build without DESTDIR. 2009-01-12 07:20:35 +00:00
tsutsui b49b722d36 Create machine and ${MAHCINE_ARCH} symlinks in ${.OBJDIR}
to allow build without DESTDIR.
2009-01-12 07:19:08 +00:00
tsutsui 1ab507751d - add prototype warning options
- catch up changes for common powerpc/stand/mkbootimage

XXX: daily build for rs6000 should be enabled on releng server?
2009-01-12 07:16:17 +00:00
tsutsui 3c9b771cc4 - add prototype warning options
- add some make variables to suppress errors on build without DESTDIR
2009-01-12 07:12:17 +00:00
tsutsui 5df57d7d96 WARNSfy 2009-01-12 07:10:13 +00:00
tsutsui 2f2cc7f39b Use <machine/stdarg.h> rather than <stdarg.h> to allow build without DESTDIR. 2009-01-12 07:07:07 +00:00
tsutsui ffe0121899 WARNSfy 2009-01-12 07:05:22 +00:00
tsutsui fe0dea612e WARNSfy. 2009-01-12 07:00:59 +00:00
tsutsui befa8bb5df Add parantheses to macro to suppress possible compiler warnings. 2009-01-12 06:53:39 +00:00
tsutsui c264741e4c Enable prototype warning options. 2009-01-12 06:50:31 +00:00
mhitch 609c3d84c1 Retain compatibility with old firm_event. Old Xamiga binary now works with
-current kernel.
2009-01-12 03:18:26 +00:00
pooka 367deb8e0a Use userspace version unless _HARDKERNEL. Otherwise we use atomic
cas to implement spinlocks and spinlocks to implement atomic cas....
which might suck.

Since the userspace version uses ll/sc, which doesn't exist on
R2000/R3000, rump will not work on those platforms.  *snif* (well,
pthread in general AFAICT).
2009-01-12 03:05:10 +00:00
pooka 654753c2e1 include sys/param.h for _HARDKERNEL instead of homegrown def. 2009-01-12 02:53:29 +00:00
pooka 4bfd645c6b .. and finally, we need __ASSEMBLER__ instead of _LOCORE, since we
might want this header from userspace assembly files as well.
2009-01-12 02:51:30 +00:00
christos 47e43241e2 protect kernel inline with _KERNEL 2009-01-12 02:26:16 +00:00
pooka ceca66166d * Add adapted version of the userspace atomic_cas ops for platforms
lacking special instructions.  We always use the spinlocked version
  (could use RAS on UP NetBSD host, but it's not portable).
* Add platform-based symbol quirk tables for selectively not renaming
  toolchain symbols for some platforms.  Although, this should really
  depend on the (toolchain,platform)-tuple and not just the platform.

This allows arm, hppa, mips and sh3 to build succesfully with an
isolated rump kernel namespace.  ... now, one arch remains: vax.
you must compile vax.  then, only then will you MI be.
2009-01-12 02:22:55 +00:00
pooka 0f1f70a3d7 Shove in some hppa love to help with spcopy.S (why does that need
to be in libkern?).
2009-01-12 02:04:35 +00:00
christos b34c1a567e s/set/get/ 2009-01-11 23:55:25 +00:00
christos ced9088db5 retain compatibility with old firm_event. Perhaps we should bump the protocol
version with an ioctl?
2009-01-11 23:36:39 +00:00
cegger 9273b33558 use PRI format macros to printf major and minor values 2009-01-11 23:27:47 +00:00
cegger b4fe900840 adaption for making kgdb_dev a dev_t 2009-01-11 23:20:37 +00:00
jnemeth 1cdebf7e1f got a couple wrong 2009-01-11 23:14:53 +00:00
mhitch 6ebe2c3a6d Compat a.out stat structures also need to use u_int32_t dev_t. 2009-01-11 22:54:16 +00:00