Commit Graph

284046 Commits

Author SHA1 Message Date
rillig
37fbcac361 make(1): clean up memory handling in CondParser_String 2020-12-20 12:46:49 +00:00
skrll
4b7c50b82c Remove old part of comment 2020-12-20 12:27:20 +00:00
palle
da2019dbf0 sun4v: add comment in sun4v_tl1_ptbl_miss code path - no functional change 2020-12-20 11:58:58 +00:00
rillig
8f72c319f5 make(1): document memory handling in ApplyModifiers 2020-12-20 11:38:51 +00:00
skrll
1f8e1b91a7 Some KNF. NFC. 2020-12-20 11:11:34 +00:00
rillig
0af8f23f02 make(1): replace freeIt with FStr in EvalUndefined
Previously, the parameter out_freeIt was not guaranteed to be
initialized in every case, at least when looking only at EvalUndefined.
This contradicted the variable name.

Replace the two parameters with a single FStr to ensure that these
variables are always initialized together.
2020-12-20 10:59:21 +00:00
jmcneill
e044f7fc0b style fix 2020-12-20 10:34:33 +00:00
jmcneill
2c1310a89c Managment -> Management 2020-12-20 10:19:30 +00:00
jdc
0ec0e42528 For the E250:
set fans to medium speed when attaching and full speed when detaching.
  remove unused PS fan definition.
In general:
  return early from attach if the device isn't present.
  handle errors from sysmon during attach so that detach doesn't crash.
  try to handle errors when acquiring the iic bus during detach.
2020-12-20 09:08:15 +00:00
skrll
03903ecbb2 Improve the English in the previous comment fix. 2020-12-20 08:26:32 +00:00
rillig
19824f4691 make(1): replace FStr_Assign with separate initialization functions
In GetVarnamesToUnexport, there is no need to free the local FStr since
the only place where it is assigned an allocated string is at the very
end.

Having separate functions for the two main use cases of a possibly
allocated string makes the calling code simpler.  This is a preparatory
commit for making the memory allocation in ApplyModifiers easier to
understand.
2020-12-20 00:57:29 +00:00
rillig
e0de850d21 make(1): extract string functions from ApplyModifier_To 2020-12-20 00:47:21 +00:00
jmcneill
f2b9092d8a Retry clearing WDCTL_RST a few times before giving up. Makes SATA work in
Solidrun Honeycomb LX2K.
2020-12-20 00:14:30 +00:00
mrg
3996f2220f ddb: add two new modifiers to "show pool" and "show all pools"
- /s shows a short single-line per pool list (the normal output
  is about 10 lines per.)
- /S skips pools with zero allocations.
2020-12-19 23:38:21 +00:00
mrg
e17ac28afe update several items that are done or dead. 2020-12-19 23:32:36 +00:00
jmcneill
6563adddeb No need to allocate bounce buffers if we have a single range that covers
all of physical memory.
2020-12-19 23:22:18 +00:00
rillig
ab975bef9f make(1): fix error message for .info/.warning/.error without argument
Previously, the error message was "Unknown directive", which was
obviously wrong.  The new error message is "Missing argument".
2020-12-19 22:33:11 +00:00
thorpej
1c3a055871 Use sel{record,remove}_knote(). 2020-12-19 22:11:57 +00:00
thorpej
1142b3532f malloc(9) -> kmem(9) 2020-12-19 22:10:56 +00:00
rillig
7772d52765 make(1): error out if .undef has not exactly 1 argument 2020-12-19 22:10:17 +00:00
thorpej
8cda207fa4 Use sel{record,remove}_knote(). 2020-12-19 21:54:42 +00:00
mrg
591c0afc0b implement boot -d for arm64.
could be done at the end of initarm() except it hangs currently.
this gets you a db> prompt before devices are configured.

ok @skrll.
2020-12-19 21:54:00 +00:00
thorpej
c2d090fa74 malloc(9) -> kmem(9) 2020-12-19 21:48:04 +00:00
thorpej
adf503e080 Use sel{record,remove}_knote(). 2020-12-19 21:46:40 +00:00
thorpej
24f4e33c2b malloc(9) -> kmem(9) 2020-12-19 21:38:30 +00:00
thorpej
dfef286955 malloc(9) -> kmem(9) 2020-12-19 21:27:52 +00:00
thorpej
9df0395f64 Use sel{record,remove}_knote(). 2020-12-19 21:25:03 +00:00
rillig
715d1d3bec make(1): extract Var_DeleteVar from Var_Delete 2020-12-19 20:47:24 +00:00
rillig
f11ec78a23 make(1): add tests for undefining variables with exotic names 2020-12-19 20:35:39 +00:00
rillig
a4d0870803 make(1): extract Var_Undef from ParseDirective 2020-12-19 20:16:36 +00:00
rillig
863c2319ae make(1): rewrite tests for misspelled .elif directive
Put the simple tests at the top, demonstrating that there are already
some cases in which the misspelled directive is detected.  It's not
detected though if the surrounding conditional branch is skipped.
2020-12-19 19:49:01 +00:00
jmcneill
4ef37a717b ahci_exec_fis: wait for the correct amount of time when AT_WAIT is set 2020-12-19 19:12:02 +00:00
jmcneill
7d76b69f68 ata_timeout: restore spl in ATACH_RECOVERING path 2020-12-19 18:09:44 +00:00
rillig
5df214d4aa make(1): extract ParseSkippedBranches from ParseReadLine 2020-12-19 17:54:29 +00:00
rillig
0cf31774e7 make(1): extract ParseForLoop from ParseReadLine 2020-12-19 17:49:11 +00:00
rillig
5ae56910c5 make(1): rename mode constants for ParseGetLine to be more expressive 2020-12-19 16:05:33 +00:00
rillig
8dfbff51e9 make(1): add test for null byte in .for loop body 2020-12-19 16:00:17 +00:00
rillig
5cd27da0e0 make(1): fix documentation of GetLineMode
ParseGetLine always returns a logical line, even for PARSE_RAW.
2020-12-19 15:29:28 +00:00
thorpej
5f97194d43 - malloc(9) -> kmem(9)
- Use sel{record,remove}_knote().
2020-12-19 15:18:04 +00:00
thorpej
66b33a403f Use sel{record,remove}_knote(). 2020-12-19 15:12:17 +00:00
rillig
029d9ed461 make(1): improve comments for .for loops 2020-12-19 13:31:37 +00:00
rillig
ba24c12f6a make(1): reduce debugging details in Parse_SetInput
The address of readMoreArg is hardly useful when stepping through this
part of the code, therefore omit it.  Instead of mentioning the exact
function names of the data source, describe them in words, which helps
especially in the case of .for loops.
2020-12-19 13:30:00 +00:00
rillig
8b6f21ea9f make(1): rename ForIterate to ForReadMore 2020-12-19 13:20:17 +00:00
rillig
af7e852811 make(1): rename parameter line to lineno 2020-12-19 13:16:25 +00:00
nia
c1f0400234 ossaudio(3): Do not reuse results from AUDIO_GETBUFINFO in SETINFO
Should help PR 55876.
2020-12-19 12:55:28 +00:00
rillig
4a31d445af make(1): document enum GetLineMode 2020-12-19 12:48:59 +00:00
rillig
959dba2f43 make(1): add test for backslash continuation lines in .for loops
This ensures that the line numbers for messages are the expected onces
in .for loops.

While experimenting with the backslash continuation lines, I noticed
that the reported line numbers for these are based on the number of
completely parsed physical lines, which nicely cancels out the + 1 that
has to be added for producing human-readable 1-based line numbers.  It
would be more correct to report the parse errors on the first affected
line.
2020-12-19 12:40:00 +00:00
rillig
c1c7380a9a make(1): fix line numbers in .for loops (since 2007-01-01) 2020-12-19 12:24:46 +00:00
rillig
e8319c8295 make(1): demonstrate wrong line numbers in .for loops, since 2007-01-01 2020-12-19 12:14:59 +00:00
rillig
44219d1a0a make(1): merge parameter of ParseRawLine into return value 2020-12-19 10:57:17 +00:00