Commit Graph

204485 Commits

Author SHA1 Message Date
veego 4706098c29 Add the u3g id for the Huawei 1750 stick 2011-08-24 19:39:05 +00:00
macallan 95edcce732 fix up the environment pointers to be usable in LP64 2011-08-24 19:03:02 +00:00
plunky e2bd4b0723 -Wno-shadow is no longer needed for HAVE_PCC, here 2011-08-24 17:39:32 +00:00
matt b26c11e6b8 Build the GDIUM64 kernel (since it tests 16KB pages). 2011-08-24 16:03:34 +00:00
matt 38b53e5ae4 Add a 64-bit GDIUM configuration. 2011-08-24 16:02:26 +00:00
matt b6945981e5 When using 16KB pages in a 64 bit kernel, the amount of address space our page
table can address can be larger than the amount of address space the CPU
implementation supports.  This change limits the amount address space to what
the CPU implementation provides.
2011-08-24 16:01:53 +00:00
matt e4980d209b On N32 kernels, cast offset to (intptr_t) to shrink it back to 32-bits. 2011-08-24 15:11:52 +00:00
reinoud 3136589636 Swap userland code and kvm spaces so that userland lives from VM_MIN_ADDRESS
to VM_MAXUSER_ADDRESS and KVM is above that.

Note that the userspace is surrounded by a configurable amount of
non-accessible barrier space to prevent accidental out-of-boundaries access
even when reading.
2011-08-24 12:54:46 +00:00
christos a14203e91d Instead of using strncat and re-scanning the strings all the time, use and
append printf function.
2011-08-24 12:15:44 +00:00
reinoud 6085a17bdc Duh... fix stupid debug print bug. 2011-08-24 11:50:28 +00:00
reinoud 90dde37c2d Cleanup comments and debug stuff 2011-08-24 11:41:00 +00:00
reinoud 7dc730ef51 Use the VM_MIN_ADDRESS `constant' for the offset calculation of virtual
address to a logical page address.
2011-08-24 11:30:59 +00:00
mbalmer 48993feb86 Wrap the include "opt_umass.h" in #ifdef _KERNEL_OPT. 2011-08-24 11:28:50 +00:00
reinoud e72363fcf4 Fix vmparam's definitions to the new style 2011-08-24 11:26:43 +00:00
reinoud f89adc7ee2 First pass of NetBSD/usermode's pmap.c cleanup:
* use thunk_malloc() for UVM space allocation releasing sbrk()
	* make pmap.c 64 bit friendly for large page numbers
2011-08-24 11:02:31 +00:00
jmcneill 4286b6d7f6 add procfs support 2011-08-24 10:59:10 +00:00
reinoud 6974a113d3 kmem_data_start is no longer needed 2011-08-24 10:57:48 +00:00
reinoud 5477dab842 Implement thunk_malloc() and think_free() 2011-08-24 10:56:44 +00:00
christos 14e36cd2fb remove unneeded casts 2011-08-24 07:51:31 +00:00
mrg 012f831146 normalise #if defined(MULTIPROCESSOR) usage. 2011-08-24 02:51:13 +00:00
wiz 098681c432 Bump date for previous. 2011-08-23 22:14:51 +00:00
dyoung 64311e1f9d Introduce a couple of new constants, VMEM_ADDR_MIN (the least possible
address in a vmem(9) arena, 0) and VMEM_ADDR_MAX (the maximum possible
address, currently 0xFFFFFFFF).  Modify several boundary conditions so
that a vmem(9) arena can allocate ranges including VMEM_ADDR_MAX.
Update documentation and tests.

These changes pass the tests in sys/kern/subr_vmem.c.  To compile the
and run the test program, run "cd sys/kern/ && gcc -DVMEM_SANITY -o
subr_vmem ./subr_vmem.c && ./subr_vmem".
2011-08-23 22:00:57 +00:00
jmcneill 84f3db989a call hardclock from a softint instead of signal handler 2011-08-23 21:56:02 +00:00
jmcneill 23f5395b58 add a wrapper for signal(3) 2011-08-23 21:55:21 +00:00
christos 76987894af misc knf cleanup. 2011-08-23 20:27:22 +00:00
christos 91cc0e5629 more fixes from martin 2011-08-23 19:57:24 +00:00
christos 3e74546ba5 remove stray brace, minor knf 2011-08-23 19:17:07 +00:00
reinoud f54c6f5d02 Give malloc(3) a barrier to allocate OVER... i.e. let the space at ease!
Note that it could use an extra barrier too.
2011-08-23 18:37:51 +00:00
reinoud 35db8893df Use write(1,..) and not putchar() 2011-08-23 18:36:08 +00:00
jmcneill f7257e7810 maxmimum -> maximum 2011-08-23 17:28:34 +00:00
jmcneill 95ef55ad75 struct stat also has time_t in it, so we can't use that in the thunk api either 2011-08-23 17:12:32 +00:00
christos 1beaa2ceec PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
filenames (buffer overflow)

makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion.  This creates broken images or causes a buffer overflow
(ISO level 2).

ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.

ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.

$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1

$ mkdir level2
$ touch level2/1234567890.2345678901234567.....34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
2011-08-23 17:09:11 +00:00
jmcneill 52b361a049 more time_t fixes 2011-08-23 17:00:36 +00:00
christos 2b857b66d9 defopt UMASS_DEBUG 2011-08-23 16:16:43 +00:00
jmcneill 0a7c520287 unlink pmap backing file immediately after opening it, so we don't leave
a bunch of 128MB turds sitting around in /tmp
2011-08-23 16:16:26 +00:00
jmcneill 16a0338114 more host vs. userkernel time_t fixes 2011-08-23 16:09:27 +00:00
jmcneill f95d0b07fa don't use kmem from softint context 2011-08-23 15:56:12 +00:00
reinoud 6613ea22ef Implement pmap_create() 2011-08-23 15:35:53 +00:00
reinoud 6ef1d57a0c Fix zero page cleaning. The supplied `pa' is a physical address and no page
number so don't multiply with PAGE_SIZE
2011-08-23 15:12:31 +00:00
jmcneill 36013536d8 host and userkernel timespec might differ in size (because of time_t) so
instead of thunk_clock_getres() filling in a timespec, use instead
thunk_clock_getres_monotonic() that returns the resolution as a long
2011-08-23 14:37:50 +00:00
reinoud e7b3bf46ad Clean up chatty pmap.c and fix important bug that claimed too little kmem
space. Thanks go to jmcneill for finding it!
2011-08-23 14:23:08 +00:00
reinoud a0ace6b461 OOps... there is no aprintf_debug() 2011-08-23 13:37:32 +00:00
reinoud 98f35557ac Braindead implementation of pmap_zero_page() 2011-08-23 13:35:57 +00:00
christos 28ab15e044 don't use lwp_setprivate in fork, but copy the private lwp member directly
because userland might have messed with the TLS register without letting
the kernel know. This fixes fork() on amd64. Thanks chuq!
2011-08-23 13:01:25 +00:00
pgoyette 81d8330c12 Remove left-over debug line 2011-08-23 12:55:50 +00:00
pgoyette 99deda018d Module build glue for if_rum and if_axe 2011-08-23 12:54:05 +00:00
pgoyette 75c5b19872 Update for modular build 2011-08-23 12:53:29 +00:00
reinoud f19d57b776 The pv_tables and the kernel pmap structure are not managed by UVM and thus
shouldn't be returned in pmap_virtual_space() for UVM.
2011-08-23 12:46:58 +00:00
jmcneill e5faa0dc10 get rid of uvmhist stuff 2011-08-23 12:36:20 +00:00
pgoyette 3016e04310 In preparation for building this as a module, clean-up some gcc
-Wsign-compare issues so it will build with WARNS=4
2011-08-23 12:33:50 +00:00