This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copyright notices, licensing terms, author attributions.
- Loading branch information
Showing
119 changed files
with
1,125 additions
and
1,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
PIOS is derived directly from JOS and indirectly from various open source | ||
software, the licenses for which are included here. See the individual | ||
source files for information about which license(s) apply to each file. | ||
|
||
|
||
Terms of the MIT License: | ||
/* | ||
* Copyright (C) 1997 Massachusetts Institute of Technology | ||
* | ||
* This software is being provided by the copyright holders under the | ||
* following license. By obtaining, using and/or copying this software, | ||
* you agree that you have read, understood, and will comply with the | ||
* following terms and conditions: | ||
* | ||
* Permission to use, copy, modify, distribute, and sell this software | ||
* and its documentation for any purpose and without fee or royalty is | ||
* hereby granted, provided that the full text of this NOTICE appears on | ||
* ALL copies of the software and documentation or portions thereof, | ||
* including modifications, that you make. | ||
* | ||
* THIS SOFTWARE IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO | ||
* REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, | ||
* BUT NOT LIMITATION, COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR | ||
* WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR | ||
* THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY | ||
* THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT | ||
* HOLDERS WILL BEAR NO LIABILITY FOR ANY USE OF THIS SOFTWARE OR | ||
* DOCUMENTATION. | ||
* | ||
* The name and trademarks of copyright holders may NOT be used in | ||
* advertising or publicity pertaining to the software without specific, | ||
* written prior permission. Title to copyright in this software and any | ||
* associated documentation will at all times remain with copyright | ||
* holders. See the file AUTHORS which should have accompanied this software | ||
* for a list of all copyright holders. | ||
* | ||
* This file may be derived from previously copyrighted software. This | ||
* copyright applies only to those changes made by the copyright | ||
* holders listed in the AUTHORS file. The rest of this file is covered by | ||
* the copyright notices, if any, listed below. | ||
*/ | ||
|
||
|
||
Terms of the BSD License: | ||
/* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* 3. All advertising materials mentioning features or use of this software | ||
* must display the following acknowledgement: | ||
* This product includes software developed by the University of | ||
* California, Berkeley and its contributors. | ||
* 4. Neither the name of the University nor the names of its contributors | ||
* may be used to endorse or promote products derived from this software | ||
* without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
* SUCH DAMAGE. | ||
*/ | ||
|
||
Terms of the RSA License: | ||
/* | ||
* License to copy and use this software is granted provided that it is | ||
* identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" | ||
* in all material mentioning or referencing this software or this function. | ||
* | ||
* License is also granted to make and use derivative works provided that such | ||
* works are identified as "derived from the RSA Data Security, Inc. MD5 | ||
* Message-Digest Algorithm" in all material mentioning or referencing the | ||
* derived work. | ||
* | ||
* RSA Data Security, Inc. makes no representations concerning either the | ||
* merchantability of this software or the suitability of this software for | ||
* any particular purpose. It is provided "as is" without express or implied | ||
* warranty of any kind. | ||
* | ||
* These notices must be retained in any copies of any part of this | ||
* documentation and/or software. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
#if LAB >= 2 | ||
// I/O APIC (Advanced Programmable Interrupt Controller) definitions. | ||
// Adapted from xv6. | ||
// See COPYRIGHT for copyright information. | ||
/* | ||
* I/O APIC (Advanced Programmable Interrupt Controller) definitions. | ||
* | ||
* Copyright (C) 1997 Massachusetts Institute of Technology | ||
* See section "MIT License" in the file LICENSES for licensing terms. | ||
* | ||
* Derived from xv6 and FreeBSD code. | ||
* Adapted for PIOS by Bryan Ford at Yale University. | ||
*/ | ||
#ifndef PIOS_DEV_IOAPIC_H | ||
#define PIOS_DEV_IOAPIC_H | ||
#ifndef PIOS_KERNEL | ||
# error "This is a kernel header; user programs should not #include it" | ||
#endif | ||
|
||
|
||
void ioapic_init(void); | ||
|
||
void ioapic_enable(int irq, int apicid); | ||
|
||
|
||
#endif /* !PIOS_DEV_IOAPIC_H */ | ||
#endif // LAB >= 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.