Commit Graph

204497 Commits

Author SHA1 Message Date
joerg 307d355803 staticfy. __dead. 2011-08-27 16:34:38 +00:00
joerg fbefc91819 static. __dead. 2011-08-27 16:29:51 +00:00
christos 506a776d6f Implement sparse dumps for amd64 (copied from i386). Disabled for now via
sysctl.
XXX: most of the code can be merged.
2011-08-27 16:23:44 +00:00
joerg 1a61ef5ea6 staticfy. Use __dead. 2011-08-27 16:12:54 +00:00
joerg 1cd05199a0 staticfy. Use __nodead 2011-08-27 16:10:51 +00:00
joerg 0927b2bcb2 staticfy. Use __dead. 2011-08-27 16:05:27 +00:00
joerg 17941b2b14 staticfy. Use __dead. 2011-08-27 15:46:59 +00:00
joerg c59117b957 ANSIfy. staticfy. Bail out on command line error. Use __dead. 2011-08-27 15:45:52 +00:00
joerg 973abb9784 De-__P. staticfy. Use __dead, __printflike. 2011-08-27 15:40:31 +00:00
joerg 43d0646972 Don't check for __attribute__ being defined, it won't. Check for GCC 3.x
or compatible and define BOZO_PRINTFLIKE / BOZO_DEAD. Fix fallout.
2011-08-27 15:33:59 +00:00
hannken f68873a343 Finish and enable whiteout support for tmpfs:
- Enable VOP tmpfs_whiteout().
- Support ISWHITEOUT in tmpfs_alloc_file().
- Support DOWHITEOUT in tmpfs_remove() and tmpfs_rmdir().
- Make rmdir on a directory containing whiteouts working.

Should fix PR #35112 (tmpfs doesn't play well with unionfs).
2011-08-27 15:32:28 +00:00
joerg 6839411995 Rename err() to avoid overlap with libc. Mark it dead. 2011-08-27 15:08:58 +00:00
bouyer 12455d2438 Add fdisk and ext2fs tools, pmon-based platforms needs them. 2011-08-27 14:30:33 +00:00
bouyer ccb3b2f232 Add loongson support to evbmips, based on the OpenBSD loongson port
and the existing evbmips/gdium support.
This has been tested on a lemote fuloong device (boots multiuser),
should also support other lemote devices (maybe with minor adjustments,
or adding missing drivers). There is some gdium support here too, but it
may not be yet complete (someone with a gdium would need to have a look,
hi macallan@ :)
loongson kernels are 64bits only: the loongson2f has ressources located
above the 2Gb physical address, and it's much easier to access it
using XKPHYS than trying to make it fit in the limited 32bit kernel
virtual space.
2011-08-27 13:42:44 +00:00
bouyer 62c4d5a467 Add pmon (firmware used by loongson2-based systems and maybe others) support,
from OpenBSD.
This includes code to call back pmon routines from a 64bit kernel,
as well code to read pmon arguments and variables.
2011-08-27 13:34:29 +00:00
bouyer fe2e97b4b5 Add a basic driver for the SIS315 Pro frame buffer found on some loogson2-based
systems, from OpenBSD.
At this time it can only map the framebuffer and attaches wscons,
using whatever resolution was configured by the firmware.
It doens't support any accelaration or mode change.
2011-08-27 13:28:37 +00:00
bouyer 4c44c335c5 loongson2f support:
- Add some loongson2 definitions to cpuregs.h, from OpenBSD
- Make sure that the at register is useable before every jump register
  instruction (exept when register is k0 or k1) because -mfix-loongson2f-btb
  needs the at register for its workaround
- add code to mips_fixup.c to handle the instructions added by
  -mfix-loongson2f-btb
- Add a ls2-specific tlb miss handler: it doesn't have separate handler
  for the xtlbmiss exeption.
- Fixes for some #ifdef MIPS3_LOONGSON2 assembly code (using the wrong
  register)
2011-08-27 13:23:52 +00:00
bouyer 0c15c4be25 Add a fix-loongson2f-btb option to gas, from OpenBSD.
This works around a bug in the branch prediction logic of the
CPU which can cause a hard hang. The existing fix-loongson2f-jump
works around the same bug, but by 'fixing' the jump target to be within the
same 256MB region as the kernel. This will (silently) cause a jump
to the wrong address if the jump is intentionally to some other
region (e.g. a call to pmon).
fix-loongson2f-btb instead works around the issue by adding an explicit flush
of the branch target buffer (via a write to a cop0 register) before every
jump register instruction.
2011-08-27 13:19:39 +00:00
bouyer ad05e3fb85 Loongson2f support:
- make the 'struct bonito_config' const, so that it can be in kernel
  text instead of data.
- Add a bc_attach_hook to struct bonito_config, to be used as pc_attach_hook
  if not NULL.
- Add some LS2-specific register defines (LS2f uses a modified bonito64).
2011-08-27 12:59:16 +00:00
joerg aa6d7bb577 Annotate dead functions 2011-08-27 12:55:09 +00:00
bouyer efd9548b67 Split gcscpcib into MI part, and MD pci attachement which is also in
charge of attaching the MD pcib device.
Will be used by the upcoming evbmips loongson support.
2011-08-27 12:47:49 +00:00
christos 93e326680f use c99 struct initializers 2011-08-27 09:32:11 +00:00
mbalmer 2b9c7d3182 Enable some gpio devices. 2011-08-27 09:28:55 +00:00
christos 262ad41ded Add an optional pglist argument to uvm_obj_wirepages, to be
filled with the list of pages that were wired.
2011-08-27 09:11:52 +00:00
christos 0aa57dbb94 add new arp logging sysctls 2011-08-27 09:06:58 +00:00
christos 4460dc9ac3 Add 3 logging sysctls for arp from freebsd:
1. log_movements: do you want to log the arp overwritten message or not?
2. log_wrong_iface: do you want to log when an arp arrives at the wrong
   interface?
3. log_permanent_modify: do you want to log when an arp message attempts
   to overwrite a static entry?

I did not call the sysctls log_arp like FreeBSD does, because we already
have an arp sysctl level. The default is on for all three of them.
2011-08-27 09:05:54 +00:00
dyoung 9943264696 Build and install ppath(3), property-list paths library. 2011-08-26 21:22:07 +00:00
jmcneill 1501db31c9 defflag DEBUG_EXEC 2011-08-26 19:07:13 +00:00
mbalmer edd34c0a58 u_int32_t -> uin32_t. 2011-08-26 15:00:07 +00:00
mbalmer de6eed829e Add a pmf resume function to put the hardware in a defined state after
resume.  Problem found by jmcneill@.
2011-08-26 13:29:56 +00:00
jmcneill 6051688a5b Fix a typo in r1.243: test for STACKALIGN not STACKLALIGN:
"If STACKALIGN is defined, use it instead of ALIGN.  Some arches need a
 stack more aligned that ALIGN will give."
2011-08-26 12:52:01 +00:00
jmcneill e3bc158053 pmap_remove_all: change panic to warning 2011-08-26 11:16:50 +00:00
jmcneill e81c3e4b4c define __USE_TOPDOWN_VM 2011-08-26 11:01:32 +00:00
mbalmer d8bf2a4e69 Remove one of the copyrights, it is the same person. Remove variable name
in prototype.
2011-08-26 10:30:47 +00:00
reinoud a6fda0ea96 Provide a better fix for the checks 2011-08-26 09:29:16 +00:00
reinoud 1bcd23da1f Revert. 2011-08-26 09:26:14 +00:00
reinoud a6debd8fb7 Change aprint_verbose() to a normal printf() surrounded by #ifdef DIAGNOSTIC 2011-08-26 09:13:08 +00:00
reinoud 9f6b65f0ad Add checks for architectures that need a check for VM_MIN_ADDRESS 2011-08-26 09:10:41 +00:00
reinoud e5fe2f455a Fix check for VM_MIN_ADDRESS since it doesn't need to be a constant 2011-08-26 09:07:48 +00:00
tron d504399e17 Avoid non-literal format strings. 2011-08-26 09:01:07 +00:00
plunky 9c77eacafa add some info re use of Modem and Network ports 2011-08-26 07:56:00 +00:00
christos 012b2b9c3c fix compilation for VM_MIN_ADDRESS == 0 2011-08-26 06:56:11 +00:00
dholland ae56ae8f3f Use __dead and __printflike instead of __attribute__. 2011-08-26 06:18:16 +00:00
joerg ed20f4b6ec pw_error is documented to be dead 2011-08-26 01:48:39 +00:00
joerg be47d2fc97 __assert and __assert13 are dead 2011-08-26 01:10:49 +00:00
reinoud 336984324e Move debug -> verbose 2011-08-25 19:54:30 +00:00
jakllsch 3c644b8a5a Bring mount_psshfs user/host/path argument processing in line with sftp(1). 2011-08-25 19:49:05 +00:00
reinoud f6a2add8fe On a verbose kernel boot show why executables are denied due to their start
adresses. This will hardly ever occure in real-life.
2011-08-25 19:14:07 +00:00
dyoung 199cc6c15a Add tests for ppath(3).
TBD: hook into build and update set lists.
2011-08-25 19:09:46 +00:00
reinoud 6d2b20cf95 When this debug printf is enabled, please also tell WHAT address one is using
for read/write.
2011-08-25 19:08:35 +00:00