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
jmcneill
04135eb260
Use com_init_regs_stride instead of a4x tag
2020-09-28 11:32:19 +00:00
nia
9c6c6fa2f4
unbreak. bsd.files.mk needs to have an includes target, see also
...
share/wscons/fonts/Makefile
2020-09-28 06:04:08 +00:00
macallan
afd3787898
first step towards r5xx support:
...
- no CRTC programming yet, we just use whatever mode the (open)firmware hands
us
- palette control, fb location etc. all work
- hardware acceleration for character drawing, scrolling etc. works
- hardware cursor works
... tested & still works on various radeons in various macppc machines
2020-09-28 05:43:58 +00:00
macallan
08cefa9647
moar registers
2020-09-28 05:38:41 +00:00
thorpej
6aaab0fcf5
qemu device for INSTALL, too.
2020-09-28 03:48:12 +00:00
sjg
2f6ec61b00
Revert last
2020-09-28 03:34:07 +00:00
sjg
858c94d56b
more unit-tests
2020-09-28 03:32:51 +00:00
thorpej
cdacf5fee4
Fix typo in rev 1.408.
2020-09-28 03:30:47 +00:00
simonb
bfa322536e
Whitespace alignment nit.
2020-09-28 02:44:34 +00:00
sjg
af1c8532d3
Remove unnecessary dieQuietly calls
2020-09-28 02:06:27 +00:00
sjg
d9de394581
Ensure that parse errors report 'stopped in'
2020-09-28 01:24:34 +00:00
simonb
e40749edde
Protect where the bootinfo esym value is less than the kernel "end"
...
symbol by setting the end of kernel marker to the greater of these
two values.
XXX: elf2ecoff bug??
2020-09-28 01:20:29 +00:00
rillig
22b1a300bf
make(1): format job.h consistently
2020-09-28 00:13:03 +00:00
rillig
c22794195d
make(1): split Job.jobPipe into 2 separate fields
...
Just because these file descriptors have to be in an array when they are
created is not reason enough to keep this array and a few access macros
in the Job struct. It's better to have separate fields, as they can be
documented independently.
2020-09-28 00:06:36 +00:00