Repository navigation
Expand file tree
/
Copy pathserial.log
More file actions
133 lines (132 loc) · 5.09 KB
/
Copy pathserial.log
File metadata and controls
133 lines (132 loc) · 5.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[2J[01;01H[=3h[2J[01;01H[2J[01;01H[=3h[2J[01;01H[2J[01;01H[=3h[2J[01;01HBdsDxe: loading Boot0001 "UEFI QEMU HARDDISK QM00001 " from PciRoot(0x0)/Pci(0x1,0x1)/Ata(Primary,Master,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU HARDDISK QM00001 " from PciRoot(0x0)/Pci(0x1,0x1)/Ata(Primary,Master,0x0)
Welcome to the Custom UEFI Bootloader!
Attempting to locate the file system protocol...
Attempting to open the kernel file...
Found kernel.elf! Reading file size...
Parsing ELF...
Loading ELF segments...
Kernel range: 0x200000 - 0x286000 (134 pages)
Segment: paddr=0x200000, filesz=0x6b2dc, memsz=0x6b2dc
Segment: paddr=0x26b2e0, filesz=0xc55c, memsz=0xc55c
Segment: paddr=0x277840, filesz=0xd0, memsz=0xd0
Segment: paddr=0x277910, filesz=0x79f8, memsz=0xde08
Exiting boot services and jumping to kernel at 0x219cc0...
open_kernel booting...
[OK] GDT + TSS
[OK] IDT
[OK] PIC (IRQs → IDT[32..47])
EXCEPTION: BREAKPOINT
InterruptStackFrame {
instruction_pointer: VirtAddr(
0x215d41,
),
code_segment: SegmentSelector {
index: 1,
rpl: Ring0,
},
cpu_flags: RFlags(
PARITY_FLAG | 0x2,
),
stack_pointer: VirtAddr(
0x7e64ed8,
),
stack_segment: SegmentSelector {
index: 2,
rpl: Ring0,
},
}
[OK] exception handling
[OK] heap (256 KiB at 0x444444440000)
[OK] Box<u64> = 0xdeadbeef (@ 0x444444440000)
[OK] Vec<u32> = [0, 1, 4, 9, 16, 25, 36, 49]
[OK] String = "hello from the kernel heap"
[ ] memory map: 105 regions
[OK] scheduler: 4 task slots populated
[OK] scheduler initialized
[OK] shell ready
root:/> [OK] interrupts enabled — scheduler running
root:/> sysinfo
___ _ __ root@open_kernel
/ _ \ | |/ / ----------------
| | | || ' / OS: open_kernel 0.1.0 x86_64
| |_| || . \ Kernel: 0.1.0-baremetal
\___/ |_|\_\ Uptime: 52 ticks
Heap: 368 / 262144 B (261776 free)
Shell: custom (vfs enabled)
root:/> help
uname : prints system information
sysinfo : shows detailed system info
meminfo : displays heap memory stats
cpuid : displays CPU hardware info
vmap : displays per-process virtual memory spaces & page tables
drivers : lists storage & graphics drivers in driver model
ifconfig : displays network stack interface configuration
ping <ip> : sends ICMP echo requests over network stack
netstat : displays active network sockets
modifiers : displays keyboard modifier states (Shift/Ctrl/Alt)
uptime : shows system uptime (HH:MM:SS)
time : shows current time
date : shows current date
cd <dir> : changes current working directory
pwd : prints current working directory
ls [path] : lists files and directories
tree : displays directory tree
cat <file> : displays content of a file
touch <file>: creates empty file
write f txt : writes text content to file
mkdir <dir> : creates directory
rm <path> : removes file or directory
echo <msg> : prints argument text
color <thm> : sets VGA color theme (default|matrix|amber|cyberpunk)
prompt <str>: changes shell prompt string
matrix : displays green ASCII matrix digital rain
guess <num> : number guessing game (1-10)
calc <expr> : evaluates basic arithmetic (e.g. calc 12 + 34)
ps/tasks : list running tasks
spawn [name]: creates new background task
kill <pid> : terminates running task by PID
clear : clears the screen
panic : triggers kernel panic test
reboot : restarts the system
shutdown : powers off the system
root:/> xlear
unknown command: xlear
root:/> clear
[2J[Hroot:/> help
uname : prints system information
sysinfo : shows detailed system info
meminfo : displays heap memory stats
cpuid : displays CPU hardware info
vmap : displays per-process virtual memory spaces & page tables
drivers : lists storage & graphics drivers in driver model
ifconfig : displays network stack interface configuration
ping <ip> : sends ICMP echo requests over network stack
netstat : displays active network sockets
modifiers : displays keyboard modifier states (Shift/Ctrl/Alt)
uptime : shows system uptime (HH:MM:SS)
time : shows current time
date : shows current date
cd <dir> : changes current working directory
pwd : prints current working directory
ls [path] : lists files and directories
tree : displays directory tree
cat <file> : displays content of a file
touch <file>: creates empty file
write f txt : writes text content to file
mkdir <dir> : creates directory
rm <path> : removes file or directory
echo <msg> : prints argument text
color <thm> : sets VGA color theme (default|matrix|amber|cyberpunk)
prompt <str>: changes shell prompt string
matrix : displays green ASCII matrix digital rain
guess <num> : number guessing game (1-10)
calc <expr> : evaluates basic arithmetic (e.g. calc 12 + 34)
ps/tasks : list running tasks
spawn [name]: creates new background task
kill <pid> : terminates running task by PID
clear : clears the screen
panic : triggers kernel panic test
reboot : restarts the system
shutdown : powers off the system
root:/>