Commit Graph

317 Commits

Author SHA1 Message Date
martin 5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
martin 73f89d772c Move to standard 2 clause TNF license 2008-05-03 23:52:19 +00:00
martin 912b8073ae Move to 2 clause TNF license 2008-05-03 23:49:14 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
rafal 3af75740f5 Support for XScale-based (PXA-2x0) iPaqs -- original refactoring / code from
Robert Swindells, with addition of serial console,  other assorted cleanup
and much headbanging by me.  Tested only on a iPaq 3970 so far.

NB: So far this uses the SA-11xx-targetted assembly code (including cache
handling, etc).  Fortunately, none of that's required since hpcboot allocs
cache-inhibited pages from WinCE to copy the 2nd-stage loader and kernel
into.  I've split the code into SA-11xx and PXA-2x0 bits in my tree, but
that needs help/review from someone with ARM/XScale clue.
2008-03-08 02:26:03 +00:00
rafal 3bf0508cf8 Increment the load-link counter in the right place (once for each link in
the tag chain added vs. just once each time load_memory() is called).
2008-03-08 02:17:48 +00:00
rafal 6e46f6378f Grrr, don't grow the stack *up*, grown it *down* as everything else expects.
Fixes a frequent memory stomp of the bootinfo page (the kernel entry address,
no less) that occurrs when you turn the serial-debug code in the ARM 2nd-
stage bootloader.
2008-03-08 01:50:06 +00:00
uwe 8a696ab6db In the for d in ${PROJECT_DIRS} loop fail immediately if
dspgen/config.sh fails.
2008-02-27 03:45:58 +00:00
uwe 6993791d26 Use ${AWK} consistently.
G/c unused SED variable.
Trim trailing whitespace.
2008-02-27 03:39:21 +00:00
rafal 97b36c3975 Check in infrastructure for generating project/workspace files for eMbedded
Visual C++ 4 for ARM, SH[34].  Not currently integrated into the 'install'
targets since it's only been tested for ARM; SH targets compile but I have
no hardware to test on.  eVC++4 only supports targets of MIPSII, MIPSIV
and MIPS16 so that might not be appropriate for the hpcmips based systems.
2008-02-26 21:46:38 +00:00
ad 4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
perry 9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad 9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
ad 66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
he 3b9acdf0e9 Cast to char* before doing pointer arithmetic. 2007-03-05 21:35:42 +00:00
scw e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +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 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
uwe bdfc8192a4 Add __unused to unused function arguments. 2006-10-12 21:31:29 +00:00
skrll a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +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 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