Commit Graph

83 Commits

Author SHA1 Message Date
christos cb5e99c661 centralize vers.c building for standalone programs. 2017-04-08 19:53:19 +00:00
christos a09909492f Avoid the PIE 2016-09-08 14:36:13 +00:00
kamil f874bd0561 Improve spelling: regsiter -> register
This change is non-functional.

Approved by <riastradh>, <pgoyette>
2015-07-11 10:32:45 +00:00
matt 51fbf67f6b Always build for mips3. Use -Os instead -O2 for smallest code size.
text goes from 74608 to 63020
2015-06-23 20:54:43 +00:00
matt 4564c35ee8 #include <mips/cpuregs.h> 2015-06-23 20:27:28 +00:00
christos c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
christos 487e3c0732 need clock_subr.h for bcdtobin() 2014-11-21 00:51:09 +00:00
apb 71da667fc9 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
2014-08-05 15:40:58 +00:00
joerg 12176f429c GC found. 2014-04-03 18:49:52 +00:00
joerg d2572f20dc Avoid type pruning. 2014-04-03 18:49:41 +00:00
apb a452d8c9e2 Pass the -n flag to gzip invocations.
This prevents it from embedding a timestamp in the output.  We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
2014-01-27 21:37:17 +00:00
christos 2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
tsutsui 8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
mrg e296792cca don't set MACHINE_ARCH. the CPUFLAGS/etc. is enough, and otherwise this
doesn't work with an isolated $TOOLDIR from the mipse[lb] toolchain.
2011-07-10 08:42:55 +00:00
matt 2c145d887d Use TOOL_GZIP 2011-07-09 15:50:38 +00:00
mrg cbb4a4007a avoid pointer aliasing issues 2011-07-07 06:01:51 +00:00
matt c9fc40b4be Merge forward from matt-nb5-mips64.
(XXX generic kernels on raq2 die after interrupts are enabled but gxemul
works fine).
2011-02-20 07:54:10 +00:00
rmind 9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
joerg 3c550524b5 Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh.  Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
2011-01-22 19:19:14 +00:00
he b8e5234fe3 Include <sys/param.h> for howmany() definition.
OK'ed by tsutsui@.
2010-07-11 17:09:27 +00:00
dholland 5ef6a33bb9 Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
2010-05-27 06:58:12 +00:00
tsutsui e8b9338c3b Use -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
in debug printf()s.
2010-01-19 15:28:51 +00:00
tsutsui f204082a1d Add support for LBA48 read command to standalone wdc/wd driver.
Thanks to bouyer@ for comments about LBA48 boundary checks.

Tested on:
> Cobalt Qube 2700
> wd0 at atabus0 drive 0: <Hitachi HDS721616PLA380>
> wd0: 153 GB, 319120 cyl, 16 head, 63 sec, 512 bytes/sect x 321672960 sectors
via SATA-IDE converter, and NetBSD partition allocated at:
> 1: NetBSD (sysid 169)
>     start 293603940, size 28069020 (13706 MB, Cyls 18276-20023/54/63)

Also bump version.
2010-01-10 16:20:45 +00:00
tsutsui a65bdadc93 Make these compile with -D_DEBUG (use proper printf types). 2010-01-10 09:34:45 +00:00
matt 271741bef7 Make cobalt build again. 2009-12-16 19:01:24 +00:00
tsutsui e11af9c1e6 Use <bsd.klinks.mk> for MD include dir symlinks. 2009-03-15 10:47:59 +00:00
dsl 02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +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 8578fbdffa - also put a boot failure message to LCD
- fix botched (and unused) macro
- use struct lcd_message consistently
2008-05-29 14:25:00 +00:00
tsutsui 0e88f65e18 Print boot banner and a loading kernel name onto LCD,
for users who don't have serial console.  Bump version.
2008-05-28 14:04:07 +00:00
tsutsui b87210fa51 Normalize my licenses. 2008-05-14 13:29:27 +00:00
tsutsui e04f8f6085 On netboot specify only FS_OPS(nfs) explicitly for file_system[] fs_ops.
Trying block device fs_ops like ext2fs on netboot could be problematic
on some conditions since not all libsa functions handle errors properly.
2008-05-13 14:26:20 +00:00
tsutsui 416b7a7683 Remove an unused extern declaration. 2008-05-13 14:20:58 +00:00
tsutsui 1a8652c79c - reorganize com console code
- remove unused functions
2008-04-29 15:24:50 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui 4f64b6719d Use macro defined in <machine/cpu.h> for cobalt_id and device addresses etc.
since <machine/leds.h> has been removed.
Also remove redundant address definitions in Makefile and local headers.
Pointed out by dieter roelants.
2008-03-23 17:19:57 +00:00
tsutsui 49576266b9 Add support for optional Z85C30 serial console on Cobalt Qube 2700.
Bump version.
2008-03-16 10:10:43 +00:00
tsutsui c828b4e601 Add more wait after sending a setup packet since
21041 on Qube 2700 seems to require more setup time.
2008-03-16 09:38:17 +00:00
tsutsui 590ed564a8 WARNSfy 2008-03-02 06:17:41 +00:00
tsutsui 069af26195 Misc fixes to support 21041 on Qube2700:
- prepare two TX descriptors to avoid race and also use chaind mode
- use a recently added pcicfgread() function to get tulip I/O address
- use cobalt model id to see if we have 21041 or 21143
  (XXX maybe it's better to see PCI product ID)
- add code to reset SIA on 21041
- prepare and send filter setup packet on init
- reduce delay in RX polling
- bump version again

Now netboot works fine on Qube 2700 (even without console). Yay.
2008-03-01 20:39:25 +00:00
tsutsui 7c2a00cd44 Rename some variables to sync with original sandpoint's one. 2008-03-01 20:24:25 +00:00
tsutsui 8b1c40bc08 Split out a PCI configuration space read function into a separate file
so that we could use it in other sources.
2008-03-01 18:13:02 +00:00
tsutsui c85e5be217 - print cobalt model names in boot banner
- bump version.
2008-03-01 17:45:11 +00:00
tsutsui 06c8e3f473 cnscan() should return -1 (no input) if there is no console device.
Now wd boot works on Qube2700 (which doesn't have serial console).
2008-03-01 05:15:31 +00:00
tsutsui 636d4f1ae2 Account bi_size properly. 2008-01-31 17:38:56 +00:00
tsutsui 71921eec1b Use __arraycount(). 2007-12-02 05:36:46 +00:00
tsutsui 59777a7842 Add ext2fs support. 2007-12-01 18:13:16 +00:00
tsutsui a65243be7c Include both ffsv1 and ffsv2 supports. 2007-12-01 17:05:11 +00:00
tsutsui a0220d0607 - use chaned mode for RX descs and allocate only one desc per each cacheline
to avoid possible race condition between CPU writeback vs DMA write
- remove unnecessary FS and LS bits from RxD->xd0
  (sys/dev/ic/tulipvar.h sets them but maybe they are ignored?)
2007-10-31 13:30:46 +00:00