simonb
5d42733d1c
Add some KNF whitespace.
2020-09-30 05:04:54 +00:00
jmcneill
2929927574
Collapse all CPU_CORTEXA<n> options into CPU_CORTEX and do runtime
...
detection instead of ifdefs where required.
2020-09-29 19:58:49 +00:00
roy
428927374e
vether(4): Add ATF tests based on the tap(4) tests.
2020-09-29 19:41:48 +00:00
roy
76faeff505
inet: Treat LINK_STATE_UNKNOWN as LINK_STATE_UP when changing
...
It's something we have always done.
it's really rare for anything to transition to UNKNOWN from either
UP or DOWN, but technically it is possible.
2020-09-29 19:33:36 +00:00
rillig
67eca6e99d
make(1): rename ShortVarValue to UndefinedShortVarValue
2020-09-29 19:20:08 +00:00
rillig
f89580c421
make(1): add test for using the :D variable modifier as comment
2020-09-29 18:48:43 +00:00
rillig
cff1f8a366
make(1): remove unused assignments to local variables
...
These only became obvious once ApplyModifier had been extracted, which
shrank the source code of ApplyModifiers by about 100 lines.
Even GCC 5 had seen that they are redundant and had not generated any
code for them.
2020-09-29 18:44:30 +00:00
roy
6c00c3be34
rumpify vether(4)
2020-09-29 18:33:22 +00:00
rillig
36e807e1d5
make(1): extract ApplyModifier from ApplyModifiers
...
This allows a return, instead of a variable assignment followed by a
break, saving a few lines of source code.
The size of the resulting binary shrinks as well, even though the code
is essentially the same as before.
2020-09-29 18:31:39 +00:00
roy
5f960c42fc
libtap: Improve comment
2020-09-29 18:31:31 +00:00
rillig
39d1e1c2b5
make(1): fix test job-output-long-lines
...
The test failed on Linux since the test relied on the two child
processes interleaving each other. This is not guaranteed to happen
though.
2020-09-29 18:16:24 +00:00
skrll
7c77f45c9b
Fix RPI (armv6) build
2020-09-29 18:13:29 +00:00
roy
fd5c758a79
Whitespace
2020-09-29 16:35:42 +00:00
roy
d76886af8e
Fix build with clang.
2020-09-29 16:34:07 +00:00
martin
a23a20c65a
Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
...
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.
2020-09-29 15:29:17 +00:00
martin
8e2247ea41
PR 55381: try to deal with moved (but not yet saved) partitions when
...
calculating free space
2020-09-29 14:29:56 +00:00
gson
fe093d7595
When reporting an error before daemonizing, prefix the error message
...
with the program name.
2020-09-29 14:08:43 +00:00
roy
2d02f67b40
xinstall: define MAKE_NATIVE so our make parts compile
2020-09-29 12:04:48 +00:00
msaitoh
b140fa3c95
Add [-]eee and [-]vlan-hwfilter.
2020-09-29 08:52:11 +00:00
gson
30dac4875b
Log a message when a process blocks due to a lack of entropy.
...
Discussed on tech-kern.
2020-09-29 07:51:01 +00:00
msaitoh
8d86b96727
s/settng/setting/
2020-09-29 03:04:03 +00:00
msaitoh
cccc3d1cb5
s/implicitely/implicitly/
2020-09-29 03:02:18 +00:00
msaitoh
57920690e6
s/occurence/occurrence/
2020-09-29 02:58:51 +00:00
msaitoh
811d5a8b03
s/parition/partition/
2020-09-29 02:49:55 +00:00
thorpej
b6aba92a70
Improve time keeping and host CPU usage when running in Qemu:
...
- clockattach(): Allow multiple calls when running in Qemu. Anything
after this first one is ignored, but this gives us a change to use
a clock source provided by the VM directly, rather than relying on
a more expensive hardware emulation.
- Add cpu_initclocks_secondary(), to handle clock setup on secondary
CPUs, if needed.
- Allow us to use the WTINT PALcode call in cpu_idle() to idle in a lower
power state (Qemu's PALcode supports this).
- Use the Qemu per-cpu set-alarm-rel call as the hardclock interrupt
source. In Qemu environments, reduce hz to 50 (rather than the
default 1024) to give the clock a snowball's chance when running on
a host system with hz=100. XXX We have to manually re-calculate
tick and tickadj. There should be MI code to do this for us. Also
in Qemu environments, let hardclock() drive the sched clock by setting
schedhz=0.
2020-09-29 01:33:00 +00:00
thorpej
8dff47c64e
mcclock_init(): Only do our work if called on the primary CPU.
2020-09-29 01:20:59 +00:00
thorpej
cee1d02876
If running in Qemu, don't report stray edge-triggered ISA interrupts.
...
Works around an issue I obvserved with serial console in Qemu.
2020-09-29 01:19:52 +00:00
thorpej
48ca616e22
Add alpha_pal_wtint(), which invokes the WTINT PALcode call.
2020-09-29 01:17:22 +00:00
simonb
20d7b25b25
Add a slow twiddle option. This speeds up a pmax netboot by 15% and
...
is only 1% slower than no twiddle.
2020-09-29 00:13:12 +00:00
rillig
8644c277f7
make(1): replace Lst_Open with direct iteration
2020-09-28 23:31:18 +00:00
rillig
35a8c8e3ca
make(1): replace += 1 with ++ and -= 1 with --
...
Just for visual consistency. The generated code stays exactly the same.
2020-09-28 23:13:57 +00:00
rillig
fa2d8ab826
make(1): migrate Make_ProcessWait from Lst_ForEachUntil to Lst_ForEach
2020-09-28 23:02:02 +00:00
rillig
7cf03aa59d
make(1): remove the inline attribute from debug_printf
...
The code size overhead of a varargs function is much more than I had
expected. Since GCC 5 didn't inline the function anyway and it is only
used in debug mode, there is no point keeping multiple copies of that
code around.
2020-09-28 22:38:32 +00:00
rillig
37111947f1
make(1): make debug logging simpler
...
This avoids referring to the debug_file variable in many places where
this implementation detail is not necessary.
2020-09-28 22:23:35 +00:00
rillig
ee41c9d210
make(1): extract logging from ApplyModifiers into separate functions
...
These two logging blocks are massive enough to disturb the reading flow
of the remaining code.
Even without these two blocks, ApplyModifiers is still 250 lines long,
which is quite much.
2020-09-28 21:11:05 +00:00
rillig
99967cf4ab
make(1): move variable modifier :sh into separate function
2020-09-28 21:01:53 +00:00
rillig
e3e4182775
make(1): make debug logging in var.c compatible to C90
...
The ... ellipsis for macros is only available since C99.
2020-09-28 20:55:20 +00:00
rillig
ae6e2b2c4b
make(1): make debugging code shorter
2020-09-28 20:46:11 +00:00
martin
6b2c269297
PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
...
cdrom is available.
2020-09-28 18:51:34 +00:00
martin
07c7ef657d
PR 55378: do not assume RAW_PART to be either 2 or 3
2020-09-28 18:40:23 +00:00
martin
7886d74d77
PR 55377: mark boot partitions in the partition size display, as suggested
...
by Izumi Tsutsui (minor modifications + all bugs by me)
2020-09-28 18:13:25 +00:00
thorpej
f596e4cb5b
Remove a no-longer-accurate comment.
2020-09-28 16:27:47 +00:00
roy
4d511cd47d
ifconfig: Just look at if_data->ifi_link_state for carrier
...
It should be the sole source of truth.
if_data is also carried in ifa_data from getifaddrs(3) which saves
more ioctl calls.
2020-09-28 13:50:22 +00:00
jakllsch
fd597c5490
fix typo that prevented bytes/physsect reporting from working
2020-09-28 12:47:49 +00:00
jmcneill
5abef1666f
faa_a4x_bst is no more
2020-09-28 12:15:23 +00:00
jmcneill
ded60d98d5
faa_a4x_bst is gone
2020-09-28 12:14:47 +00:00
skrll
9f476b65f4
Only set pmap_devmap_bootstrap_done if something gets mapped.
...
Think acpi_platform_devmap
2020-09-28 12:04:19 +00:00
jmcneill
c30892ca9f
Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumer
...
of this was various com(4) glue so modify all of that to use the new
com_init_regs_stride instead.
2020-09-28 11:54:22 +00:00
jmcneill
8efd0a8e92
Default reg-shift is 2, not 0, for DW APB UART
2020-09-28 11:34:47 +00:00
jmcneill
07567a47ca
Auto-detect DW APB UART FIFO length and print the FIFO length when enabled
...
instead of just "working fifo".
2020-09-28 11:33:15 +00:00