Commit Graph

289 Commits

Author SHA1 Message Date
uwe
24c8a90269 s/u_intN_t/uintN_t/ 2006-03-05 04:05:39 +00:00
uwe
de58f0245a Loader uses ElfLoader::memorySize to determine the number of tagged
pages to allocate, as some of those pages are only partially filled
(e.g. last page of loadable segment) we may allocate too few tagged
pages and boot will fail.  So lie by reporting extra size for each
partial tagged page.

XXX: This is an ugly hack, but I'm not going to shave this yak.
2006-03-05 04:04:13 +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
756e048e31 s/u_intN_t/uintN_t/ 2006-03-05 02:14:41 +00:00
peter
16e95e8ed4 Regen. 2006-03-04 13:48:52 +00:00
peter
1ad90b609b Add entries for European (ABB), German, French, Scandinavian and Spanish
Jornada 720. Append "(US/UK)" to the default Jornada 720 entry.
2006-03-04 13:46:49 +00:00
uwe
7a546fd8c5 Cosmetic. In debug pritnf in ElfLoader::memorySize don't prepend '+'
when printing the size of the first loadable segment.
2006-03-02 23:56:58 +00:00
wiz
5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
rjs
25f0b1dc0a Regen for iPAQ 3900. 2006-02-20 10:47:27 +00:00
uwe
4f2fba2a61 Use comma in debug message in _load_segment_end to make it more readable. 2006-02-20 03:09:05 +00:00
uwe
ef2734fbd0 Print the size of address translation table in hex.
Use plural "pages", "bytes".
2006-02-20 03:07:33 +00:00
peter
b4370e9bff Add dealloc() function, to make hpcboot build again.
ok uwe@.
2006-02-19 14:44:00 +00:00
peter
d27b3a0292 de-__P. 2006-02-19 13:06:06 +00:00
peter
ce8dca9281 Fix a typo. 2006-02-19 13:04:42 +00:00
rjs
f511d415b4 Add definition for iPAQ 3900. 2006-02-18 22:19:20 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
uwe
f60eb26259 Prune CPPDEF_LIST from unnecessary defines. 2006-01-18 01:08:57 +00:00
uwe
bcd9f83758 We no longer use printf from libsa, so we don't need to provide putchar.
Don't include <stand.h> that we thus no longer need.
Include <winbase.h> instead on <windows.h> - it's enough for what we use.
2006-01-18 01:06:37 +00:00
uwe
160de00800 Include <malloc.h>. Spell "unsigned int" in full. 2006-01-18 01:05:02 +00:00
uwe
2467db8264 Prune stuff from libsa that we don't need. 2006-01-18 01:04:04 +00:00
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