Commit Graph

335 Commits

Author SHA1 Message Date
uwe d9aafa85c7 Misc cosmetics. Refix __func__ fallout fixed in previous by
eliminating the temp completely (__func__ is already an array).

This has been sitting in my tree for years, and I forgot to commit it.
Compile-tested by compiling hpcsh GENERIC with options DEBUG.
2010-08-09 23:07:20 +00:00
chs 59de0085a0 fix build problem. 2010-08-08 16:27:30 +00:00
tnozaki 9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
nonaka 7395c26621 regen. 2010-04-06 16:23:17 +00:00
nonaka 569b7f924f Added support PXA270. 2010-04-06 16:20:27 +00:00
nonaka 8b211288fd regen. 2010-04-06 16:18:24 +00:00
nonaka 3b27d9a000 Added W-ZERO3 series. 2010-04-06 16:15:34 +00:00
cegger c363a9cb62 bzero -> memset 2009-03-18 16:00:08 +00:00
cegger df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
dsl 454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
nonaka 0f33b03f39 Added MiniSD and MicroSD card folder. 2009-01-29 21:27:35 +00:00
nonaka a11abf1107 Regen. (by Added XScale PXA270) 2009-01-29 21:26:14 +00:00
nonaka 283e440864 Support XScale PXA270. 2009-01-29 21:23:38 +00:00
nonaka 2e2f22d5a5 Regen. (by Added XScale PXA270) 2009-01-29 21:20:42 +00:00
nonaka b1577664ba Added XScale PXA270. 2009-01-29 21:18:23 +00:00
nonaka e529d52724 Added include <stdlib.h> for exit() function. 2009-01-29 21:13:15 +00:00
rafal dd332648f3 Let hpcboot load kernels linked with PA != VA; use the PA addresses specified
instead of the VA addresses.  Should make no difference for kernels where the
physical and virtual addresses are the same.
2008-11-07 16:28:26 +00:00
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
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