205238 Commits

Author SHA1 Message Date
apb
37b9b22e26 Add tests for the shell under which build.sh is run. If the
shell fails the tests, then build.sh tries to re-exec itself
under a more suitable shell.
2011-09-09 18:48:34 +00:00
reinoud
c37f580072 Streamline makecontext() calls to really only specify the number of arguments
to prevent side-effects
2011-09-09 18:41:16 +00:00
christos
b6f6e1bfbd fix a shadow variable warning. 2011-09-09 17:48:39 +00:00
reinoud
772c2c0c6d Clean up cpu_trampoline and link the context so we dont have to manually do
that.
2011-09-09 16:24:44 +00:00
manu
5a6d3e75bd Serialize access to file size. We already have such a thing in the
kernel, where it fixes race for PUFFS filesystems, but we need it again
in perfused since FUSE filesystems are allowed to reorder requests.

The huge issue is in the asyncrhonous SETATTR sent by fsync. It is
followed by a syncrhnous FSYNC, so if the filesystem does not reorder
requests, once the FSYNC returns, we are confident the SETATTR is done.
But since FUSE can reorder, we need to implement sync in perfused.
2011-09-09 15:45:28 +00:00
manu
f19a344abc Make sure perfused remains locked in memory, otherwise we can get
deadlocks in low memory situations, where ioflush waits for perfused
to fsync vnodes, and perfused waits for memory to be freed.
2011-09-09 15:35:22 +00:00
jakllsch
2eb0dcce4e Replace pms_synaptics_send_command() and identical pms_elantech_send_command()
with pms_sliced_command().  Linux shows that this sequence can also be used by
"Logitech PS/2++" protocol as well.
2011-09-09 14:29:47 +00:00
apb
5f70d1f98e Move the code for creating src/BUILDING from "make build-docs" in
src/Makefile to "make regen" in src/doc/Makefile, and update a comment
in doc/BUILDING.mdoc to match.
2011-09-09 14:23:37 +00:00
apb
94bddc04db Revisions 1.92 and 1.93 of src/BUILDING were not reflected in
src/doc/BUILDING.mdoc, so those changes were lost when src/BUILDING
was regenerated in revision 1.94.

Now update src/doc/BUILDING.mdoc and regenerate src/BUILDING to
reinstate the lost changes.  (I also edited one of the changes, to use
the phrase "space-separated list" for consistency with other parts of
the document.)

The original changes were:
----------------------------
revision 1.93
date: 2011/08/06 19:52:49;  author: jnemeth;  state: Exp;  lines: +5 -0
Add description of MKKMOD, part of PR misc/45216
----------------------------
revision 1.92
date: 2011/01/29 16:56:26;  author: jym;  state: Exp;  lines: +6 -4
Pass down INSTALLSETS variable to installsets target. Use :Q to escape
shell meta-characters, as the variable contains a list of sets, separated
by spaces.

$ ./build.sh -V INSTALLSETS="base etc" install=idir

should now work as expected.

Reviewed by apb@ on tech-toolchain.
----------------------------
2011-09-09 14:01:28 +00:00
jakllsch
33419b02ae const-ify input command buffer argument to
pckbport_poll_cmd and pckbport_enqueue_cmd.
2011-09-09 14:00:01 +00:00
apb
a4d065775d Allow MAKEFLAGS to be set via build.sh -V. Somebody asked for this
in 2008.

Also add comments above a few functions in build.sh, and bump copyright
dates.
2011-09-09 13:29:23 +00:00
reinoud
6efc43af66 machdep.c: Cleanup the machine dependent code and set the carry flag on error
out. While here also clean up register printing.

syscall.c: Add debug syscall printing code to track basic syscalls being
taken.
2011-09-09 12:44:27 +00:00
christos
fa2954d50c document another non-literal string. 2011-09-09 12:43:14 +00:00
reinoud
4d72a86db6 Make pmap.c not so chatty unless we've enabled debug and verbose 2011-09-09 12:41:12 +00:00
reinoud
8058f19f87 Implement TBL functionality by remembering if its mapped in or not before
guessing and adjusting access types.

While here, when we hit a read-access fault and reference the page, also mark
it for executable when its permissions permit it. Distinguising between the
two is neigh impossible as we need to guess/derive the access the process
tried to have to the memory: we dont know if its a read/write/exec try.

Also clean up some debug messages.
2011-09-09 12:28:05 +00:00
reinoud
f0de0f3104 Be more verbose in trap.c on what address should be passed to userland. Also
detail about what function goes into recurse
2011-09-09 12:21:57 +00:00
apb
f6a28000e5 Document the FILESBUILD variable, which was added in
bsd.files.mk revision 1.41 dated 2010-02-03.
2011-09-09 10:08:14 +00:00
christos
07ba3f910e PR/45344: Pierre Allegraud: Added Dlink DWA-110 in rum(4) 2011-09-08 22:06:54 +00:00
christos
bb8daee5b8 PR/45343: Pierre Allegraud: Add missing nonliteral format comment. 2011-09-08 22:05:00 +00:00
wiz
adb6017bcb Describe options and arguments. Bump PKGREVISION.
Based on PR 45275 by Julian Fagir.
2011-09-08 19:55:52 +00:00
reinoud
cf0d0b43fb Implement a working(!) syscall! well, it can call a number of syscalls without
dying ;)
2011-09-08 19:38:59 +00:00
reinoud
71ec3c5abe Remove not used variable from the pcb.h 2011-09-08 19:37:01 +00:00
jmmv
7970eac628 It's ATFFILE=no, not NOATFFILE=true. This fixes the contents of the
installed Atffile, and allows the tests to actually run.
2011-09-08 18:44:38 +00:00
jmmv
5de965f758 Remove temporary file committed by mistake. 2011-09-08 18:27:01 +00:00
jym
9ce680e4f1 Use a scratch space in panic(9) so we can store a more meaningful
message for panicstr instead of just the format string.

Keep setting the panicstr to fmt beforehand though for safety precaution.

ok joerg@.
2011-09-08 18:15:56 +00:00
jakllsch
9779175e56 Sprinkle static. 2011-09-08 16:34:09 +00:00
jakllsch
1578aa6f33 Another copy/paste problem with a function name in a error printf. 2011-09-08 15:36:42 +00:00
jakllsch
d8c7d8f2e8 Correct copy/paste of function name in error printf. 2011-09-08 15:34:07 +00:00
jakllsch
e09b9d681e Cosmetic changes. 2011-09-08 15:27:50 +00:00
jakllsch
4df4fc4c6f Make whitespace more consistent. 2011-09-08 15:26:26 +00:00
reinoud
dde6f9699b Use the machdep.h and now use the md_check_syscall_opcode() 2011-09-08 15:13:27 +00:00
reinoud
40f72d3d5d Add a machdep protoype header file to coder all prototypes in machdep.c 2011-09-08 15:11:42 +00:00
reinoud
3065b9b15c Implement md_check_syscall_opcode() to check if the instruction at the pointer
`ptr' is indeed a syscall entry.
2011-09-08 15:10:59 +00:00
reinoud
d000ba6756 Create syscall() prototype and let illegal instruction handler switch to that
switchframe
2011-09-08 14:49:42 +00:00
reinoud
f556f0c122 Link syscall to userland so on exit is automatically goes to userland. 2011-09-08 14:47:17 +00:00
reinoud
d17fad1925 Cleanup syscall context creation 2011-09-08 12:37:28 +00:00
jmcneill
3dae8a590d get rid of clock softintr and move setitimer call to cpu_initclocks 2011-09-08 12:10:13 +00:00
reinoud
85962a671d White space 2011-09-08 12:08:13 +00:00
reinoud
dbc71f3ad4 Create a ucontext for the system call to work in; its cloned from the new
pcb's call `userland' ucontext.
2011-09-08 12:01:22 +00:00
christos
6438f483a9 revert previous; don't change the logic. 2011-09-08 12:00:26 +00:00
reinoud
0917001943 Remove struct trapframe 2011-09-08 11:56:48 +00:00
jmcneill
928460d59c pass debug compiler parameters to modules built with host sdk 2011-09-08 11:53:18 +00:00
jmcneill
e2b91b31a3 add heavyweight sigprocmask stuff, commented out unless INTR_USE_SIGPROCMASK
is defined
2011-09-08 11:13:03 +00:00
jmcneill
dee122e414 use HZ to calculate interval for setitimer 2011-09-08 11:11:18 +00:00
blymn
14cd7a9b79 - Add a delay just after the function is passed to the slave, this
gives the slave time to process the command and produce output before
  the director drains output from the slave.  This is particularly
  important when the slave is set up for timed input because the ioctl
  used by curses to set the tty parameters waits for pending output to
  drain.
- make a debug statement conditional on verbose again
- make a warning about output from the slave conditional on verbose
- fix setting the minimum input delay, it should be milliseconds not
  nanoseconds.
- Handle nanosleep returning early due to a signal, restart the sleep
  with the remaining time.
2011-09-08 10:56:49 +00:00
jmcneill
ef8b8537b9 regen 2011-09-08 10:49:56 +00:00
jmcneill
dac37bf7e9 make sure USPACE is large enough to hold our struct pcb 2011-09-08 10:49:41 +00:00
christos
90932ffc48 don't forget to 0 init the rest of the array since now we removed the memset 2011-09-08 01:19:52 +00:00
christos
47ecf56863 a little more KNF, plus add \e (from the previous commit) 2011-09-08 01:18:44 +00:00
christos
0ffd30a090 It is pointless to assign to the CLASS.set member and never use it again.
Perhaps the author meant to check if it is already set and not allocated it
again to avoid memory leaks? Anyway make everything const back and delete
the unused code. Yes, this leaks the same way as before but it is
insignificant. If we want to save memory we could use bytes or even bits
instead of ints, and not allocate/initialize the same thing multiple times.
2011-09-08 01:18:05 +00:00