Commit graph

36830 commits

Author SHA1 Message Date
Andreas Kling 8f1ba8db4f Documentation: Clarify text about virtual/override/final 2022-04-04 12:44:44 +02:00
Andreas Kling d1f2d63840 Kernel: Remove unused Region::try_create_kernel_only() 2022-04-04 12:34:13 +02:00
Andreas Kling 63ddbaf68a Kernel: Tweak broken dbgln_if() in sys$fork() after RegionTree changes 2022-04-04 11:05:49 +02:00
Linus Groh cfc6d85427 Meta: Add Sahan Fernando to the contributors list :^) 2022-04-04 08:01:12 +01:00
Brian Gianforcaro 7eaf1cfdc2 ls: Use Core::System::pledge(..) instead of LibC API 2022-04-03 17:13:51 -07:00
Brian Gianforcaro af3751e4dd Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 4d0317ae7a Shell: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 09fe9b546f Services: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 9cfd520bb8 Applications: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 7c0495cbac Meta: Reword and reformat the suppression comments for PVS Studio 2022-04-03 16:18:32 -07:00
Brian Gianforcaro d1ffdd88b6 Meta: Sort PVS Studio suppressions numerically :^) 2022-04-03 16:18:32 -07:00
Brian Gianforcaro 95df8882e6 Meta: Suppress PVS Studio Rule v603
This rule seems to be confused about basic syntax of C++.
It flags with false positives such as:

    ```
    The object was created but it is not being used. If you wish
    to call constructor, 'this->set_y::set_y(....)' should be used.
    ```

Lets suppress it until it can be fixed.
2022-04-03 16:18:32 -07:00
Brian Gianforcaro 2afcd45299 Meta: Suppress PVS Studio Rule v591 "non-void functions should return"
This rule appears to be fundamentally broken for our code base, it
flags `void` functions all over the place, as well as constructors.

Lets suppress it for now.
2022-04-03 16:18:32 -07:00
diogenes d749ea3b70 Base: Add Tinier Regular, a 5px tall system font
This font is inspired by one I discovered years ago and have been
meaning to add for a long time. It is also a playful jab at @xexxa who
has the previous smallest font :^) I made a few changes to make it fit
in the 5x3 format. The original is licensed CC0 so there is no copyright
infringement.

Original font:
https://robey.lag.net/2010/01/23/tiny-monospace-font.html
2022-04-03 23:50:22 +01:00
Andreas Kling 12b612ab14 Kernel: Mark sys$adjtime() as not needing the big lock
This syscall works on global kernel state and so doesn't need protection
from threads in the same process.
2022-04-04 00:42:18 +02:00
Andreas Kling 4306422f29 Kernel: Mark sys$clock_settime() as not needing the big log
This syscall ends up disabling interrupts while changing the time,
and the clock is a global resource anyway, so preventing threads in the
same process from running wouldn't solve anything.
2022-04-04 00:42:18 +02:00
Andreas Kling 55814f6e0e Kernel: Mark sys$sched_{set,get}param() as not needing the big lock
Both of these syscalls take the scheduler lock while accessing the
thread priority, so there's no reliance on the process big lock.
2022-04-04 00:42:18 +02:00
Andreas Kling 9250ac0c24 Kernel: Randomize non-specific VM allocations done by sys$execve()
Stuff like TLS regions, main thread stacks, etc. All deserve to be
randomized unless the ELF requires specific placement. :^)
2022-04-04 00:42:18 +02:00
Nico Weber 10b2b71a2c LibGfx: Use binary search in glyph_id_for_code_point_table_4
No behavior change for valid ttf files (which have a trailing
0xffff endCodes entry, and a sorted endCodes array).
2022-04-03 23:28:43 +01:00
Timur Sultanov 33d19a562f LibELF: Look up symbols in all global modules
dlsym() called with RTLD_DEFAULT (nullptr) should look up
symbol in all global modules instead of only looking into the
executable file
2022-04-03 23:25:39 +01:00
djwisdom fbbea77fa4 Base: Add new glyphs to Lucidity font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:24:17 +01:00
djwisdom c339604789 Base: Add new glyphs to Satori Regular font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:24:04 +01:00
djwisdom 0af71d7c22 Base: Add new glyphs to Satori Mono Regular font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:24:04 +01:00
djwisdom 3478b8de1b Base: Add new glyphs to Satori Mono Bold font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:24:04 +01:00
djwisdom 55aa03b57b Base: Add new glyphs to Satori Bold font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:24:04 +01:00
djwisdom acd5abe936 Base: Add new glyphs to Ataraxia font
Unified Canadian Aboriginal Syllabics Extended-A
11AB0-11ABF
https://www.unicode.org/charts/PDF/U11AB0.pdf

Mayan Numerals
1D2E0-1D2F3
https://www.unicode.org/charts/PDF/U1D2E0.pdf

Ancient Greek Musical Notation
1D200-1D245
https://www.unicode.org/charts/PDF/U1D200.pdf
2022-04-03 23:23:50 +01:00
Brian Gianforcaro 8b750998d2 Kernel: Fix aarch64 kernel build on case sensitive file systems
The dummy file has the wrong case, so it would fail to be found on case
sensitive file systems.
2022-04-03 15:18:36 -07:00
Idan Horowitz d6e4a25e0c Kernel: Use the InstrusiveRedBlackTree::begin_from(V&) API
This let's us skip an O(logn) tree traversal.
2022-04-04 00:16:11 +02:00
Idan Horowitz 1787d94907 AK: Add begin_from(V&) APIs to IntrusiveRedBlackTree
This method exploits the fact that the values themselves hold the tree
pointers, and as a result this let's us skip the O(logn) traversal down
to the matching Node for a Key-Value pair.
2022-04-04 00:16:11 +02:00
Idan Horowitz 30e6b313b4 Kernel: Remove false condition in RegionTree::allocate_range_specific
Since find_largest_not_above returns the highest region that is below
the end of the request range, no region after it can intersect with it.
2022-04-04 00:16:11 +02:00
James Mintram f943e97b76 Kernel: Add RegionTree and remove VirtualRangeAllocator from aarch64 2022-04-04 00:14:20 +02:00
Igor Pissolati 7ae116b81b LibWeb: Bring BorderRadiusStyleValue::to_string() closer to spec 2022-04-04 00:03:15 +02:00
Andreas Kling db75bab493 Kernel: Actually fix accidental overlaps in allocate_range_specific()
Thanks to Idan for spotting this! :^)
2022-04-03 23:58:57 +02:00
Humberto Alves 5506932788 Shell: Refresh PATH cache after running shellrc files
This fixes the highlight of runnable commands, whenever PATH variable
is changed in one of the shellrc files.
2022-04-03 23:28:01 +02:00
GeekFiftyFive e292a038b7 ThemeEditor: Open files with ReadWrite
Open theme files with ReadWrite in order to fix issue when saving.
2022-04-03 23:27:23 +02:00
James Mintram 2b442ae44f Kernel: Add kmalloc.cpp to aarch64 2022-04-03 23:21:04 +02:00
Linus Groh b0f701d053 Kernel: Convert ProcessorInfo::build_brand_string() to StringBuilder 2022-04-03 23:20:33 +02:00
Linus Groh 4f35c206e4 lscpu: Show hypervisor_vendor_id if present 2022-04-03 23:20:33 +02:00
Linus Groh 33004f9b9d Kernel: Add hypervisor_vendor_id entry to /proc/cpuinfo 2022-04-03 23:20:33 +02:00
Linus Groh 0f27432ec6 Kernel+SystemMonitor+lscpu: Rename 'CPUID' -> 'Vendor ID'
This is what the Intel manual, as well as Linux's cpuinfo calls it.
2022-04-03 23:20:33 +02:00
Linus Groh 3f9c2495e5 Kernel: Remove EBX, ECX, and EDX values from hypervisor dmesgln() 2022-04-03 23:20:33 +02:00
Linus Groh 8d96525b9d Kernel: Move hypervisor vendor ID string to ProcessorInfo
This will make it possible to expose it in /proc/cpuinfo. :^)
2022-04-03 23:20:33 +02:00
Linus Groh f6181cd47e Kernel: Make ProcessorInfo::build_foo_string() private 2022-04-03 23:20:33 +02:00
Linus Groh afce63fffc Kernel: Move feature string building to ProcessorInfo
Other than a dmesgln(), ProcessorInfo is the only user of this function
and is already responsible for building other CPUID-related strings.
2022-04-03 23:20:33 +02:00
Linus Groh 53a95a5347 Kernel: Rename some ProcessorInfo members to match Intel manual
Let's use terminology from the the Intel manual to avoid confusion.
Also add `_string` suffixes to better distinguish the numeric values
from the string values.
2022-04-03 23:20:33 +02:00
Linus Groh ebe2cf8995 Kernel: Move private ProcessorInfo members to the end 2022-04-03 23:20:33 +02:00
Simon Wanner 509362c103 LibWeb: Include all row-groups in column width calculations
This was noticeable for example on fonts.serenityos.net, where the
thead and tfoot would not get the same column widths as the tbody.
2022-04-03 23:12:13 +02:00
Simon Wanner d28f3e0735 LibWeb: Handle failed browsing context creation in HTMLObjectElement
If the document is not attached to a browsing context we can't create
a new nested browsing context.

This can happen when the resource load for the <object> finishes after
the user navigated away from the current document, for example by
reloading ACID 3 while it's running.
2022-04-03 23:12:13 +02:00
Simon Wanner 450c0df938 LibWeb: Make resolved styles handle calculated length-percentages
This could lead to a crash when inspecting for example the <body>
on holidaycss.js.org, because it has `width: calc(100% - 1em)`
2022-04-03 23:12:13 +02:00
Simon Wanner fe0f0b0acf LibWeb: Add a null-check for page() in ESO::is_scripting_enabled()
This could lead to a crash when spamming reload on a page with a
<script> element.
2022-04-03 23:12:13 +02:00