Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
phoenix-os
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
PhoeniX
phoenix-os
Commits
6a6e5f75
Unverified
Commit
6a6e5f75
authored
May 26, 2019
by
PhoeniX
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure intr/syscall handlers fits in per-process PT
parent
f1444fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
process.cpp
src/process/process.cpp
+2
-0
No files found.
src/process/process.cpp
View file @
6a6e5f75
...
...
@@ -277,7 +277,9 @@ void Process::startup() {
handler
&=
KB4
;
sc_wrapper
&=
KB4
;
addPage
(
handler
,
reinterpret_cast
<
void
*>
(
handler
),
1
);
addPage
(
handler
+
0x1000
,
reinterpret_cast
<
void
*>
(
handler
+
0x1000
),
1
);
addPage
(
sc_wrapper
,
reinterpret_cast
<
void
*>
(
sc_wrapper
),
1
);
addPage
(
sc_wrapper
+
0x1000
,
reinterpret_cast
<
void
*>
(
sc_wrapper
+
0x1000
),
1
);
GDT
::
Entry
*
gdt_ent
=
reinterpret_cast
<
GDT
::
Entry
*>
(
uintptr_t
(
gdt
.
addr
)
+
8
*
3
);
GDT
::
Entry
*
gdt_top
=
reinterpret_cast
<
GDT
::
Entry
*>
(
uintptr_t
(
gdt
.
addr
)
+
gdt
.
limit
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment