christos
e804370940
fix ti_puts prototype
2015-11-23 22:35:28 +00:00
christos
62025e09ce
PR/50344: Stephen Fisher: apropos shows formatting on console with vt100 term
...
type. Can't print terminfo sequences directly; need to process them with
ti_puts() to handle padding. This removes the padding delays, and stricly
could break on slow terminal hardware, but they way the code is structured
makes it impossible to fix properly (since the formatting strings are
passed in the query).
XXX: pullup-7
2015-11-23 22:34:00 +00:00
pgoyette
6cf6af127d
Clean up the error paths in filemon_ioctl(), making sure to release the
...
rw_lock before returning. Avoids a "locking against myself" error
reported by Brad Harder.
2015-11-23 22:20:57 +00:00
jdc
19c1caef81
Set the target JPID for all interrupts on Tomatillo.
...
If the "ino-bitmap" property is available, use it to route error interrupts.
Minor cosmetic changes.
Add register printing when DEBUG is defined.
2015-11-23 21:40:14 +00:00
christos
0e5ab369bd
PR/49380: KAMADA Ken'ichi: ntpd_chrootdir does not work on NetBSD 7.0_BETA
...
Provide /etc/resolv.conf so that it can resolve names. This is needed because
of deferred name resolution.
XXX: pullup -7
2015-11-23 19:56:47 +00:00
mlelstv
20725a9902
fix assertion checking that bufrd function is used only for large symlinks
...
that aren't embedded in the inode.
2015-11-23 08:00:45 +00:00
pgoyette
76f6833566
Retrieve the pathname of the exec'd file before we call sys_execve().
...
We cannot rely on using copyinstr() to retrieve the pathname from
user mode after a successful exec, since the user mode address space
is no longer valid (and may not even be accessible). This worked in
earlier code but was broken by rev 1.7.
2015-11-23 00:47:43 +00:00
christos
e2f72a0028
Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
...
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
2015-11-22 20:47:42 +00:00
christos
4fe0054f39
Fix logic bug where __cpuid gets called when __get_cpuid_max() returns 0.
...
This happens when __level == 0, from libgcc/config/i386/cpuinfo.c#285.
This breaks early i486 CPUs which don't have cpuid
XXX: pullup-7
2015-11-22 20:47:05 +00:00
christos
fc8a4870ed
Don't chdir to the config directory; just form the parameters file with a
...
path if needed.
2015-11-22 20:24:19 +00:00
tsutsui
2af5fde181
Remove \n from set_cpumodel(), and explicitly print \n during boot instead.
...
Fixes dmesg on NetBSD/dreamcast 7.0 (and probably NetBSD/hpcsh 7.0):
---
NetBSD 7.0 (GENERIC.201509250726Z)
SEGA Dreamcasttotal memory = 16384 KB
avail memory = 13668 KB
---
which was mangled when cpu_getmode() and cpu_setmodel() were introduced:
http://mail-index.netbsd.org/source-changes/2014/03/24/msg053273.html
Should be pulled up to netbsd-7 and netbsd-7-0.
2015-11-22 18:44:25 +00:00
aymeric
c480fc766d
do not fail if no awintcon is present so that ALLWINNER_A80 compiles again
2015-11-22 17:50:48 +00:00
christos
cd40e75014
explain how to clear an entry (without reading the source)
2015-11-22 15:53:10 +00:00
maxv
165df8bad6
Remove cpu_vendorname (unused). It is retrieved later in identcpu.c.
2015-11-22 14:06:08 +00:00
maxv
a406542551
KNF a bit, so I don't get scared each time I open a file
2015-11-22 13:41:24 +00:00
jmcneill
a5c784b329
replace inline mc_read/write with MC_READ/WRITE macros, install intr handler with IST_MPSAFE flag
2015-11-22 12:26:11 +00:00
martin
49e022399f
Reduce the "MAXDSIZ" limit for bottom-up-VA (i.e. old binaries) processes
...
to the old limit of 1 GB. Some old binaries can not deal with more.
2015-11-22 11:42:55 +00:00
martin
4d43062345
Use NETBSD32PTR32I() for pointer-to-32bit value conversion, requested
...
by mrg.
2015-11-22 11:24:08 +00:00
maxv
67b107f811
Clarify:
...
- add some comments
- rename some jumps
- KNF
No functional change.
2015-11-22 10:18:59 +00:00
martin
44d63857d1
Removy now unused {s,f}uword
2015-11-22 10:18:14 +00:00
wiz
4cce8f946f
Bump date for previous.
2015-11-22 09:37:33 +00:00
martin
536e060075
remove all MD uses of suword(), replace by copyout()
2015-11-22 09:32:34 +00:00
kamil
b86d7f33dd
+libpanel: Z-order for curses windows
2015-11-22 05:12:22 +00:00
kamil
14fc2d7931
+libpanel (Russian version)
2015-11-22 05:10:28 +00:00
kamil
6e002b49ee
+libpanel (French version)
2015-11-22 05:06:56 +00:00
kamil
e1f3900163
+libpanel
2015-11-22 05:01:44 +00:00
kamil
1d5ce4bbb4
Add new predefined value for DPADD: LIBPANEL
2015-11-22 04:59:15 +00:00
kamil
43589aae40
Note to update major of libpanel(3) for new major of curses(3)
2015-11-22 04:56:00 +00:00
kamil
15fb689c63
Plug-in libpanel(3): Z-order for curses windows
2015-11-22 04:44:30 +00:00
kamil
51fc1f0d9d
Specify path of a local internal header of libpanel
2015-11-22 04:30:33 +00:00
kamil
93a51714f2
Set LIBDPLIBS in libpanel for the required curses dependency
2015-11-22 04:26:14 +00:00
kamil
60586773ca
Set the INCSDIR value of panel.h to /usr/include
2015-11-22 04:23:32 +00:00
kamil
71ae6a01f6
Define man page links of the libpanel functions
2015-11-22 04:21:39 +00:00
kamil
596a81a358
Update the list of libpanel man pages
2015-11-22 04:16:22 +00:00
kamil
0fcafa04c2
+ aligned_alloc.0
2015-11-22 03:31:00 +00:00
pgoyette
28b908ec33
Fix return-code handling for execve and chdir wrappers.
...
Fixes PR kern/50309
2015-11-22 01:20:52 +00:00
uebayasi
e1ddff408d
A few more.
2015-11-22 01:20:36 +00:00
jmcneill
e2e02058ba
enable tegrasoctherm
2015-11-21 22:55:46 +00:00
jmcneill
0af3fdefa2
Add SOC_THERM temperature sensor driver:
...
# envstat -d tegrasoctherm0
Current CritMax WarnMax WarnMin CritMin Unit
CPU0: 27.500 degC
CPU1: 27.500 degC
CPU2: 29.500 degC
CPU3: 29.000 degC
MEM0: 26.500 degC
MEM1: 27.000 degC
GPU: 27.000 degC
PLLX: 28.000 degC
2015-11-21 22:55:32 +00:00
jmcneill
e7f77e44de
Apply initial fuse offset in tegra_fuse_read instead of in each reg def
2015-11-21 22:52:31 +00:00
jakllsch
77011a5640
Add error interrupt handler to for Tegra MC.
2015-11-21 16:50:29 +00:00
jakllsch
81bc32ac74
Add a bunch of hopefully-useful Tegra MC register bits.
2015-11-21 16:48:33 +00:00
martin
0d8f679638
Fix an off by one in the bit definition for RX store and forward mode.
...
Pointed out by ganbold.
While there add a few other bits of the same register.
2015-11-21 16:04:11 +00:00
christos
e9836e5e7e
fix format
2015-11-21 15:22:17 +00:00
christos
301b67f323
WARNS=6
2015-11-21 15:01:43 +00:00
christos
2ea5bc272a
PR/50454: Timo Buhrmester: Fix wrong allocation for wall(1) -g
...
Modernize.
2015-11-21 14:59:51 +00:00
maxv
a84a9bb93c
Remove the amd64 implementation of fuword and suword. They are not used in
...
the MI+amd64 code - Christos replaced them yesterday by copy*.
They are both buggy:
- suword does not properly check the userspace limit: 64 bits are copied,
but the max address checked is VM_MAXUSER_ADDRESS-4, which means that 4
bytes may overflow. Reported by Ed Schouten.
- fuword is supposed to be symmetrical with suword. But it uses 32bit
registers, so it stores 32bit values! Spotted by Chuck (chs@).
2015-11-21 12:34:48 +00:00
jmcneill
fd21f708a1
Try to reboot with the PMIC if available, falling back to PMC.
...
When the PMIC watchdog is armed and we reboot via PMC, the watchdog stays
armed on the next boot (and we end up being reset mid-boot the second time).
By rebooting with PMIC, we can ensure that the watchdog is not armed after
reset.
2015-11-21 12:22:25 +00:00
jmcneill
b1573d55e6
expose pmic reset functionality
2015-11-21 12:19:47 +00:00
pgoyette
b094e9b9cd
Add the filemon(4) device.
2015-11-21 12:11:56 +00:00