Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (1h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 16:34:37 UTC Now

2011-09-05 07:38:52 UTC MAIN commitmail json YAML

Add PDP_ENDIAN definition, required for makefs (v7fs).

(jdc)

2011-09-05 04:36:50 UTC MAIN commitmail json YAML

Change 0x1229's product name from 82557 to 8255x.
82550, 82551, 82558 and 82559 share the same product id.
This change makes "pcictl dump" happy.

(msaitoh)

2011-09-05 04:32:53 UTC MAIN commitmail json YAML

2011-09-05 04:31:44 UTC MAIN commitmail json YAML

Change Intel 0x1229 product name from 82557 to 8255x

(msaitoh)

2011-09-04 23:16:42 UTC MAIN commitmail json YAML

Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).

(lukem)

2011-09-04 23:03:00 UTC MAIN commitmail json YAML

don't delete signal from the debugger.

(christos)

2011-09-04 21:28:03 UTC MAIN commitmail json YAML

remove 3 empty directories

(christos)

2011-09-04 21:14:49 UTC MAIN commitmail json YAML

Remove code that was used to avoid register spills. setcontext(2) can change
the registers, so re-fetching will produce the wrong result for trace_exit().

(christos)

2011-09-04 21:08:18 UTC MAIN commitmail json YAML

2011-09-04 21:04:42 UTC MAIN commitmail json YAML

if pmap_page_activate fails, print the returned and expected addresses

(jmcneill)

2011-09-04 21:01:39 UTC MAIN commitmail json YAML

2011-09-04 20:55:43 UTC MAIN commitmail json YAML

2011-09-04 20:54:52 UTC MAIN commitmail json YAML

2011-09-04 20:49:59 UTC MAIN commitmail json YAML

2011-09-04 20:46:58 UTC MAIN commitmail json YAML

2011-09-04 20:35:07 UTC MAIN commitmail json YAML

Sprinkle one more static and a bunch of consts.

(joerg)

2011-09-04 20:31:00 UTC MAIN commitmail json YAML

2011-09-04 20:30:34 UTC MAIN commitmail json YAML

ANSIfy + static + __dead

(joerg)

2011-09-04 20:30:06 UTC MAIN commitmail json YAML

2011-09-04 20:29:32 UTC MAIN commitmail json YAML

ANSIfy + static + __dead

(joerg)

2011-09-04 20:29:12 UTC MAIN commitmail json YAML

ANSIfy + static + __dead

(joerg)

2011-09-04 20:28:59 UTC MAIN commitmail json YAML

2011-09-04 20:28:40 UTC MAIN commitmail json YAML

ANSIfy + static + __dead

(joerg)

2011-09-04 20:28:09 UTC MAIN commitmail json YAML

ANSIfy + static + __dead

(joerg)

2011-09-04 20:27:52 UTC MAIN commitmail json YAML

static + __dead

(joerg)

2011-09-04 20:27:27 UTC MAIN commitmail json YAML

2011-09-04 20:27:05 UTC MAIN commitmail json YAML

2011-09-04 20:26:17 UTC MAIN commitmail json YAML

Use static, change deep if / else if / ... chains to switch(), apply
__dead, ANSIfy.

(joerg)

2011-09-04 20:24:59 UTC MAIN commitmail json YAML

static + __dead

(joerg)

2011-09-04 20:15:57 UTC MAIN commitmail json YAML

-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void *func, void *arg)

(reinoud)

2011-09-04 20:14:37 UTC MAIN commitmail json YAML

2011-09-04 17:32:10 UTC MAIN commitmail json YAML

PR# kern/45021: Please support /emul/linux/proc/version

Add /proc/version for procfs with -o linux. The version reported depends
on the emulation type of the calling process:

$ cat /proc/version
NetBSD version 5.99.55 (netbsd@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) NetBSD 5.99.55 (GENERIC) #39: Sun Sep  4 09:10:05 EDT 2011

$ /emul/linux/bin/cat /proc/version
Linux version 2.6.18 (linux@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

$ /emul/linux32/bin/cat /proc/version
Linux version 2.6.18 (linux32@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

(jmcneill)

2011-09-04 16:09:18 UTC MAIN commitmail json YAML

adjust sets for new zoneinfo code

(christos)

2011-09-04 15:05:27 UTC MAIN commitmail json YAML

Don't attach GPIO framework if NGPIO = 0

(sborrill)

2011-09-04 13:25:22 UTC MAIN commitmail json YAML

forgot to change one usage call.

(christos)

2011-09-04 13:09:13 UTC MAIN commitmail json YAML

Split sigget into sigget() and siggetinfo(). When a signal comes from the
debugger (l->l_sigpendset == NULL), using siggetinfo() try to fetch the
siginfo information from l->l_sigpend and then from p->p_sigpend if it
was not found. This allows us to pass siginfo information for traps from
the debugger.

(christos)

2011-09-04 12:34:50 UTC MAIN commitmail json YAML

getlabelusesmbr: initialize 'oldlenp' parameter to sysctlbyname

(jmcneill)

2011-09-04 12:31:30 UTC MAIN commitmail json YAML

Disable gpio(4) which can now be built and used as modules.

(mbalmer)

2011-09-04 12:17:59 UTC MAIN commitmail json YAML

mem_access_handler: panic if we receive sigsegv or sigbus with SI_NOINFO,
and when "peeing outside the box" print the offending va

(jmcneill)

2011-09-04 12:17:46 UTC MAIN commitmail json YAML

2011-09-04 12:17:14 UTC MAIN commitmail json YAML

2011-09-04 10:23:06 UTC MAIN commitmail json YAML

mention new tzcode and tzdata

(christos)

2011-09-04 10:20:49 UTC MAIN commitmail json YAML

2011-09-04 10:16:01 UTC MAIN commitmail json YAML

2011-09-04 10:15:01 UTC MAIN commitmail json YAML

Update current version of BIND and tz.

(taca)

2011-09-04 10:10:26 UTC MAIN commitmail json YAML

2011-09-04 10:02:33 UTC MAIN commitmail json YAML

Protect new functions with #ifndef __LIBC12_SOURCE__ so that they are not
visibile in the libc12 compat environment.

(christos)

2011-09-04 01:15:14 UTC cherry-xenmp commitmail json YAML

Use a mutex to protect updates to gnt_entries.  Fixes a KASSERT panic
with an MP kernel.

(mhitch)

2011-09-03 20:02:34 UTC MAIN commitmail json YAML

Now that pr45327 is fixed, remove BROKEN_SIGINFO code.

(jmcneill)

2011-09-03 19:33:40 UTC MAIN commitmail json YAML

PR/45327: Jared McNeill: ptrace: siginfo doesn't work with traced processes
When saving the signal in p->p_xstat, clear it from the pending mask, but
don't remove it from the siginfo queue, so that next time the debugger
delivers it, the original information is found.
When posting a signal from the debugger l->l_sigpendset is not set, so we
use the process pending signal and add it back to the process pending set.

(christos)

2011-09-03 19:07:32 UTC MAIN commitmail json YAML

2011-09-03 19:06:49 UTC MAIN commitmail json YAML

2011-09-03 18:42:13 UTC MAIN commitmail json YAML

Let NetBSD/usermode build & link on a Linux host:
- Need to add options CPU_HOST=i386 or CPU_HOST=amd64 for membar & atomic_ops
- Don't use MAP_* and PROT_* with thunk API since the kernel and host
  might not be the same; add THUNK_MAP_* and THUNK_PROT_* and translate them
- Add thunk_posix_memalign
- allocate mem_uvm with thunk_posix_memalign instead of thunk_malloc
- Fix thunk_mmap callers to always pass either THUNK_MAP_PRIVATE or
  THUNK_MAP_SHARED
- mkstemp on Linux requires exactly 6 "X" characters at the end of the
  template string, so add an X

(jmcneill)

2011-09-03 16:21:18 UTC MAIN commitmail json YAML

2011-09-03 16:19:47 UTC MAIN commitmail json YAML

Correct vendor code for Kingston DT101 G2

(mlelstv)

2011-09-03 15:33:56 UTC MAIN commitmail json YAML

Add SIGILL handler, doing nothing than printing out details.
Move the address check to be done later so pmap and uvm have their go first.

Also some minor cosmetic fixes

(reinoud)

2011-09-03 15:00:28 UTC MAIN commitmail json YAML

2011-09-03 14:23:50 UTC MAIN commitmail json YAML

2011-09-03 14:09:03 UTC MAIN commitmail json YAML

Make sure that we initialize all accounting bytes.

(christos)

2011-09-03 13:24:19 UTC MAIN commitmail json YAML

- minor KNF
- for system processes (0, 1) where fd_lastfile == -1, fail early.
- instead of printing the pcb connection address, print the pathname if
  possible for unix domain sockets.

(christos)

2011-09-03 13:22:56 UTC MAIN commitmail json YAML

Mention that fstat -f will not list open unix sockets on that filesystem.

(christos)

2011-09-03 12:48:22 UTC MAIN commitmail json YAML

if emulating the syscall, toggle insyscall as the child won't get stopped a
second time

(jmcneill)

2011-09-03 12:33:03 UTC MAIN commitmail json YAML

move call of urkelvisor_init to main instead of pmap_bootstrap

(jmcneill)

2011-09-03 12:28:46 UTC MAIN commitmail json YAML

2011-09-03 12:25:31 UTC MAIN commitmail json YAML

Oops forgot to commit this one

(reinoud)

2011-09-03 10:59:11 UTC MAIN commitmail json YAML

2011-09-03 10:35:13 UTC MAIN commitmail json YAML

leave the original errno as it was. don't report EFBIG on all mmap failures.

(christos)

2011-09-03 10:28:33 UTC MAIN commitmail json YAML

We need to process SA_STOP signals immediately, and not deliver them to
the process. Instead of re-structuring the code to do that, call issignal()
like before in that case. (tail -F /file^Zfg should not get interrupted).

(christos)

2011-09-03 09:02:20 UTC MAIN commitmail json YAML

Instead of declaring our own err() which is different than the standard one,
and using it incorrectly in a few places because of confusion (does it print
errno or not?), declare two versions following the standard ones xerrx and,
xerr, and use those as appropriate, implementing them using them vwarn and
vwarnx.

(christos)

2011-09-03 01:56:44 UTC MAIN commitmail json YAML

Add quirks for Kingston DT 101 to stop them giving HBA errors.

(asau)

2011-09-03 01:53:01 UTC MAIN commitmail json YAML

Regenerate for Kingston Data Travel 101.

(asau)

2011-09-03 01:51:21 UTC MAIN commitmail json YAML

Add two Kingston Data Travel 101 models.

(asau)

2011-09-02 22:42:27 UTC MAIN commitmail json YAML

add stvii driver for gdium's onboard microcontroller
while there add comments on new(ly added) drivers

(macallan)

2011-09-02 22:25:09 UTC MAIN commitmail json YAML

Report vmem(9) errors out-of-band so that we can use vmem(9) to manage
ranges that include the least and the greatest vmem_addr_t.  Update
vmem(9) uses throughout the kernel.  Slightly expand on the tests in
subr_vmem.c, which still pass.  I've been running a kernel with this
patch without any trouble.

(dyoung)

2011-09-02 22:19:35 UTC MAIN commitmail json YAML

add new voyager driver, follow related changes from LOONGSON
now this builds again
thanks he for noticing

(macallan)

2011-09-02 22:15:16 UTC MAIN commitmail json YAML

Add a target, subr_vmem, for building the vmem(9) test program.

(dyoung)

2011-09-02 22:12:48 UTC MAIN commitmail json YAML

In the tags target, move x86 sources above xen includes, for more
helpful tags.

(dyoung)

2011-09-02 22:07:33 UTC MAIN commitmail json YAML

Update vmem(9).  Changes to the implementation and usage are following,
soon.

(dyoung)

2011-09-02 20:11:42 UTC MAIN commitmail json YAML

- use PT_STRINGS
- use __arraycount()

(christos)

2011-09-02 20:10:19 UTC MAIN commitmail json YAML

Add support for PTRACE_FORK.
- add a field in struct proc to save the forker/forkee pid, and a flag.
- add 3 new ptrace calls: PT_GET_PROCESS_STATE, PT_GET_EVENT_MASK,
  PT_SET_EVENT_MASK
Add a PT_STRINGS constant so that we don't hard-code the list of ptrace
subcalls in other programs (kdump).

(christos)

2011-09-02 20:07:41 UTC MAIN commitmail json YAML

add support for PRACE_FORK.

(christos)

2011-09-02 20:06:29 UTC MAIN commitmail json YAML

Add support for PTRACE_FORK. NB: This does not (yet) work for vfork(), because:
1. When we vfork() PL_PPWAIT is set, and that makes us do regular disposition
  of the TRAP signal, and not indirect through the debugger.
2. The parent needs to keep running, so that the debugger can release it.
  Unfortunately, with vfork() we cannot release the parent because it will
  eventually core-dump since the parent and the child cannot run on the
  same address space.

(christos)

2011-09-02 20:01:21 UTC MAIN commitmail json YAML

If the process is traced, resulting from a PTRACE_FORK inherited setting,
stop it right now.

XXX[1]: Cannot make this MI, because I cannot wrap child_return because there
is MD code that checks fun == child_return. I think it is better to have an
mi child_return() and add a cpu_child_return()?
XXX[2]: Why do we need to stop so early? Perhaps stopping just after exec
is better?

(christos)

2011-09-02 16:26:21 UTC MAIN commitmail json YAML

meta_oodate should ignore makeDependfile

(sjg)

2011-09-02 16:09:01 UTC MAIN commitmail json YAML

2011-09-02 14:56:48 UTC MAIN commitmail json YAML

Update trapframe and add system call switchframe

(reinoud)

2011-09-02 14:55:22 UTC MAIN commitmail json YAML

-thunk_makecontext_trapframe2go(ucontext_t *ucp, void *func, void *trapframe)
+thunk_makecontext_1(ucontext_t *ucp, void (*func)(void), void *arg)

Create a more general prototype for makecontext() with one variable.

(reinoud)

2011-09-02 14:54:41 UTC MAIN commitmail json YAML

Add note on how to posibly create a signal and send it to a userland program

(reinoud)

2011-09-02 11:50:30 UTC MAIN commitmail json YAML

Bump SYMTAB_SPACE so that it fits again.

(he)

2011-09-02 10:18:38 UTC MAIN commitmail json YAML

trylockowner is not needed anymore.

(christos)

2011-09-02 10:13:44 UTC MAIN commitmail json YAML

- use the correct buffer size
- remove obsolete comment

(christos)

2011-09-02 10:11:43 UTC MAIN commitmail json YAML

Disable the debug_fh code for now

(reinoud)

2011-09-02 07:13:28 UTC MAIN commitmail json YAML

Terminate line with a '.', not the word 'done', for consistency with other
startup scripts.

(mbalmer)

2011-09-02 06:50:21 UTC MAIN commitmail json YAML

Make sure error is not used unitialized when sc->sc_attach_busy is 0.

(mbalmer)

2011-09-02 03:16:19 UTC MAIN commitmail json YAML

Add support for some fxp devices from FreeBSD and OpenBSD.
{Free,Open}BSD say that we have to do some work to make fxp
stable.

(msaitoh)

2011-09-02 03:10:39 UTC MAIN commitmail json YAML

2011-09-02 03:09:49 UTC MAIN commitmail json YAML

Add some fxp devices.

(msaitoh)

2011-09-01 23:13:16 UTC MAIN commitmail json YAML

Clarify the history and add proper attribution.

(fair)

2011-09-01 22:35:18 UTC MAIN commitmail json YAML

2011-09-01 21:09:08 UTC MAIN commitmail json YAML

fix the build for rumpserver.

(christos)

2011-09-01 18:33:11 UTC MAIN commitmail json YAML

Allocate a color compatible VA for the page we are entering.

(matt)

2011-09-01 18:29:29 UTC MAIN commitmail json YAML

Allocate a color compatible page to the VA we are going to use.

(matt)

2011-09-01 18:25:44 UTC MAIN commitmail json YAML

Print syscall name on syscall exit (when using SYSCALL_DEBUG).
XXX this should use kernhist.

(matt)

2011-09-01 18:24:19 UTC MAIN commitmail json YAML

Always make sure that kte_entry is aligned appropriately so register_t can
be stored there.  (not really a problem right now since time_t is now 64bit
bit and it just works but it's better to be explicit).

(matt)

2011-09-01 18:20:20 UTC MAIN commitmail json YAML

Use a alternative dedicated signal stack for the sigsegv errors; the userland
stack like that of ld.elf_so can be too short to allow for such deep
stacktraces.

(reinoud)

2011-09-01 18:19:00 UTC MAIN commitmail json YAML

Implement thunk_sigaltstack() so an alternative signal stack can be used

(reinoud)

2011-09-01 16:55:08 UTC MAIN commitmail json YAML

Use the new UVM_KMF_COLORMATCH flag to get a congruent mappings of the user
buffer so we can use unmanaged mappings (pmap_kenter_pa/pmap_kremove).

(matt)

2011-09-01 16:41:48 UTC MAIN commitmail json YAML

pcc cpp(1) does not understand the '-undef' and '-traditional' long form
arguments, use $(CC) -E instead of $(CPP) for these

(plunky)

2011-09-01 16:23:56 UTC MAIN commitmail json YAML

Oops used the wrong page flag for referenced and modified check

(reinoud)

2011-09-01 15:31:27 UTC MAIN commitmail json YAML

redo vfs_lookup.c rev.1.126.
when crossing a mount point, don't keep the parent vnode locked.
ie. don't lock a vnode while holding another vnode which belongs to a
different filesystem.  otherwise we propagate slowness (or deadness) of a
filesystem to another via vnode lock chain.

(yamt)

2011-09-01 15:15:06 UTC MAIN commitmail json YAML

Hack register setup for __i386__. This now seems to start up the code a lot
further.

(reinoud)

2011-09-01 15:13:33 UTC MAIN commitmail json YAML

Prevent thunk_mmap() to mmap a page outside the box; just as a precaution.

(reinoud)

2011-09-01 15:10:32 UTC MAIN commitmail json YAML

2011-09-01 15:03:41 UTC MAIN commitmail json YAML

Enhance debugging capabilities of NetBSD/usermode by allowing `trap.c' to
write a system image of the memory it traps. Its extremely dirty but at least
you can look at the data and code thats giving the trouble. Its memory or
state is NOT saved in the coredump of the NetBSD/usermode program.

(reinoud)

2011-09-01 14:55:58 UTC MAIN commitmail json YAML

It seems mvsata_bio_ready() is actually needed, and it seems
to work better if we always poll for completion for the
duration of this function.

(jakllsch)

2011-09-01 14:46:23 UTC MAIN commitmail json YAML

We occasionally will try to set up the multicast filter in a context that
kmem(9) is unusable (such as transmit timeout). Thus, put the filter table
on the stack instead, all 528 bytes of it.

(jakllsch)

2011-09-01 14:39:04 UTC MAIN commitmail json YAML

Initialize MVGBE_MTU to 0, as suggested by the Orion databook.

If the platform firmware did not initialize this to 0 for us,
we were unable to transmit frames.

(jakllsch)

2011-09-01 14:07:37 UTC MAIN commitmail json YAML

a driver for the gdium's ST7 microcontroller
so far it only reports AC and lid switch events to sysmon

(macallan)

2011-09-01 14:04:55 UTC MAIN commitmail json YAML

some i2c devices we're going to deal with need a little delay after each
write. Also make sure the gpios we're using are outputs.

(macallan)

2011-09-01 13:44:25 UTC MAIN commitmail json YAML

static + __dead

(joerg)

2011-09-01 13:37:33 UTC MAIN commitmail json YAML

static + __dead

(joerg)

2011-09-01 13:25:02 UTC MAIN commitmail json YAML

static + __dead

(joerg)

2011-09-01 13:08:19 UTC MAIN commitmail json YAML

update set list for pcc-20110901 (libpcc is not required)

(plunky)

2011-09-01 13:00:15 UTC MAIN commitmail json YAML

2011-09-01 12:55:43 UTC MAIN commitmail json YAML

2011-09-01 12:47:29 UTC MAIN commitmail json YAML

Update pcc snapshot to 1.1.0.DEVEL 20110901

Continual development has happened since the previous 0.9.9
snapshot of 20100603 and the full commit log is too long to
include here, but can be seen at

http://pcc.ludd.ltu.se/fisheye/changelog/~date=2011-09-01T06%3A00%3A00/pcc

Many bugs were reported and fixed, along with reworks of the compiler
internals in several areas, notable milestones were

* more builtins, libpcc is no longer required on NetBSD
* improved gcc compatibility (eg gnu-inline semantics)
* NetBSD/VAX kernel compiles and boots
* using cpp as backend for lint now fully working
* PIC support seems complete
* NetBSD/i386 kernel can be compiled and booted
* better float/double/complex support
* amd64 support on OSX
* reworked Makefiles
* pcc 1.0.0 was release on April 1 2011
* several xasm improvements
* FreeBSD/amd64 system can be compiled with very few changes
* DragonFly fixes from downstream
* rewritten #pragma support
* TLS support added
* many regression tests
* rewrite of internal attribute handling

Status:

Vendor Tag: ragge
Release Tags: pcc-20110901

(plunky)

2011-09-01 12:44:10 UTC MAIN commitmail json YAML

Make linux_sys_getdents64 fails with ENOTDIR instead of EINVAL, when fd
does not refer to a directory.

(njoly)

2011-09-01 12:29:41 UTC MAIN commitmail json YAML

2011-09-01 12:25:10 UTC MAIN commitmail json YAML

Simplify, --analyze gives the same settings as default

(joerg)

2011-09-01 12:24:37 UTC MAIN commitmail json YAML

2011-09-01 12:15:07 UTC MAIN commitmail json YAML

2011-09-01 09:33:02 UTC MAIN commitmail json YAML

explain NULL casts

(christos)

2011-09-01 09:04:09 UTC MAIN commitmail json YAML

Check for v_type before v_rdev because it is cheaper and safer.

(christos)

2011-09-01 09:03:43 UTC MAIN commitmail json YAML

add a couple of asserts

(christos)

2011-09-01 08:47:56 UTC MAIN commitmail json YAML

In pmap_unwire() fix an obvious editor mishap - enable kernel preemption
before returning, not the other way around.
Might fix PR kern/45137.

(martin)

2011-09-01 08:43:24 UTC MAIN commitmail json YAML

Minor nit: avoid kpreempt_disable() if cold (as we return early and do
not reenable it; actually makes no difference but looks more balanced
this way)

(martin)

2011-09-01 08:04:46 UTC cherry-xenmp commitmail json YAML

fix %cr3 init. from mhitch@, tested by riz@ & mhitch@

(cherry)

2011-09-01 07:18:51 UTC MAIN commitmail json YAML

2011-09-01 06:41:38 UTC MAIN commitmail json YAML

Use UVM_KMF_COLORMATCH and switch to pmap_kenter_pa for vmapbuf/vunmapbuf.

(matt)

2011-09-01 06:40:28 UTC MAIN commitmail json YAML

Forward some UVM from matt-nb5-mips64.  Add UVM_KMF_COLORMATCH flag.
When uvm_map gets passed UVM_FLAG_COLORMATCH, the align argument contains
the color of the starting address to be allocated (0..colormask).
When uvm_km_alloc is passed UVM_KMF_COLORMATCH (which can only be used with
UVM_KMF_VAONLY), the align argument contain the color of the starting address
to be allocated.
Change uvm_pagermapin to use this.  When mapping user pages in the kernel,
if colormatch is used with the color of the starting user page then the kernel
mapping will be congruent with the existing user mappings.

(matt)

2011-09-01 05:08:06 UTC MAIN commitmail json YAML

add a small file forgotten in previous

(agc)

2011-09-01 05:07:13 UTC MAIN commitmail json YAML

add bit arithmetic operations to eawk (implementation based on the gawk
man page). this provides:

and(x, y) (in C, x & y)
or(x, y) (in C, x | y)
xor(x, y) (in C, x ^ y)
lshift(x, n) (in C, x << n)
rshift(x, n) (in C, x >> n)
compl(x) (in C, ~x)

operations, with exactly the same calling conventions as gawk.

(agc)

2011-09-01 05:03:18 UTC MAIN commitmail json YAML

especially on LE platforms, we need to be careful to set the size of
the format specifier in awk printf() for integer output.  this was
being done for 'd' and 'i' formats, but not for 'o', 'x', 'X' and 'u'
formats.  rectify that.

allows hex patterns like 0xffffff00 to be printed

(agc)

2011-09-01 00:06:43 UTC MAIN commitmail json YAML

only attach the i2c bus if the gpio pins we're using are actually
configured as gpio
while there remove some accidentially left in debug code

(macallan)

2011-08-31 23:42:46 UTC MAIN commitmail json YAML

For PT_SYSCALLEMU, no need to stop again on syscall exit.

(jmcneill)

2011-08-31 23:04:33 UTC MAIN commitmail json YAML

Document PT_SYSCALLEMU

(jmcneill)

2011-08-31 22:58:39 UTC MAIN commitmail json YAML

PR# kern/45312: ptrace: PT_SETREGS can't alter system calls

Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.

(jmcneill)

2011-08-31 22:43:19 UTC MAIN commitmail json YAML

sigispending: simplify a little.

(rmind)

2011-08-31 22:36:36 UTC MAIN commitmail json YAML

Refactor to fix some signedness problems.

(matt)

2011-08-31 22:27:27 UTC MAIN commitmail json YAML

put back the byte swapping code, and remove the double byte swapping.

(christos)

2011-08-31 22:16:54 UTC MAIN commitmail json YAML

genfs_do_directio: acquire the lock of page owner for now and fix PR/45177.
Will be revisited to avoid locking dance and be more efficient, e.g. we can
use unmanaged-mapping by allocating with colouring in mind.

(rmind)

2011-08-31 22:05:57 UTC MAIN commitmail json YAML

Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.

(riz)

2011-08-31 21:57:17 UTC MAIN commitmail json YAML

2011-08-31 20:21:06 UTC MAIN commitmail json YAML

Add override members to x86_bus_dma_tag.

(dyoung)

2011-08-31 20:16:43 UTC MAIN commitmail json YAML

for multi-cpu machines, cpu_hatch() straddles the init of
__stack_chk_guard, so ensure stack protection is disabled
on x86 architectures (I don't know about other archs)

(plunky)

2011-08-31 20:13:31 UTC MAIN commitmail json YAML

extend __clang__ hack for __PCC__ also
(CMSG_SPACE() is not a constant)

(plunky)

2011-08-31 20:09:57 UTC MAIN commitmail json YAML

Add stub implementations of bus_dma_tag_create()/bus_dma_tag_destroy().

(dyoung)

2011-08-31 20:04:51 UTC MAIN commitmail json YAML

Add some definitions for bus_dma(9) overrides.

(dyoung)

2011-08-31 18:52:38 UTC MAIN commitmail json YAML

2011-08-31 18:31:04 UTC MAIN commitmail json YAML

2011-08-31 17:03:17 UTC MAIN commitmail json YAML

on xen we don't initialize memory segment maps, so no sparse dumps for now.

(christos)

2011-08-31 16:58:10 UTC MAIN commitmail json YAML

turn kernel output green

(macallan)

2011-08-31 16:55:41 UTC MAIN commitmail json YAML

add voyager, voyagerfb and drivers for Gdium's rtc and temperature sensor

(macallan)

2011-08-31 16:51:05 UTC MAIN commitmail json YAML

2011-08-31 16:50:32 UTC MAIN commitmail json YAML

2011-08-31 16:48:30 UTC MAIN commitmail json YAML

the framebuffer part lives on in voyager/voyagerfb.c

(macallan)

2011-08-31 16:47:31 UTC MAIN commitmail json YAML

split up voyagerfb into the framebuffer portion and a pseudo bus that we can
attach all the other sub-devices to
while there attach an i2c bus

(macallan)

2011-08-31 16:45:08 UTC MAIN commitmail json YAML

add a couple more register definitions

(macallan)

2011-08-31 16:32:48 UTC MAIN commitmail json YAML

don't truncate time_t

(christos)

2011-08-31 16:25:00 UTC MAIN commitmail json YAML

2011-08-31 16:09:56 UTC MAIN commitmail json YAML

PR/40594: Antti Kantee: Don't call issignal() here to determine what errno
to set for the interrupted syscall, because issignal() will consume the signal
and it will not be delivered to the process afterwards. Instead call
sigispending() (which now returns the first pending signal) and does not
consume the signal.

(christos)

2011-08-31 16:05:44 UTC MAIN commitmail json YAML

Make sigispending() return the signal that is pending, or 0. Fix the comment
that said that it returns true or false (it returned EINTR or 0 before).
Perhaps we should rename the function now?

(christos)

2011-08-31 16:04:39 UTC MAIN commitmail json YAML

make lwp_unstop look like proc_unstop. If p->p_xstat is set, then make it
runnable so that it can receive the signal.

(christos)

2011-08-31 15:48:32 UTC MAIN commitmail json YAML

NULL does not need a cast

(plunky)

2011-08-31 14:42:19 UTC MAIN commitmail json YAML

Add CWARNFLAGS+= -Wno-unused for clang.

(mbalmer)

2011-08-31 13:38:19 UTC MAIN commitmail json YAML

Use __dead. Be a bit more consistent about static.__dead. Be a bit more
consistent about static.

(joerg)

2011-08-31 13:35:47 UTC MAIN commitmail json YAML

2011-08-31 13:32:42 UTC MAIN commitmail json YAML

2011-08-31 13:31:29 UTC MAIN commitmail json YAML

2011-08-31 13:30:45 UTC MAIN commitmail json YAML

2011-08-31 13:25:50 UTC MAIN commitmail json YAML

Link the gpioow(4) and onewire(4) modules to the build and add them to the
lists.

(mbalmer)

2011-08-31 13:09:10 UTC MAIN commitmail json YAML

Fix build on mips (NOAOUT case).

(nakayama)

2011-08-31 12:56:14 UTC MAIN commitmail json YAML

If the host doesn't define LABELUSESMBR, set it to 1

(jmcneill)

2011-08-31 12:46:37 UTC MAIN commitmail json YAML

2011-08-31 12:42:41 UTC MAIN commitmail json YAML

Completely redo R/M emulation and fault handling taking UVM as authorative
answer and not relying on UVM's pmap directions since UVM has its own schemes
for COW etc.

(reinoud)

2011-08-31 12:25:05 UTC MAIN commitmail json YAML

Switch von u_int_XY to uintXY

(mbalmer)

2011-08-31 12:23:32 UTC MAIN commitmail json YAML

Add glue code to build as module.

(mbalmer)

2011-08-31 12:20:35 UTC MAIN commitmail json YAML

Remove what I committed accidentally...

(mbalmer)

2011-08-31 12:17:51 UTC MAIN commitmail json YAML

Add glue code to build as module.

(mbalmer)

2011-08-31 12:07:26 UTC MAIN commitmail json YAML

gpio(4) keeps track of child devices attached using the GPIOATTACH ioctl(),
so remove those references and free the memory in gpio_childdetached().
Protect access to the list of child devices with a kcondvar.

(mbalmer)

2011-08-31 10:01:18 UTC MAIN commitmail json YAML

2011-08-31 08:15:08 UTC MAIN commitmail json YAML

Yet another format string fix

(gson)

2011-08-31 07:17:44 UTC MAIN commitmail json YAML

Fix format string to unbreak i386 build

(gson)

2011-08-31 07:04:49 UTC MAIN commitmail json YAML

Minor correction.

(jruoho)

2011-08-31 07:03:00 UTC MAIN commitmail json YAML

Remove double 'static'.

(mbalmer)

2011-08-31 04:19:41 UTC MAIN commitmail json YAML

othersrc/external/historical/eawk/Makefile@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/EAWK@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/FIXES@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/Makefile@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/README@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/awkgram.y@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/awkre.h@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/b.c@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl2.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl3.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl4.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl5.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl6.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl7.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl8.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dl9.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dlA.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dlB.sh@1.1.1.1 / diff / nxr@1.1.1.1
othersrc/external/historical/eawk/dist/dlC.sh@1.1.1.1 / diff / nxr@1.1.1.1
      :
(more 15 files)
Embedded Awk
============

This is a heresy I have done, of my own free will and volition, and
which I now know as being a sin.

Firstly, I have butchered the one true awk source code, made
it re-entrant and embeddable in C programs, and now present it
as a library (libeawk) and a small driver program (eawk).  The
driver program now uses getopt_long, and gives a good idea of
how to use eawk in embedded code.

Furthermore, I have "added" to the one true language.  The
additions are 4 functions:

dlopen(handle, shared object name)
dlproto(handle, C function prototype as a string)
dlcall(handle, function, function args...)
dlclose(handle)

which allows you to do such abominations as:

dlopen(libc, "libc");
dlproto(libc, "long write(int, awkptr, long)")
dlcall(libc, "write", 1, "hi\n", 3)
dlclose(libc)

(i.e. allows interfacing to shared libraries and shared objects without
any C glue or other shim in between the scripting language and the
compiled library).

Please note that you can specify the prototype at the same time as the
foreign function call, with dlcall:

dlopen(libc, "libc");
dlcall(libc, "long write(int, awkptr, long)", 1, "hi\n", 3)

and then:

% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int printf(awkptr)", "Hello world\n") }' /dev/null
Hello world
%

In fact, the following scripts are all equivalent:

% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "long write(int, awkptr, long)", 1, "Hello world\n", 12) }' /dev/null
Hello world
% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int printf(awkptr)", "Hello world\n") }' /dev/null
Hello world
% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int fprintf(cvar, awkptr)", "stdout", "Hello world\n") }' /dev/null
Hello world

The type of arguments, and the return type, given in the dlproto()
calls is important:

awkptr - a string as passed from the eawk script
cptr - a pointer to an object in the compiled shared object
cref - the address of a pointer to an object in the compiled
shared object. this is used to map the construct:
&cp
into an awk string
cvar - the awk string which maps to a compiled well-known
variable in the compiled shared object, typically
stdin, stdout and stderr
void - no return type
bool - the boolean type
int - standard integer type on this machine
long - native long on this machine
int64 - 64-bit data type

In order to support foreign functions which typically use a structure
passed into every function as a handle (very much like the eawk
implementation here), I'd also added two other functions which can be
called from scripts:

buf = dlalloc(size)
dlfree(buf)

and also a new prototype keyword called "cptr" - this is functionally
equivalent to long, but more intuitively obvious that the argument should
be pre-allocated storage (at the native layer).

% eawk 'BEGIN {
dlopen(libc, "libc")
size = 1024
buf = dlalloc(size)
dlcall(libc, "int snprintf(cptr, int, awkptr, int)", buf, size, "allocated size is %d\n", size)
dlcall(libc, "int printf(cptr)", buf)
dlfree(buf)
}' /dev/null
allocated size is 1024
%

Finally, we need a way to get information back from C structures and
storage into an awk script, and we do that with the

var = dlfield(storage, offset, type)

function. This can be used as follows:

% eawk 'BEGIN {
dlopen(libc, "libc")
st = dlalloc(1024)
dlcall(libc, "int stat(awkptr, cptr)", "/etc/group", st)
mode = dlfield(st, 8, "int16")
printf("%s mode is %o\n", "/etc/group", mode)
dlfree(st)
}' /dev/null
mode is 100644
%

To illustrate some of the dlcall features a bit further, this script
will print out the keys in the user's keyring, by direct calling of
exported frunctionality from libnetpgp:

% eawk '
BEGIN {
dlopen(libc, "libc")
dlopen(libnetpgp, "libnetpgp")
netpgp = dlalloc(2048)
ret = dlcall(libnetpgp, "int netpgp_set_homedir(cptr, awkptr, awkptr, int)", netpgp, ENVIRON["HOME"], "/.gnupg", quiet = 1)
ret = dlcall(libnetpgp, "int netpgp_init(cptr)", netpgp)
}
END {
ret = dlcall(libnetpgp, "int netpgp_list_keys_json(cptr, cref, int)", netpgp, json, psigs = 0)
ret = dlcall(libnetpgp, "int netpgp_format_json(cvar, cptr, int)", "stdout", json, psigs = 0)
}' /dev/null
126 keys found
signature  2048/RSA (Encrypt or Sign) 1b68dcfcc0596823 2004-01-12
Key fingerprint: d415 9deb 336d e4cc cdfa 00cd 1b68 dcfc c059 6823
uid              Alistair Crooks <alistair@hockley-crooks.com>
uid              Alistair Crooks <agc@pkgsrc.org>
uid              Alistair Crooks <agc@netbsd.org>
uid              Alistair Crooks <agc@alistaircrooks.com>
uid              Alistair Crooks (Yahoo!) <agcrooks@yahoo-inc.com>
encryption 2048/RSA (Encrypt or Sign) 79deb61e488eee74 2004-01-12
...
%

Note that the prototype for netpgp_list_keys_json() above is:

int netpgp_list_keys_json(netpgp_t *, char **, const int);

and the prototype for netpgp_format_json is:

int netpgp_format_json(void *, const char *, const int);

and so the signature of the compiled function in the shared object
defines the type of arguments that are passed via dlcall.

Another example is that of calculating a digest using the SHA256_File
function in libc.

% eawk 'BEGIN {
f = "../Makefile"
dlopen(libc, "libc")
buf = dlalloc(65)
dlcall(libc, "cptr SHA256_File(awkptr, cptr)", f, buf)
dlcall(libc, "int printf(awkptr, awkptr, cptr)", "SHA256 (%s) = %s\n", f, buf) }')
}'
SHA256 (../Makefile) = a6ccb2e57801867720b434d8dfc248d62389c518457ea1a022861819151f2b1f
% digest sha256 ../Makefile
SHA256 (../Makefile) = a6ccb2e57801867720b434d8dfc248d62389c518457ea1a022861819151f2b1f
%

I've had these changes around in my own tree for over 2 and a half years.
It's finally time to commit them.

Alistair Crooks
Wed Aug 30 19:45:50 PDT 2011

Status:

Vendor Tag: BWK
Release Tags: eawk-base

(agc)

2011-08-30 23:15:14 UTC MAIN commitmail json YAML

2011-08-30 23:10:45 UTC MAIN commitmail json YAML

2011-08-30 23:08:05 UTC MAIN commitmail json YAML

Use __printflike and __dead

(joerg)

2011-08-30 23:06:01 UTC MAIN commitmail json YAML

Use __printflike and __dead.

(joerg)