Commit Graph

189 Commits

Author SHA1 Message Date
uwe 0ed7ecdd91 G/c unused "hdc" variable. 2004-02-27 04:22:26 +00:00
uwe c45485b3de Forgot to call ReleaseDC(). 2004-02-27 04:20:38 +00:00
uwe c23bdf5200 On winder HPC screens use wider Boot/Cancel buttons that looks better. 2004-02-27 03:53:33 +00:00
uwe 6212a368a7 Make sure the root window always has focus, so that hpcboot can be
operated using only the keyboard.  It should now be possible to boot
NetBSD on HPC devices with broken touchscreens.
2004-02-27 03:23:12 +00:00
uwe d6be11a58d Use realsize() to determine the size of the miniroot image.
It's now possible to boot from gzipped miniroots.
2004-02-27 02:02:16 +00:00
uwe 318e48690d Implement realsize() method. For gzipped files it reports the
uncompressed file size.
2004-02-27 02:00:32 +00:00
uwe 0294b2b99a WinCE 2.11 doesn't support keyboard focus traversal for nested
dialogs, so implement poor man keyboard focus manager.  The goal is to
make it possible to use hpcboot on HPC devices with broken touch
screen.  (TODO: Make sure that when the window is activated, there is
a focused control).
2004-02-23 05:20:48 +00:00
uwe 9f2e9e23a0 Update the root window after showing the 'Last chance...' dialog. 2004-01-02 12:13:36 +00:00
uwe 2e00e2438d If "pause before boot" is not set (i.e. user will not be given last
chance to cancel the boot), give user a hint by using MB_ICONWARNING
for the "Are you sure?" dialog.
2003-12-25 03:44:11 +00:00
uwe 376514e2fe Lowercase labels of the "Boot" and "Cancel" buttons.
Init progress bar step/position in ProgressBar::create.

Specify WS_EX_CLIENTEDGE style for the progress bar, an empty gray
area between the buttons looks stupid.  With 3d edge a user has a hint
there's a progress bar there.  While here, make it PBS_SMOOTH, it
looks nicer that way.
2003-12-25 03:19:53 +00:00
uwe a766825ba3 Trim trailing whitespace. 2003-12-23 17:22:20 +00:00
uwe 37536630d1 Make the progress bar use the whole width between the Boot and Cancel
buttons.  Since there are 11 calls to menu.progress() in hpcboot, set
the progress bar range to 0..11, not 0..12.

In RootWindow::WMCreate - when we mean to adjust the top of the client
are by the button height, use _button_height, instead of cmdbar_height
(they now happen to be equal).
2003-12-23 17:18:25 +00:00
uwe 0c9676c97b Set meaningful error_message is attachLoader fails.
Tweak the way we set "default" error_message.
2003-12-23 16:50:22 +00:00
uwe 55cc78e064 Trim trailing whitespace. 2003-12-23 16:26:48 +00:00
uwe 780ccfc58e Move IDC_OPT_AUTO_INPUT after IDC_OPT_AUTO to get the expected tab-order. 2003-12-23 16:25:35 +00:00
uwe 849e108215 Reverse the order of IDC_CONS_CHK* checkboxes so that they have
"expected" left-to-right Tab-order.
2003-12-23 15:37:11 +00:00
uwe 15cd36d7f0 Widen the "root file system" group to line up with the controls above it. 2003-12-23 15:29:36 +00:00
uwe 789be11611 In MainTabWindow::layout don't touch the Z-order of IDC_MAIN_OPTION_*
controls as this has a nasty side effect of messing the Tab-order as
well.
2003-12-23 15:24:26 +00:00
uwe 734ce0e5ab Trim trailing whitespace. 2003-12-23 15:10:01 +00:00
uwe f35f57125f Do not replace the boot log text completely on every print - that
causes horrible flicker.  Instead append it and scroll to the caret.
2003-12-23 15:08:33 +00:00
uwe c87372b749 Load ".symtab" section before ".strtab". The code to pack the symbol
table (kern_ksyms.c:addsymtab) relies on that order.
2003-12-23 04:59:44 +00:00
uwe 36fce64101 Call UpdateWindow after user responded to the safety message dialog,
so that the window can repaint areas damaged by the dialog before the
message pump is stopped while the boot is in progress.
2003-12-23 04:41:13 +00:00
uwe 816df014fc Oops, add braces forgotten in 1.8. 2003-12-23 03:18:13 +00:00
uwe e769028e50 Fix indentation in previous. 2003-12-21 03:22:20 +00:00
uwe f94c4399a5 Move progress bar management to rootwindow.cpp so that hpcmenu.cpp
doesn't need to know about the GUI hierarchy, etc.

If boot is aborted, rewind the progress bar.
2003-12-21 03:18:31 +00:00
uwe 53680504af Add MB_ICONQUESTION style to the message box. 2003-12-18 12:34:10 +00:00
uwe d3dfc4c864 Add MB_ICONWARNING style to the message box. Use explicit MB_OK. 2003-12-18 12:25:03 +00:00
uwe e696bfb83c Tweak error message. 2003-12-18 12:21:36 +00:00
uwe 545bd4c3b1 Add MB_ICON* styles to message boxes. Use explicit MB_OK.
Capitalize messages.   Minor tweaks.
2003-12-18 12:18:53 +00:00
uwe f578e43dec Capitalize error messages. Consistently use "can't". Minor tweaks. 2003-12-18 12:15:40 +00:00
uwe 8b377aad68 Add MB_ICONEXCLAMATION style to the "Last chance..." dialog. Change
the text to "Push YES...", because that's a Yes/No dialog, not Ok/Cancel.
If the user cancels the boot, set error_message appropriately.

Add MB_ICONERROR style to the "BOOT FAILED" dialog.  Explicitly make
it MB_OK, don't rely on the numerology.
2003-12-18 00:00:19 +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
uwe 2b3e06be32 Add directory "res" to INCDIR_LIST and drop the "res/" prefix from
#include's in hpcmenu.rc.  This makes it possible to open hpcmenu.rc
in the eVC resource editor.
2003-12-16 18:23:36 +00:00
uwe 5f83499620 Protect __KERNEL_RCSID with #if !defined(_WIN32) for the sake of
hpcboot.exe, that uses this file too.  Compiling for WinCE defeats the
logic in cdefs_aout.h.
2003-12-16 17:16:43 +00:00
uwe a8250ce937 Drop adler32.c from SRCFILE_LIST, it's no longer in sys/lib/libz. 2003-12-16 15:26:37 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +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
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem 0c82163c78 __KERNEL_RCSID() 2003-07-15 02:29:24 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
thorpej e43fecb228 Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
lukem cd93af5dd7 use "rm -f $@ ; ln -s ... $@" instead of "ln -sf ... $@" 2003-05-04 06:36:37 +00:00
wiz 1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
dsl d91455ce26 Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
uwe 01b7788331 Constify second argument of table_getnum(). 2003-04-23 03:45:07 +00:00
uwe 5d8b485cc8 Fix dump_node() prototype. 2003-04-23 03:42:21 +00:00
bouyer aec10dd80c Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00