Commit Graph

203189 Commits

Author SHA1 Message Date
tron
11677c694e Fix weird hardware address assignment that GCC 4.5 complains about. 2011-07-19 19:42:27 +00:00
tron
002854c3cf Add "v7fs" kernel module. 2011-07-19 19:19:39 +00:00
tron
caeab679ca Build 7th Edition(V7) File System as a kernel module. 2011-07-19 19:19:09 +00:00
joerg
29d01baadc Allow cross-compiling from Linux 2011-07-19 18:29:41 +00:00
dyoung
977de72089 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark acorn26/bus.h obsolete.
2011-07-19 16:05:09 +00:00
dyoung
d368bbb820 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
2011-07-19 15:59:51 +00:00
tron
b6fc69b436 Fix remaining SSP build issues if GCC 4.5 is used. 2011-07-19 15:59:01 +00:00
dyoung
3a45360b72 Change <machine/bus.h> to <sys/bus.h> throughout. 2011-07-19 15:55:26 +00:00
dyoung
86b5be6e94 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark dreamcast/bus.h obsolete.
2011-07-19 15:52:29 +00:00
dyoung
43c66b76fa Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark evbsh3/bus.h obsolete.
2011-07-19 15:44:52 +00:00
dyoung
9edf49b047 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark hpcarm/bus.h obsolete.
2011-07-19 15:37:38 +00:00
dyoung
03ff1df734 Straggler from last: bus.h -> bus_{defs,funcs}.h. 2011-07-19 15:31:44 +00:00
dyoung
f48d88bf58 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
2011-07-19 15:30:51 +00:00
dyoung
b7d02abb50 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark mmeye/bus.h obsolete.
2011-07-19 15:17:20 +00:00
dyoung
543fc45004 Mark zaurus/bus.h obsolete. 2011-07-19 15:12:26 +00:00
dyoung
5410d57726 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.
2011-07-19 15:11:49 +00:00
dyoung
3e88083cc0 Make shark/bus.h obsolete. 2011-07-19 15:08:55 +00:00
dyoung
703fe5ba82 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.
2011-07-19 15:07:42 +00:00
jmcneill
54696cabe9 irmce module glue 2011-07-19 12:23:51 +00:00
jmcneill
561615354d add driver for SMK eHome Infrared Transceiver 2011-07-19 12:23:04 +00:00
manu
4b1fc9a3f7 Make sure libperfuse still builds on netbsd-5.1 2011-07-19 07:29:39 +00:00
jruoho
1800bfee36 Regen. 2011-07-19 06:53:50 +00:00
jruoho
b9016579bc Add E3C EC168 DVB-T adapter. 2011-07-19 06:52:33 +00:00
dholland
0d0aaf26a0 Remove nonexistent include directory from CPPFLAGS.
PR 45068 from Henning Petersen.
2011-07-19 03:30:46 +00:00
dholland
dc7a4b1c8f Remove spurious trailing slash; PR 45067 from Henning Petersen. 2011-07-19 03:07:09 +00:00
mrg
2a978aa626 merge the common CPPFLAGS and HOST_CPPFLAGS. put -DGENERATOR_FILE
into HOST_CPPFLAGS, and remove the hacky list of files to build
with it.  this matches what the real GCC build does, and fixes build
problems seen on OSX.
2011-07-19 01:37:59 +00:00
jym
ca453df649 Add a simple test case to check executable mapping rights for mprotect(2).
- provide an exec_prot_support() routine so $ARCH can indicate whether
it supports execution protection or not, and skip test accordingly.

- have a trivial 'return_one' shellcode to copy anywhere in a page, and
call it. The decision to keep the assembly solution is mine, reasons are
twofold:

   - all pure-C implementations cannot be controlled easily:
     bounds detection (beginning/end) of return_one is unpredictable,
     or requires the use of overkill solutions like libelf. Using
     dlsym(3) was a good proposal, however I can't use it to know the
     end address of the payload. It makes copying of the shellcode a bit
     more difficult: using a constant may be too small (code has not been
     entirely copied, and can lead to errors that can be erroneously
     detected as "test passed"), or too big (depending on where it is mapped
     in memory, copying past the end of the function may trigger SIGSEGV).

   - I have to ensure that the resulting assembly is the most compact
     possible, especially as it will be reused to test other parts of
     memory (stack, data, rodata, etc.).

Only i386 and amd64 are implemented so far. Others will come in due time.
FWIW, writing the exec_prot_support() callback and the return_one payload
should be enough. Writing callback requires good knowledge of the platform,
depending on chip revision, CPU, board, MMU... the protection level may vary.

Current files are put under lib/libc/arch/* and lib/libc/common/. Feel free to
move them around the tests/ tree. Keep in mind that the common/ and arch/ code
will be used outside of libc, so please do not hide them too deep in the tree.

I checked a few architectures via build.sh cross-compile, and will keep an
eye on buildbot for potential build breakage. Feel free to contact me in
case you see any, of course.
2011-07-18 23:16:08 +00:00
tron
12aec09384 Re-enable v7fs support in the tools version of "makefs" after the
issues have been fixed by Alan Barrett. Tested under Mac OS X.
2011-07-18 22:52:37 +00:00
tron
4cafa08a7d Don't use roundup2(9) (which should have been howmany(9) anyway) to
fix builds on platforms other than NetBSD.
2011-07-18 22:50:28 +00:00
apb
f1ca1ce2bf In sources that get compiled into the tools version of makefs, add:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

This should fix cross-build problems, but I can't really test
that now, so I am not re-enabling the inclusion of v7fs support
in makefs.
2011-07-18 21:51:49 +00:00
christos
d97d3aebdc - use poll() instead of select()
- make everything static
- knf
- consistently check for == -1 for syscall errors
- isatty(fd) == tcgetattr(fd), don't do it twice
- make error messages more consistent
- use sig_atomic_t for variable set inside signal handler
2011-07-18 21:51:06 +00:00
drochner
63087a7ddd let gcc-4.5 use dl_iterate_phdr (which has been present for a while)
for exception handling rather than register_frame_info -- this is
what other OSes are doing, and what is supposedly more efficient.
committed generated files for i386 only
2011-07-18 21:48:03 +00:00
christos
ea35959226 gcc 4.5 error support ("file:line:col: error" instead of "file:line: error") 2011-07-18 21:46:15 +00:00
tron
d341b47a1c Define "USE_V7FS" in the makefile of the directory with the actual source. 2011-07-18 21:22:55 +00:00
martin
4821d7c4b4 if _KERNEL is not defined, include <sys/stdarg.h> for va_list. For the
kernel (or modules) this is already done by systm.h.
2011-07-18 21:00:28 +00:00
jmcneill
ed24055289 regen 2011-07-18 20:24:18 +00:00
jmcneill
34df196ad0 add SMK eHome Infrared Transceiver 2011-07-18 20:23:32 +00:00
tron
d43e32f723 Turn SSP warnings for "dynstr_test.c" off, found by GCC 4.5. 2011-07-18 19:30:49 +00:00
joerg
a968e272e0 Partially revert last, keep assertions enabled (but with the correct
spelling of the option).
2011-07-18 19:11:28 +00:00
adam
b878485fea Pass HOST_CC otherwise fails e.g. on Mac OS X; fixed typo in --disable-assertions 2011-07-18 18:37:15 +00:00
dyoung
f7f7c8b5b4 Do the bus.h -> bus_{defs,funcs}.h split and change all occurrences of
<machine/bus.h> to <sys/bus.h>.
2011-07-18 17:51:17 +00:00
dyoung
37e7f7ec40 Fix last: dreamcast/bus.h is not obsolete, yet, so put it back in the
set list.
2011-07-18 17:42:34 +00:00
dyoung
bd9833f4ce Fix last: obsolete the right machine/architecture bus.h file(s) in each
case.
2011-07-18 17:39:05 +00:00
dyoung
f769d6353b Mark bus.h obsolete on more archs. 2011-07-18 17:29:20 +00:00
dyoung
d6c3db715e Do the bus.h -> bus_{defs,funcs}.h split and change all occurrences of
<machine/bus.h> to <sys/bus.h>.
2011-07-18 17:26:55 +00:00
dyoung
03946daef1 Mark <machine>/bus.h obsolete in some more set lists. 2011-07-18 17:18:14 +00:00
tron
043cc21d99 Don't include v7fs support into tool version of "makefs" because it
breaks the build.
2011-07-18 17:15:51 +00:00
tron
2c0999f3fa Fix broken error check found by GCC 4.5. 2011-07-18 17:15:07 +00:00
tron
b166bb160f Don't include v7fs support into tool version of makefs because it
breaks the build.
2011-07-18 17:15:06 +00:00
tron
7b580b1338 Disable SSP warnings (not SSP itself) for this library as their are too
many source files with functions that use variable sized arrays.
2011-07-18 16:55:49 +00:00