Skip to content

Commit 137ff0e

Browse files
committed
deploy: 573c723
1 parent c302eeb commit 137ff0e

File tree

772 files changed

+10720
-10706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

772 files changed

+10720
-10706
lines changed

_sources/reference/file_fs_vfs.hpp.rst.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ Functions
9999

100100
- :ref:`exhale_function_vfs_8hpp_1a067244fcbd7f7e169b4cc4436e8cf754`
101101

102-
- :ref:`exhale_function_vfs_8hpp_1aefbca055019d59ce0eb9d0ae4c005ee7`
103-
104102
- :ref:`exhale_function_vfs_8hpp_1a0b2d460e0bb3cbf3dc974924b68bfe3a`
105103

104+
- :ref:`exhale_function_vfs_8hpp_1aefbca055019d59ce0eb9d0ae4c005ee7`
105+
106106
- :ref:`exhale_function_vfs_8hpp_1a1eace7e150f7e4edde083a04584103fd`
107107

108108
- :ref:`exhale_function_vfs_8hpp_1a991c1013a338ccf7f24d46610852154b`

_sources/reference/file_lib_log.hpp.rst.txt

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Includes
4141

4242
- ``frg/manual_box.hpp``
4343

44-
- ``frg/spinlock.hpp``
45-
4644
- ``frg/string.hpp``
4745

4846
- ``frg/string_stub.hpp``

_sources/reference/namespace_Gaia.rst.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ Functions
124124

125125
- :ref:`exhale_function_log_8hpp_1ab34b1a105b75fb5fb8204a5927a4eda4`
126126

127-
- :ref:`exhale_function_error_8hpp_1a7c842db1888bd3985fba1622c79894aa`
128-
129127
- :ref:`exhale_function_errno_8hpp_1a4c9aa1b8d9d0e0ae84b84efbf34da8e2`
130128

129+
- :ref:`exhale_function_error_8hpp_1a7c842db1888bd3985fba1622c79894aa`
130+
131131
- :ref:`exhale_function_kernel_2elf_8hpp_1ae59bac2a352145d62f1dee1e38afea39`
132132

133133
- :ref:`exhale_function_kernel_2elf_8hpp_1a0dcbcad05fcc8a60669231f39dbf679c`

_sources/reference/program_listing_file_arch_x86_64_idt.hpp.rst.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ Program Listing for File idt.hpp
8181
8282
x86_64::set_fs_base(fs_base);
8383
84-
(void)regs;
85-
86-
// memcpy(regs, &this->regs, sizeof(this->regs));
84+
memcpy(regs, &this->regs, sizeof(this->regs));
8785
}
8886
8987
void save(InterruptFrame *regs) {

_sources/reference/program_listing_file_fs_vfs.hpp.rst.txt

+2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ Program Listing for File vfs.hpp
129129
if (segments[0][0] == '/') {
130130
vn = root_vnode;
131131
root = true;
132+
log("Path is root, {:x}", vn);
132133
} else {
133134
vn = cwd ? cwd : root_vnode;
135+
log("cwd is {}", cwd);
134136
}
135137
136138
for (size_t i = root; i < segments.size(); i++) {

_sources/reference/program_listing_file_kernel_cpu.hpp.rst.txt

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Program Listing for File cpu.hpp
2525
Hal::CpuData cpu;
2626
int num;
2727
Cpu *self;
28+
uint32_t other_magic = 0xB00B135;
2829
Thread *curr_thread, *idle_thread;
2930
List<Thread, &Thread::link> runqueue;
3031
uint32_t magic = 0xCAFEBABE;

_sources/reference/program_listing_file_lib_log.hpp.rst.txt

+17-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Program Listing for File log.hpp
1515
/* SPDX-License-Identifier: BSD-2-Clause */
1616
#pragma once
1717
#include "frg/manual_box.hpp"
18+
19+
#ifndef LOG_EXCLUDE_LOCK
1820
#include "lib/spinlock.hpp"
21+
#endif
1922
#include <frg/logging.hpp>
20-
#include <frg/spinlock.hpp>
2123
#include <frg/string.hpp>
2224
#include <frg/string_stub.hpp>
2325
#include <hal/hal.hpp>
@@ -60,7 +62,10 @@ Program Listing for File log.hpp
6062
};
6163
6264
extern frg::stack_buffer_logger<DebugSink> logger;
65+
66+
#ifndef LOG_EXCLUDE_LOCK
6367
extern frg::manual_box<Spinlock> log_lock;
68+
#endif
6469
6570
template <bool locked = true, typename... T>
6671
void log(FormatWithLocation fmt, T... args) {
@@ -77,26 +82,34 @@ Program Listing for File log.hpp
7782
// remove .cpp
7883
file_path[strlen(fmt.file) - 4] = 0;
7984
85+
#ifndef LOG_EXCLUDE_LOCK
8086
if (locked) {
8187
log_lock->lock();
8288
}
89+
#endif
90+
8391
logger() << frg::fmt("\x1b[32m[{:5}.{:06d}]\x1b[0m ",
8492
Hal::get_time_since_boot().seconds,
8593
Hal::get_time_since_boot().milliseconds)
8694
<< frg::fmt("\x1b[33m{}:\x1b[0m ", file_name(file_path))
8795
<< frg::fmt(fmt.format, args...) << "\n"
8896
<< frg::endlog;
97+
98+
#ifndef LOG_EXCLUDE_LOCK
8999
if (locked) {
90100
log_lock->unlock();
91101
}
102+
#endif
92103
}
93104
94105
template <bool locked = true, typename... T>
95106
void error(FormatWithLocation fmt, T... args) {
96107
108+
#ifndef LOG_EXCLUDE_LOCK
97109
if (locked) {
98110
log_lock->lock();
99111
}
112+
#endif
100113
101114
char file_path[256];
102115
@@ -112,9 +125,12 @@ Program Listing for File log.hpp
112125
<< frg::fmt("\x1b[33m{}:\x1b[0m ", file_name(file_path))
113126
<< frg::fmt(fmt.format, args...) << "\n"
114127
<< frg::endlog;
128+
129+
#ifndef LOG_EXCLUDE_LOCK
115130
if (locked) {
116131
log_lock->unlock();
117132
}
133+
#endif
118134
}
119135
120136
template <typename... T>

_sources/reference/program_listing_file_lib_spinlock.hpp.rst.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Program Listing for File spinlock.hpp
2222
class CAPABILITY("spinlock") Spinlock {
2323
public:
2424
Spinlock() { _lock.initialize(); }
25-
void lock() ACQUIRE() { _lock->lock(); }
26-
void unlock() RELEASE() { _lock->unlock(); }
25+
void lock() ACQUIRE();
26+
void unlock() RELEASE();
2727
void construct() {
2828
if (!_lock.valid())
2929
_lock.initialize();

_sources/reference/program_listing_file_posix_fd.hpp.rst.txt

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Program Listing for File fd.hpp
4646
return Err(EEXIST);
4747
}
4848
49+
log("res: {}", res.is_ok());
50+
4951
if (res.is_ok()) {
5052
auto vnode = res.value().value();
5153

_sources/reference/program_listing_file_posix_tty.hpp.rst.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,13 @@ Program Listing for File tty.hpp
5757
Result<Fs::VnodeAttr, Error> getattr(dev_t minor) override;
5858
} ops;
5959
60+
Spinlock lock;
61+
6062
private:
6163
// Ringbuffer
6264
frg::array<char, 4096> buffer;
6365
size_t buf_length, write_cursor, read_cursor;
6466
size_t rows, cols;
65-
Spinlock lock;
6667
6768
struct termios termios;
6869
Event read_event;

_static/alabaster.css

+35-80
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import url("basic.css");
2-
31
/* -- page layout ----------------------------------------------------------- */
42

53
body {
@@ -160,8 +158,8 @@ div.sphinxsidebar input {
160158
font-size: 1em;
161159
}
162160

163-
div.sphinxsidebar #searchbox input[type="text"] {
164-
width: 160px;
161+
div.sphinxsidebar #searchbox {
162+
margin: 1em 0;
165163
}
166164

167165
div.sphinxsidebar .search > div {
@@ -263,10 +261,6 @@ div.admonition p.last {
263261
margin-bottom: 0;
264262
}
265263

266-
div.highlight {
267-
background-color: #fff;
268-
}
269-
270264
dt:target, .highlight {
271265
background: #FAF3E8;
272266
}
@@ -454,7 +448,7 @@ ul, ol {
454448
}
455449

456450
pre {
457-
background: #EEE;
451+
background: unset;
458452
padding: 7px 30px;
459453
margin: 15px 0px;
460454
line-height: 1.3em;
@@ -485,15 +479,15 @@ a.reference {
485479
border-bottom: 1px dotted #004B6B;
486480
}
487481

482+
a.reference:hover {
483+
border-bottom: 1px solid #6D4100;
484+
}
485+
488486
/* Don't put an underline on images */
489487
a.image-reference, a.image-reference:hover {
490488
border-bottom: none;
491489
}
492490

493-
a.reference:hover {
494-
border-bottom: 1px solid #6D4100;
495-
}
496-
497491
a.footnote-reference {
498492
text-decoration: none;
499493
font-size: 0.7em;
@@ -509,68 +503,7 @@ a:hover tt, a:hover code {
509503
background: #EEE;
510504
}
511505

512-
513-
@media screen and (max-width: 870px) {
514-
515-
div.sphinxsidebar {
516-
display: none;
517-
}
518-
519-
div.document {
520-
width: 100%;
521-
522-
}
523-
524-
div.documentwrapper {
525-
margin-left: 0;
526-
margin-top: 0;
527-
margin-right: 0;
528-
margin-bottom: 0;
529-
}
530-
531-
div.bodywrapper {
532-
margin-top: 0;
533-
margin-right: 0;
534-
margin-bottom: 0;
535-
margin-left: 0;
536-
}
537-
538-
ul {
539-
margin-left: 0;
540-
}
541-
542-
li > ul {
543-
/* Matches the 30px from the "ul, ol" selector above */
544-
margin-left: 30px;
545-
}
546-
547-
.document {
548-
width: auto;
549-
}
550-
551-
.footer {
552-
width: auto;
553-
}
554-
555-
.bodywrapper {
556-
margin: 0;
557-
}
558-
559-
.footer {
560-
width: auto;
561-
}
562-
563-
.github {
564-
display: none;
565-
}
566-
567-
568-
569-
}
570-
571-
572-
573-
@media screen and (max-width: 875px) {
506+
@media screen and (max-width: 940px) {
574507

575508
body {
576509
margin: 0;
@@ -580,12 +513,16 @@ a:hover tt, a:hover code {
580513
div.documentwrapper {
581514
float: none;
582515
background: #fff;
516+
margin-left: 0;
517+
margin-top: 0;
518+
margin-right: 0;
519+
margin-bottom: 0;
583520
}
584521

585522
div.sphinxsidebar {
586523
display: block;
587524
float: none;
588-
width: 102.5%;
525+
width: unset;
589526
margin: 50px -30px -20px -30px;
590527
padding: 10px 20px;
591528
background: #333;
@@ -620,8 +557,14 @@ a:hover tt, a:hover code {
620557

621558
div.body {
622559
min-height: 0;
560+
min-width: auto; /* fixes width on small screens, breaks .hll */
623561
padding: 0;
624562
}
563+
564+
.hll {
565+
/* "fixes" the breakage */
566+
width: max-content;
567+
}
625568

626569
.rtd_doc_footer {
627570
display: none;
@@ -635,13 +578,18 @@ a:hover tt, a:hover code {
635578
width: auto;
636579
}
637580

638-
.footer {
639-
width: auto;
640-
}
641-
642581
.github {
643582
display: none;
644583
}
584+
585+
ul {
586+
margin-left: 0;
587+
}
588+
589+
li > ul {
590+
/* Matches the 30px from the "ul, ol" selector above */
591+
margin-left: 30px;
592+
}
645593
}
646594

647595

@@ -705,4 +653,11 @@ nav#breadcrumbs li+li:before {
705653
div.related {
706654
display: none;
707655
}
656+
}
657+
658+
img.github {
659+
position: absolute;
660+
top: 0;
661+
border: 0;
662+
right: 0;
708663
}

_static/github-banner.svg

+5
Loading

0 commit comments

Comments
 (0)