mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Update license headers
This commit is contained in:
19
Makefile
19
Makefile
@@ -1,16 +1,11 @@
|
|||||||
# Copyright 2015 Philipp Oppermann
|
# Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
# file at the top-level directory of this distribution.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
# you may not use this file except in compliance with the License.
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
# You may obtain a copy of the License at
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
#
|
# option. This file may not be copied, modified, or distributed
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# except according to those terms.
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
arch ?= x86_64
|
arch ?= x86_64
|
||||||
target ?= $(arch)-unknown-linux-gnu
|
target ?= $(arch)-unknown-linux-gnu
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
; Copyright 2015 Philipp Oppermann
|
; Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
; file at the top-level directory of this distribution.
|
||||||
;
|
;
|
||||||
; Licensed under the Apache License, Version 2.0 (the "License");
|
; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
; you may not use this file except in compliance with the License.
|
; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
; You may obtain a copy of the License at
|
; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
;
|
; option. This file may not be copied, modified, or distributed
|
||||||
; http://www.apache.org/licenses/LICENSE-2.0
|
; except according to those terms.
|
||||||
;
|
|
||||||
; Unless required by applicable law or agreed to in writing, software
|
|
||||||
; distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
; See the License for the specific language governing permissions and
|
|
||||||
; limitations under the License.
|
|
||||||
|
|
||||||
global start
|
global start
|
||||||
extern long_mode_start
|
extern long_mode_start
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
# Copyright 2015 Philipp Oppermann
|
# Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
# file at the top-level directory of this distribution.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License")
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
# you may not use this file except in compliance with the License.
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
# You may obtain a copy of the License at
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
#
|
# option. This file may not be copied, modified, or distributed
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# except according to those terms.
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
set timeout=0
|
set timeout=0
|
||||||
set default=0
|
set default=0
|
||||||
|
|||||||
@@ -1,17 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2015 Philipp Oppermann
|
Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
file at the top-level directory of this distribution.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License")
|
Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
you may not use this file except in compliance with the License.
|
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
You may obtain a copy of the License at
|
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
option. This file may not be copied, modified, or distributed
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
except according to those terms.
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ENTRY(start)
|
ENTRY(start)
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
; Copyright 2015 Philipp Oppermann
|
; Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
; file at the top-level directory of this distribution.
|
||||||
;
|
;
|
||||||
; Licensed under the Apache License, Version 2.0 (the "License");
|
; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
; you may not use this file except in compliance with the License.
|
; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
; You may obtain a copy of the License at
|
; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
;
|
; option. This file may not be copied, modified, or distributed
|
||||||
; http://www.apache.org/licenses/LICENSE-2.0
|
; except according to those terms.
|
||||||
;
|
|
||||||
; Unless required by applicable law or agreed to in writing, software
|
|
||||||
; distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
; See the License for the specific language governing permissions and
|
|
||||||
; limitations under the License.
|
|
||||||
|
|
||||||
global long_mode_start
|
global long_mode_start
|
||||||
extern rust_main
|
extern rust_main
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
; Copyright 2015 Philipp Oppermann
|
; Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
; file at the top-level directory of this distribution.
|
||||||
;
|
;
|
||||||
; Licensed under the Apache License, Version 2.0 (the "License");
|
; Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
; you may not use this file except in compliance with the License.
|
; http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
; You may obtain a copy of the License at
|
; <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
;
|
; option. This file may not be copied, modified, or distributed
|
||||||
; http://www.apache.org/licenses/LICENSE-2.0
|
; except according to those terms.
|
||||||
;
|
|
||||||
; Unless required by applicable law or agreed to in writing, software
|
|
||||||
; distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
; See the License for the specific language governing permissions and
|
|
||||||
; limitations under the License.
|
|
||||||
|
|
||||||
section .multiboot_header
|
section .multiboot_header
|
||||||
header_start:
|
header_start:
|
||||||
|
|||||||
19
src/lib.rs
19
src/lib.rs
@@ -1,16 +1,11 @@
|
|||||||
// Copyright 2015 Philipp Oppermann
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
// you may not use this file except in compliance with the License.
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
// You may obtain a copy of the License at
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
//
|
// option. This file may not be copied, modified, or distributed
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// except according to those terms.
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
#![feature(lang_items)]
|
#![feature(lang_items)]
|
||||||
#![feature(const_fn, unique)]
|
#![feature(const_fn, unique)]
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
use memory::{Frame, FrameAllocator};
|
use memory::{Frame, FrameAllocator};
|
||||||
use multiboot2::{MemoryAreaIter, MemoryArea};
|
use multiboot2::{MemoryAreaIter, MemoryArea};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
pub use self::area_frame_allocator::AreaFrameAllocator;
|
pub use self::area_frame_allocator::AreaFrameAllocator;
|
||||||
pub use self::paging::test_paging;
|
pub use self::paging::test_paging;
|
||||||
use self::paging::PhysicalAddress;
|
use self::paging::PhysicalAddress;
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
use memory::Frame;
|
use memory::Frame;
|
||||||
|
|
||||||
pub struct Entry(u64);
|
pub struct Entry(u64);
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
pub use self::entry::*;
|
pub use self::entry::*;
|
||||||
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
||||||
use self::table::{Table, Level4};
|
use self::table::{Table, Level4};
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
|
// option. This file may not be copied, modified, or distributed
|
||||||
|
// except according to those terms.
|
||||||
|
|
||||||
use memory::paging::entry::*;
|
use memory::paging::entry::*;
|
||||||
use memory::paging::ENTRY_COUNT;
|
use memory::paging::ENTRY_COUNT;
|
||||||
use memory::FrameAllocator;
|
use memory::FrameAllocator;
|
||||||
|
|||||||
@@ -1,16 +1,11 @@
|
|||||||
// Copyright 2015 Philipp Oppermann
|
// Copyright 2015 Philipp Oppermann. See the README.md
|
||||||
|
// file at the top-level directory of this distribution.
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
// you may not use this file except in compliance with the License.
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||||
// You may obtain a copy of the License at
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||||
//
|
// option. This file may not be copied, modified, or distributed
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
// except according to those terms.
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
use core::ptr::Unique;
|
use core::ptr::Unique;
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
|
|||||||
Reference in New Issue
Block a user