Commit Graph

174086 Commits

Author SHA1 Message Date
pooka cf82732ba2 Revert weird revivesa merge botch. (Hi Bill!) 2008-10-15 13:57:03 +00:00
pooka edfec78484 add -lrumpnet 2008-10-15 13:11:45 +00:00
pooka 8fb0c4b043 Add support bits necessary for rumpnet functionality. 2008-10-15 13:04:26 +00:00
pooka f7c6dc5e73 provide rumpuser_net_connect() 2008-10-15 13:02:29 +00:00
pooka 687fd3f77a regen: few networking calls 2008-10-15 13:02:01 +00:00
pooka d31071b90c Mark a few network-related calls as RUMP (needs more work) 2008-10-15 13:01:15 +00:00
pooka ab368d7178 Add the basic rump networking library, which provides e.g. sockets
and mbufs.  This is required by all network-using rump applications.
2008-10-15 13:00:39 +00:00
pooka ba12d8328e Call rump_sys_setsockopt(SO_RCVTIMEO) for el-cheapo "async" socket i/o. 2008-10-15 11:45:35 +00:00
pooka 7dd6651a0a Mostly support TCP, mostly meaning "client-side TCP", since listen,
accept etc. is not supported yet.  Disconnect is not really supported
either, but doesn't matter in most cases.
2008-10-15 11:43:38 +00:00
cegger 968d25010f build fix: get prototype for membar_producer() 2008-10-15 10:05:07 +00:00
cegger 33decc3ffa buildfix: get prototype for cpu_upcall() 2008-10-15 09:55:01 +00:00
cegger 02261d8f3c make the headers compile 2008-10-15 08:58:40 +00:00
ad b5ff001c46 Correction to previous. 2008-10-15 08:25:28 +00:00
ad c1482a51a0 Cosmetic change to previous. 2008-10-15 08:22:06 +00:00
ad 1ec58d56ef - Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.
2008-10-15 08:13:17 +00:00
ad 889ba1e151 Don't map cpu index to hardware id. 2008-10-15 08:08:30 +00:00
wrstuden 4fb41e761e Merge wrstuden-revivesa into HEAD. Catch some files that I forgot
to revive on HEAD in previous commit.
2008-10-15 06:52:38 +00:00
wrstuden fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
pgoyette 6bd90145d1 If we're doing a 2-byte read, return the entire 16-bit result. 2008-10-15 02:21:48 +00:00
cube 8ca6b0963e - Adapt to changes on bsd.x11.mk
- Remove unnecessary targets that handled .man.pre files
- Add transformations for package-specific patterns in man page templates.
2008-10-14 23:37:19 +00:00
cube 988ef44d13 Rework the way manual pages are handled.
- .man.pre files are treated just like .man files.
 - Makefiles are offered the choice of using sed or cpp for the
   transformation.  MKXORG will default to sed, MKX11 to cpp.
 - At least for now, versions of packages are not tracked individually.
2008-10-14 23:33:55 +00:00
macallan 8abf7fc8d9 Some fixes to the TAU support code:
- set the ADC time according to clock speed, not some magic number
- move some mtspr()s which we really only need to do once
- make our envsys_data_t static, this should fix PR 39411
2008-10-14 22:54:22 +00:00
jmcneill e2728f33e6 ehci_dump_itd and _sitd are unused 2008-10-14 18:32:53 +00:00
mrg d5ae492949 find the kmodule ldscript in the source tree again.
should fix a build issue reported by jmcneill.
2008-10-14 18:31:42 +00:00
jmcneill b8aea8193c kern/39727: race condition in ehci isoc abort xfer path
From Jeremy Morse:

  * Serialize access to the ehci intrlist.
  * Change the ehci intrlist to a tailq so xfers are not queued out of order.
  * In ehci_check_itd_intr, don't treat a transfer error as an indication
    that the xfer is no longer active.
2008-10-14 18:12:38 +00:00
matt 02ed53f8f6 Need to be __clz[sd]i2 2008-10-14 17:23:33 +00:00
pooka 2002727b2c Give maximum level of network softinterrupts a symbolic constant
(which happened to get bumbed from 32 to 33 (AF_MAX) now).
2008-10-14 17:15:20 +00:00
matt c9a118aa75 Add FA526 support (compile tested only) 2008-10-14 16:01:22 +00:00
cegger 9250503c06 do correct octal counting and use CPUID_APM_FLAGS in cpuctl 2008-10-14 15:49:04 +00:00
tsutsui 8e13c684aa If no booted_device is found in find_root(), also check CD-ROM boot
with strategy bootloader does.  This allows one CD system with cd9660
root file system and mfs (like a restorecd for cobalt) using GENERIC.

No objection on port-i386, and no bad side effect on usual harddisk boot
or installation of GENERIC with miniroot module.
2008-10-14 15:48:44 +00:00
tsutsui 9f5daccbf0 Regen autoconf stuff using tools version of autoconf (in src/tools/autoconf),
as per suggestion from apb@ on tech-toolchain.
Tested 'build.sh -U release iso-image' on NetBSD/i386 4.99.73.
2008-10-14 15:23:26 +00:00
bjs 8ff9ca028e Fix handling of lists with a single entry in list_for_each_safe();
this also plugs a memory leak.
2008-10-14 14:55:28 +00:00
cegger 6b341232c5 add cpuid fn 80000007 %edx: AMD Power Management feature flags 2008-10-14 14:33:51 +00:00
ad e2115ceee7 PR kern/39726 Soekris 5501-60 boot/bootxx 120 second delay
Try enabling A20 using an extended BIOS call before playing around with
the keyboard controller or system config port.
2008-10-14 14:18:11 +00:00
pooka a44cdde52c M_IOV is used all over the place, so stuff it in with malloc_stdtypes 2008-10-14 14:17:49 +00:00
pooka fe413fd0f6 +IPL_SOFTNET 2008-10-14 14:09:29 +00:00
ad 82e3c0b1ac Accept filters:
- Remove remaining #ifdef INET.
- Avoid holding locks so we don't need to do KM_NOSLEEP allocations.
- Use a rwlock to protect the accept filter list.
- Make it safe to unload accept filter modules.
- Minor KNF.
2008-10-14 13:45:26 +00:00
ad 978e1181ad Use designated initializers for struct accept_filter. 2008-10-14 13:05:44 +00:00
cegger 9f76b1e7c7 fix output of 3DNOWPREFETCH feature flag 2008-10-14 12:22:29 +00:00
pooka 6fd4c68b67 Add some more trivial emulations. 2008-10-14 10:42:27 +00:00
pooka a48233737f score some stubs 2008-10-14 10:32:38 +00:00
wiz 34edb0b49f Typo fix and punctuation nit. 2008-10-14 09:29:40 +00:00
ad a68a7877a5 Correction to previous. 2008-10-14 09:17:23 +00:00
ad a65f991bb4 Redo kern_resource.c:1.146 by pooka@: change ui_sbsize to a u_long. 2008-10-14 09:16:32 +00:00
apb 4c441fdf08 Use "?=", not "=", to set default values for the TOOL_* variables
added in the previous commit.
2008-10-14 07:24:34 +00:00
matt 01a00ce83a Add a _clzsi2 for armv4 platforms. 2008-10-14 03:16:20 +00:00
pooka 8a7a4b8184 Add a simple example of how to use rump networking facilities.
This just contacts www.NetBSD.org, does GET / and displays the
result.

It either uses the host kernel socket provided PF_INET or the kernel
TCP/IP stack running in userspace (via if_virt and /dev/tap),
depending on the libraries it's linked with.

(not built yet, as I need to commit some more bits from my local
tree for it work)
2008-10-14 00:56:24 +00:00
pooka 65f822a3e5 Make the "something random" ethernet address ETHER_IS_LOCAL
(address assignment probably needs some more work if we want to
support multiple interfaces).

hat tip to Quentin Garnier
2008-10-14 00:50:44 +00:00
mrg 6fa3737bb8 since the Makefile creates stuff in (objdir) ./ldscripts/ and then
later deletes it, move the kmodule ldscript into 'xldscripts' and
deal with it from there.

fixes build issues where src/gnu/usr.bin/binutils/ld/ldscripts went
missing as reported by at least 2 people so far.
2008-10-13 22:36:55 +00:00
pooka 5ca4322cea Add tcp debugging as a build option. 2008-10-13 22:24:06 +00:00