Commit Graph

281328 Commits

Author SHA1 Message Date
rillig
293320330f make(1): fix build on Debian 9
lst.h:92:5: error: unknown type name 'uint8_t'

It had been broken since the previous commit on 2020-09-24 08:23:29.
2020-09-25 04:18:11 +00:00
thorpej
d15aec9581 Changes to make interrupt {,dis}establish MP-safe on Alpha:
- Protect all of the system interrupt linkage with the cpu_lock mutex.
- Re-order some of the stores to the SCB vector table to make it safe
  in the face of lockless interrupt dispatch.
- Add a framework for routing interrupts to specific CPUs.  Interrupts
  are still funneled only to the primary CPU, but that will change for
  some systems soon.  Ensure that interrupt handler lists are manipulated
  only on the CPUs that handle that specific interrupt source.  This required
  a re-factor of the alpha_shared_intr_*() family of functions.
- Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still
  a no-op.
- Reduce code duplication in the Jenson direct-SCB interrupt handlers.
2020-09-25 03:40:11 +00:00
riastradh
84f2820dbf lfs: Include lfs_debug.c only if DEBUG is enabled. 2020-09-24 17:20:53 +00:00
ryo
d32ad742a6 fix *_bs_rm_4_swap(). it was only reading 2 bytes, not 4 bytes.
pointed out by skrll@ thanks.
2020-09-24 16:15:49 +00:00
christos
5093c1f669 Add the generated version file 2020-09-24 14:54:03 +00:00
christos
bc11a54ebd Add version.cc 2020-09-24 14:53:35 +00:00
christos
254454c5af grab the gdbserver version 2020-09-24 14:53:17 +00:00
pgoyette
47b23bc72c As indicated at the top of the file, don't simply remove entries. Instead
we need to mark them "obsolete" so they will get removed if already in the
$DESTDIR
2020-09-24 14:14:18 +00:00
skrll
177f3da6ce Trailing whitespace 2020-09-24 11:02:02 +00:00
ryo
459b824a7d no need to swap pt.cmd.cdwXX at nvme_set_number_of_queues(). cmd.cdwXX will be swapped in nvme_pt_fill(). 2020-09-24 09:59:11 +00:00
mrg
6925e322a7 apply more _KERNEL and fix the amd64 (and probably more) build. 2020-09-24 09:37:07 +00:00
ryo
14df2fa16d fix bugs in *_bs_rm_8_swap(). it was only reading 4 bytes, not 8 bytes. 2020-09-24 09:04:38 +00:00
ryo
fe229880e0 need to swap on big endian machines.
"The ITS command queue uses a little endian memory order model." (GIC Architecture Specification)
2020-09-24 08:50:09 +00:00
rillig
ff01c24104 make(1): make the API of the List partially public
Accessing the fields List.first, List.last, ListNode.prev, ListNode.next
and ListNode.datum in read-only mode should be more efficient than a
whole function call.

All modifications to the lists or their nodes must still happen via
function calls.

This change reduces the code size, makes the code faster to execute and
allows Lst_ForEach to be written inline without the visual overhead of
function calls.
2020-09-24 08:23:29 +00:00
mrg
71037d0c46 fix build on non rmx or octeon systems. 2020-09-24 08:14:08 +00:00
rillig
7e3fe24ae7 make(1): remove redundant function prototypes in suff.c 2020-09-24 08:02:32 +00:00
msaitoh
5673b8ef88 Small fixes from knakahara:
- Check return value correctly in wm_lv_jumbo_workaround_ich8lan().
- Fix comment.
2020-09-24 08:00:59 +00:00
rillig
1848d6d425 make(1): inline Lst_ForEach in Targ_PrintCmds 2020-09-24 07:59:33 +00:00
rillig
6d249710d5 make(1): migrate printCMD in meta mode to Lst_ForEach 2020-09-24 07:53:32 +00:00
rillig
c51b6afb9a make(1): inline Lst_ForEach for debugging output in search paths 2020-09-24 07:49:58 +00:00
rillig
02ca9f2d7e make(1): migrate MakeTimeStamp and MakeUnmark to Lst_ForEach 2020-09-24 07:37:42 +00:00
rillig
455f274a50 make(1): migrate MakeAddAllSrc to Lst_ForEach 2020-09-24 07:34:35 +00:00
rillig
7a5c7eeb37 make(1): move documentation for MakeAddAllSrc to its correct place 2020-09-24 07:32:03 +00:00
rillig
c3188d97f7 make(1): merge Lst_ForEachFrom into Lst_ForEachUntil 2020-09-24 07:23:26 +00:00
rillig
4ec7405c5c make(1): rename Lst_ForEach to Lst_ForEachUntil
Since the callback function returns a terminating condition, this is not
really a foreach loop.

Many of the calls to Lst_ForEachUntil don't make use of the terminating
condition, and several don't modify the list structurally, which means
they don't need this complicated implementation.

In a follow-up commit, Lst_ForEach will be added back with a much
simpler implementation that iterates over the list naively, without a
terminating condition and without taking the iteration state from
Lst_Open/Lst_Next/Lst_Close into account.  The migration to this simpler
implementation will be done step by step since each callback function
needs to be examined closely.
2020-09-24 07:11:29 +00:00
nia
499b49590d revert; use system.ctwmrc from xsrc until I understand why the build fails 2020-09-24 06:52:48 +00:00
rillig
8410b85440 make(1): refactor add_wait_dep to not use Lst_ForEachFrom anymore
It was the last remaining use of that function outside of lst.c.

While here, clean up the code of add_wait_dep by removing unreachable
code (the GNode lists never contain NULL, only the GNode.commands lists
do that).
2020-09-24 06:45:59 +00:00
skrll
daa069ab66 Whitespace 2020-09-24 06:45:58 +00:00
rillig
e9a7cfb4a5 make(1): extend documentation in the varname-empty test 2020-09-24 06:03:44 +00:00
nia
9bc66ce6c3 move the new ctwmrc here so it doesn't conflict with the upstream one 2020-09-24 05:43:29 +00:00
ryo
e630fad847 add __aligned() to all __packed structures.
suppress warnings, and allow to compiler to generate more efficent code.
2020-09-24 05:13:03 +00:00
ryo
ec365c85d8 no need to swap 32bit-packed macaddr on big endian 2020-09-24 05:09:46 +00:00
mrg
bdca3dd39c skip kernel-only code on crash.
XXX: we could make verylocore work with a symbol look for crash.
2020-09-24 03:17:18 +00:00
kamil
2c7c316aa6 Make gdbserver almost work
The only missing thing is the lack of generated version.c.
2020-09-24 03:06:01 +00:00
mrg
f9051abc46 fix octeon !DDB builds. 2020-09-24 02:12:01 +00:00
kamil
b39e815ec0 Switch GDB on i386 to 1100
Confirmed to build and work.
2020-09-23 23:39:18 +00:00
nisimura
6719cfa782 note more about AVE EMAC design 2020-09-23 23:38:24 +00:00
christos
70699dff37 Add build glue (does not link) 2020-09-23 23:36:59 +00:00
christos
833251feb8 Add gdbserver 2020-09-23 23:21:29 +00:00
thorpej
8092a2bce2 Define a constant for the SIO IRQ line, and keep a shadow copy of
the interrupt enables.
2020-09-23 18:48:50 +00:00
thorpej
746e7c4296 Use a wrapper to acquire the kernel lock for non-MPSAFE interrupts,
rather than doing it in alpha_shared_intr_establish() directly.
2020-09-23 18:46:02 +00:00
nia
499e9f4300 add a script for dynamically generating a menu in the ctwm desktop
this parses the files in /usr/pkg/share/applications and provides a
submenu for launching applications.

TODO: make /usr/pkg configurable somehow?
2020-09-23 15:30:36 +00:00
tkusumi
00cd46e047 fstyp: Sync hammer2_disk.h with DragonFly BSD
taken-from: DragonFly BSD
2020-09-23 14:39:23 +00:00
jakllsch
7bb8b93a60 whitespace fix 2020-09-23 13:45:14 +00:00
simonb
7acb61f4ce Don't dump the CPU topology in the uninspiring case of a single CPU. 2020-09-23 12:05:16 +00:00
roy
4670a6a468 ifconfig: test cases want LINK_STATE_UNKNOWN to be treated as up. 2020-09-23 10:48:12 +00:00
mrg
15bd8a8554 make !DDB kernels build. 2020-09-23 09:56:33 +00:00
simonb
52a68e3bab The current MIPS DDB stacktrace code doesn't work if no symbols are
available, so fall back to old-fashioned unwind code if no symbols.
2020-09-23 09:52:02 +00:00
rillig
24f144256a make(1): add tests for spaces in condition functions 2020-09-23 08:11:28 +00:00
rillig
7a66810d3a make(1): remove debug output from counter tests
Now that the tests work as intended, the debug information is no longer
necessary.  It was only intended to track down the cause of the
unexpected behavior.
2020-09-23 07:54:08 +00:00