Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
abinade2
kernel
Commits
c526099f
Commit
c526099f
authored
7 years ago
by
abinade2
Browse files
Options
Downloads
Patches
Plain Diff
moved code to pic header file
parent
b47bebda
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
student-distrib/i8259.c
+0
-9
0 additions, 9 deletions
student-distrib/i8259.c
student-distrib/i8259.h
+9
-0
9 additions, 0 deletions
student-distrib/i8259.h
with
9 additions
and
9 deletions
student-distrib/i8259.c
+
0
−
9
View file @
c526099f
...
@@ -3,15 +3,6 @@
...
@@ -3,15 +3,6 @@
*/
*/
#include
"i8259.h"
#include
"i8259.h"
#include
"lib.h"
/* Interrupt masks to determine which interrupts are enabled and disabled */
uint8_t
master_mask
;
/* IRQs 0-7 */
uint8_t
slave_mask
;
/* IRQs 8-15 */
#define Master_Max 8
#define Slave_Max 16
#define Slave_on_Master_port 2
/* i8259_init
/* i8259_init
* Inputs: void
* Inputs: void
...
...
This diff is collapsed.
Click to expand it.
student-distrib/i8259.h
+
9
−
0
View file @
c526099f
...
@@ -7,11 +7,16 @@
...
@@ -7,11 +7,16 @@
#define _I8259_H
#define _I8259_H
#include
"types.h"
#include
"types.h"
#include
"lib.h"
/* Ports that each PIC sits on */
/* Ports that each PIC sits on */
#define MASTER_8259_PORT 0x20
#define MASTER_8259_PORT 0x20
#define SLAVE_8259_PORT 0xA0
#define SLAVE_8259_PORT 0xA0
#define Master_Max 8
#define Slave_Max 16
#define Slave_on_Master_port 2
/* Initialization control words to init each PIC.
/* Initialization control words to init each PIC.
* See the Intel manuals for details on the meaning
* See the Intel manuals for details on the meaning
* of each word */
* of each word */
...
@@ -27,6 +32,10 @@
...
@@ -27,6 +32,10 @@
* to declare the interrupt finished */
* to declare the interrupt finished */
#define EOI 0x60
#define EOI 0x60
/* Interrupt masks to determine which interrupts are enabled and disabled */
uint8_t
master_mask
;
/* IRQs 0-7 */
uint8_t
slave_mask
;
/* IRQs 8-15 */
/* Externally-visible functions */
/* Externally-visible functions */
/* Initialize both PICs */
/* Initialize both PICs */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment