Commit Graph

207 Commits

Author SHA1 Message Date
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 13117244bf Recompile. Important fixes since the previous version (according to
my archive of commit mail):

Take DST into account when computing bi.timezone offset, so that
NetBSD gets correct time when booted in the summer.

Fix framebuffer address for Jornada 7xx machines, so that you can boot
with layouts other than "Japanese" (which happened to have the
framebuffer address in its entry).

Fix a bug where ksyms were not loaded correctly, which also caused the
kernel to not recognize detached miniroot.

Kludge required memory size calculations to compensate for partially
filled tagged pages, or kernel with certain segment sizes wouldn't
load.

[hpcarm have picked up some of these fixes in hpcboot v14 that was
compiled/committed in the meanwhile, for hpcarm only].
2006-11-14 23:20:18 +00:00
uwe 95f76b747d Clean more files generated by eVC3. 2006-10-18 02:18:27 +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
peter 75b167e81d Bump build number as requested by Uwe. 2006-04-08 16:27:25 +00:00
peter 2201fcf579 Recompile. 2006-04-08 12:26:55 +00:00
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 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
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 ce8dca9281 Fix a typo. 2006-02-19 13:04:42 +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 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
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