Commit Graph

317 Commits

Author SHA1 Message Date
uwe
d9f3e59eb8 zlib doesn't care about __daddr_t.
Nothing cares about __signed.
Move common/dist/zlib up in the list of include dirs.
2006-01-18 00:11:27 +00:00
uwe
2565c191eb Remove duplicate CPPDEF_LIST. 2006-01-17 23:39:53 +00:00
uwe
589b108660 Nuke libsa and libkern defines from here. 2006-01-17 03:32:10 +00:00
uwe
c498580cc6 Adapt to new zlib. Get rid of proxy zlib.h, we supply proper "-I".
Implement zcalloc/zfree in terms of WinCE functions.
2006-01-17 03:12:29 +00:00
uwe
b674645e95 New zlib doesn't use bzero, so we don't need this hack any more. 2006-01-17 03:09:04 +00:00
uwe
75ad327e11 New zlib is smart enough to not include <errno.h> under WinCE, so this
empty fake one is no longer necessary (old zlib could also do without
one if supplied -DNO_ERRNO_H).
2006-01-17 03:07:19 +00:00
uwe
0d1e222eff Hide plutid_dump() under #ifdef PLATID_TEST. Saves space in the
kernel and avoids printf dependency for hpcboot.
While here, constify its first argument.
2006-01-17 02:50:59 +00:00
uwe
4f6e1f3b52 Adjust to new zlib location. 2006-01-17 02:40:55 +00:00
uwe
d619e0824c Loader::_load_memory - don't give up so easily if memsz > tagged page
size.  This makes ksyms work, constructed ELF header was too big to
fit into one tagged page.

As a side effect it makes detached miniroot work too, as to locate the
miniroot the symbol table must be correctly skipped.  We probably
should just pass that information in bootinfo.
2006-01-15 02:20:35 +00:00
uwe
24aae33317 Add missing \n in a debug printf. 2006-01-15 00:07:49 +00:00
uwe
053de0d06e Get rid of an unused variable in Loader::_load_memory.
Add whitespace between = sign and casts, while there use uint32_t in
those casts.
2006-01-15 00:06:39 +00:00
uwe
dfe0035af2 Prettify debug messages about ksyms block. 2006-01-14 23:23:32 +00:00
uwe
58488e09fe Make debug message about zeroed areas look like the one for loaded areas. 2006-01-14 23:22: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
75d8bdf000 XXX: kludge around constification fallout.
No way I'm dealing with constification of C++ code!
2005-07-12 23:21:54 +00:00
he
b3331ee3d4 Add const to the name argument of __dbg_bit_print(). 2005-06-07 12:02:04 +00:00
uwe
1760382cc8 Constify as -Wcast-qual seyeth. 2005-05-31 22:45:04 +00:00
uwe
73c9c64f6c Declare platid_name() to return const.
Revert previous kludge, we can return string literal now.
2005-05-31 22:43:09 +00:00
uwe
87d1a94219 Make "name" in struct platid_name const.
Declare platid_name() to return pointer to const.
2005-05-31 22:41:28 +00:00
uwe
c7e2bd07b6 Don't return string literal from a function that is not declared to
return const.

XXX: Kludge for now, I don't want to deal with the fallout, especially
as this code is also compile for Windows CE (hpcboot.exe).
2005-05-31 22:36:12 +00:00
uwe
e7b971967b Avoid naming function parameters "platid", there's a global variable
of that name.
2005-05-31 22:28:49 +00:00
uwe
883b52e989 Cosmetic changes: drop unnecessary final semicolons, consistently use
spaces on both sides of the pipeline operator, indent argument list
continued on the next line.
2005-05-12 15:19:48 +00:00
uwe
a0961c993f Refer to WinCE development tools by their official names. 2005-05-12 11:18:46 +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
uwe
dd8f6af73b When cleaning, remove hpcboot/res/hpcmenu.aps (created when you browse
resources in eVC3), and libsa/libsa.vcl and libz/libz.vcl.
2005-05-11 15:00:49 +00:00
uwe
840914104a Mark resources as language neutral, so that language is not picked
from the complation environment.
2005-05-11 14:19:36 +00:00
uwe
bca43dba34 Use L"" Unicode syntax for Japanese strings, so that Japanese name for
"Memory Card" is not mangled when compiling in non-Japanese environment.
2005-05-11 13:59:27 +00:00
uwe
5e3aaf765f All Jornada 7xx machines have the framebuffer at the same address, so
just use a single wildcard entry for them.  Should fix the bug, that
7xx machines could be booted only using "Japanese" entry (b/c it was
the only one with the framebuffer info).
2005-02-27 18:35:08 +00:00
uwe
2ddba96151 Take DST into account when computing bi.timezone offset. 2005-02-27 18:25:02 +00:00
uwe
e9fd18895b Regen for Compaq Aero 8000 and Jornada 680/690 with Spanish keyboard. 2005-01-11 01:05:32 +00:00
uwe
2a292865c4 Add Compaq Aero 8000 (requested by Linux folks).
Add Jornada 680/690 with Spanish keyboard.
2005-01-11 01:03:42 +00:00
abs
964859d895 Fix comments regarding configration bounaries 2004-12-12 21:03:06 +00:00
uch
9d15e929e7 recompile. 2004-08-13 15:52:28 +00:00
uch
5adb2fdc5d add WCE101 and WCE200 binary install target. 2004-08-13 15:51:45 +00:00
uch
986311dca4 add SH7707 2004-08-13 15:50:09 +00:00
uch
e659dc81a4 fix debug print. 2004-08-13 15:49:37 +00:00
uch
abe2d7cbc7 regen. 2004-08-13 15:49:13 +00:00
uch
7ee4f55250 add SH7707 and HP360LX. add HCAJ and HCVJ group for Sharp Telios 2004-08-13 15:48:51 +00:00
uch
643a469d36 set user specified console as default. 2004-08-13 15:48:21 +00:00
uch
00539717e3 add debug print. 2004-08-13 15:47:53 +00:00
uch
32b3027515 clean up whitespace. 2004-08-06 18:33:09 +00:00
uch
e0d5c780a2 recompile. 2004-08-06 17:28:10 +00:00
uch
da18fa2c21 progress bar extension. put message to console. 2004-08-06 17:24:00 +00:00
uch
a9e6c59d87 move string manupurate routine to libsa 2004-08-06 17:23:14 +00:00
uch
b5f1c4963a progress bar extension. put message to console. 2004-08-06 17:22:01 +00:00
uch
a28cfcb566 make hpcboot.exe compile on VC5 (H/PC Ver.1.01 for MIPS, H/PC Ver.2.00 for SH). 2004-08-06 17:21:28 +00:00
uch
4b8cd27f3f use gawk instead of awk. 2004-08-06 17:20:32 +00:00
uch
3a292b1beb MI part of kloader moved to dev/kloader.c from arch/hpc/hpc/
dreamcast and playstation2 port are changed to use this.
2004-07-06 13:09:18 +00:00
uch
7782d1dc8c add HPW200EC entry. 2004-06-28 14:43:42 +00:00
jmc
84fafa3db5 Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
uch
c135c6674f malloc program/section header table instead of fixed array.
properly terminate tag chain.
 add debug print.
2004-06-12 14:31:49 +00:00
uch
7bc635be96 recompile. 2004-06-12 12:10:04 +00:00
uch
fe28a59378 adjust segment load address to 4byte align. 2004-06-12 12:09:38 +00:00
uwe
2869ffe3e5 As the 2nd stage loader uses simple word-by-word copy, make sure that
destination addresses of page tags are properly aligned.
2004-06-11 22:56:00 +00:00
uch
4ce277b80f make hpcboot compile again. 2004-06-10 18:35:26 +00:00
uch
02fac2e6f2 recompile. 2004-06-10 16:00:08 +00:00
uch
237009a03b add __daddr_t=int32_t 2004-06-10 15:59:21 +00:00
uch
352d7c06a3 add Multimedia Card entry. 2004-06-10 15:58:33 +00:00
uch
4d7bd279c7 allocate section and program header table dynamicaly.
fixed section header table over flow problem.
2004-06-10 15:57:18 +00:00
uch
40fef19ff3 change uuencoded suffix. 2004-06-10 15:55:36 +00:00
uwe
bbb41d52d5 Make focusManagerHook a tad more smart, so that it can correctly handle
the serial console speed combobox (last item in the kernel tab).
2004-04-27 00:04:38 +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
d4129e7685 Sort the list of supported platforms that we show to the user. 2004-03-28 15:32:35 +00:00
uwe
fb20d3f467 Print bootinfo timezone in decimal. -180 is more readable then 0xffffff4c
(though may be I'm just getting old :).
2004-03-27 02:01:07 +00:00
uwe
9cde36aeb3 We may run one page too few during reboot for certain kernel sizes.
Allocate an extra page for the loadable segment to compensate for the
fact that the last tag may be only partially filled.
2004-03-25 04:04:28 +00:00
uwe
279286c1ad Pass the symbol table to the new kernel. /dev/ksyms now works after reboot. 2004-03-23 03:39:11 +00:00
uwe
c1591b3e77 We cannot rely on bootinfo to remain valid after the 2nd stage boot
code has copied the new kernel in place, so pass a copy of bootinfo
to the new kernel via "page tags".

Restructure the code to fill "page tags" to make it more generic and
more natural to use (especially in anticipation of ksyms support).
2004-03-22 23:10:55 +00:00
uwe
43e4b74e81 Add _DPRINTFN. 2004-03-21 00:41:04 +00:00
jmc
6fe4ead562 Convert to usage of UUDECODE_FILES and standardize on filename extension 2004-03-19 08:07:22 +00:00
uwe
853017ec09 Regenerate after platid.def changes:
Rename 680HU (Hungarian) to 680EU (European).
Add entries for French and Scandinavian 680/690.
Spell "HP 620LX" with a space, like HP does.
2004-03-17 04:18:38 +00:00
uwe
f11168a748 Rename 680HU (Hungarian) to 680EU (European).
Add entries for French and Scandinavian 680/690.
Spell "HP 620LX" with a space, like HP does.
2004-03-17 04:14:08 +00:00
uwe
8c941b849f Add a few calls to UpdateWindow. 2004-03-16 22:30:36 +00:00
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