Commit Graph

26 Commits

Author SHA1 Message Date
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +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
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
uwe 4a0ed35f45 The real libkern.h now uses "long long" that eVC has no clue about.
Instead of polluting libkern.h with ifdefs introduce our own private
copy.  Since AFAICT we only need it for libsa/ufs.c which only
includes it for the strlen() prototype, trim it to provide just that
for now.

We cannot just #include <string.h> (the WinCE one) here, as that pulls
in a lot of unrelated stuff, e.g. defines for limits that collide with
machine/limits.h
2006-10-18 01:39:01 +00:00
uwe 61e8b62888 off_t should be a signed type. 2006-03-05 03:22:20 +00:00
uwe 49d024e12e Sync with <sys/endian.h>.
Ifdef out ntohl &co defined for little-endian via bswap* - use system versions.
2006-03-05 03:14:53 +00:00
uwe 7482e67f96 Provide uintN_t typedefs. Provide u_intN_t as compatibility typedefs.
Use uintN_t to define other types.
2006-01-14 21:35:26 +00:00
uwe fd533d6baf Kill trailing whitespace in local comment. 2006-01-14 21:17:37 +00:00
uwe d89c00702d Sync with <sys/endian.h>. 2006-01-14 21:15:53 +00:00
perry 50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry 5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
uwe a7f79da340 Our <sys/endian.h> is no longer compilable with eVC3 and probably
other old WinCE compilers because they don't grok ULL constant suffix.
Instead of polluting sys/endian.h with WinCE compatibility ugliness,
pull a copy here, so that we can hack it privately.
2005-05-11 16:44:45 +00:00
uch 32b3027515 clean up whitespace. 2004-08-06 18:33:09 +00:00
uch 4ce277b80f make hpcboot compile again. 2004-06-10 18:35:26 +00:00
uwe 2adc0e696d Make sure that overzealous definition of __packed in <sys/cdefs.h>
doesn't break compilation with Microsoft compilers. Push/pop #pragma pack
around <sys/bootblock.h>.
2004-04-26 22:27:43 +00:00
uwe e9b7546ec1 <machine/cdefs.h> is included by <sys/cdefs.h>, so there's no point
in including <sys/cdefs.h> from <machine/cdefs.h> again.
2004-04-26 22:14:55 +00:00
uwe ad370cb0ff Provide dummy machine/mcontext.h. 2003-12-17 06:17:03 +00:00
uwe 6854a82ca1 Add btodb() define. 2003-12-16 18:59:10 +00:00
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
uch 6edf1a4018 bootinfo.h, config_hook.h, platid.h are moved to hpc/include 2002-02-01 18:16:03 +00:00
uch 69ed217599 ANSIfy, KNF. 2001-09-27 16:31:23 +00:00
uch a9cd2901fd add wrapper header for integer types. 2001-04-30 13:41:32 +00:00
uch 0d9b26cd0e make this compile on WCE200 SDK 2001-03-04 16:59:47 +00:00
uch 9173eae73b bootloader for SH3, SA-1100, TX39, VR41 based Windows CE(2.00 or later) 2001-02-09 18:34:01 +00:00