Add GPLv2 license and source file headers
This commit is contained in:
		| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <atags.h> | ||||
|  | ||||
| extern uint32 atags_ptr; | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <font.h> | ||||
| #include <framebuffer.h> | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <font.h> | ||||
|  | ||||
| char font_data_6x13[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 16, 4, 65, 16, 4, 64, 0, 0, 0, 160, 40, 10, 0, 0, 0, 0, 0, 0, 0, 0, 40, 202, 167, 124, 138, 2, 0, 0, 0, 64, 120, 69, 225, 80, 212, 67, 0, 0, 0, 32, 85, 10, 66, 8, 74, 149, 0, 0, 0, 0, 8, 69, 33, 20, 89, 98, 1, 0, 0, 64, 16, 4, 0, 0, 0, 0, 0, 0, 0, 66, 16, 130, 32, 8, 2, 65, 32, 0, 128, 64, 16, 8, 130, 32, 8, 65, 8, 0, 0, 64, 84, 78, 69, 0, 0, 0, 0, 0, 0, 0, 0, 4, 241, 17, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 67, 8, 0, 0, 0, 0, 0, 240, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 16, 0, 0, 0, 65, 8, 66, 8, 66, 16, 0, 0, 0, 64, 40, 81, 20, 69, 145, 66, 0, 0, 0, 64, 24, 5, 65, 16, 4, 241, 1, 0, 0, 224, 68, 17, 132, 16, 66, 240, 1, 0, 0, 240, 65, 8, 225, 64, 80, 228, 0, 0, 0, 128, 32, 140, 162, 36, 31, 130, 0, 0, 0, 240, 5, 65, 51, 65, 80, 228, 0, 0, 0, 224, 68, 65, 240, 68, 81, 228, 0, 0, 0, 240, 65, 8, 66, 16, 130, 32, 0, 0, 0, 224, 68, 81, 228, 68, 81, 228, 0, 0, 0, 224, 68, 81, 228, 65, 80, 228, 0, 0, 0, 0, 0, 132, 67, 0, 0, 225, 16, 0, 0, 0, 0, 132, 67, 0, 0, 67, 8, 0, 0, 0, 33, 132, 16, 8, 4, 2, 1, 0, 0, 0, 0, 192, 7, 0, 31, 0, 0, 0, 0, 16, 8, 4, 2, 33, 132, 16, 0, 0, 0, 224, 68, 17, 132, 16, 4, 64, 0, 0, 0, 224, 68, 81, 86, 85, 77, 224, 1, 0, 0, 64, 40, 81, 20, 125, 81, 20, 1, 0, 0, 240, 72, 146, 228, 72, 146, 244, 0, 0, 0, 224, 68, 65, 16, 4, 65, 228, 0, 0, 0, 240, 72, 146, 36, 73, 146, 244, 0, 0, 0, 240, 5, 65, 240, 4, 65, 240, 1, 0, 0, 240, 5, 65, 240, 4, 65, 16, 0, 0, 0, 224, 68, 65, 16, 100, 81, 228, 0, 0, 0, 16, 69, 81, 244, 69, 81, 20, 1, 0, 0, 224, 16, 4, 65, 16, 4, 225, 0, 0, 0, 192, 33, 8, 130, 32, 72, 98, 0, 0, 0, 16, 69, 73, 49, 20, 73, 20, 1, 0, 0, 16, 4, 65, 16, 4, 65, 240, 1, 0, 0, 16, 69, 91, 85, 69, 81, 20, 1, 0, 0, 16, 77, 83, 85, 101, 89, 20, 1, 0, 0, 224, 68, 81, 20, 69, 81, 228, 0, 0, 0, 240, 68, 81, 244, 4, 65, 16, 0, 0, 0, 224, 68, 81, 20, 69, 81, 229, 64, 0, 0, 240, 68, 81, 244, 20, 73, 20, 1, 0, 0, 224, 68, 65, 224, 64, 80, 228, 0, 0, 0, 240, 17, 4, 65, 16, 4, 65, 0, 0, 0, 16, 69, 81, 20, 69, 81, 228, 0, 0, 0, 16, 69, 81, 164, 40, 10, 65, 0, 0, 0, 16, 69, 81, 84, 85, 85, 165, 0, 0, 0, 16, 69, 138, 66, 40, 74, 20, 1, 0, 0, 16, 69, 138, 66, 16, 4, 65, 0, 0, 0, 240, 65, 8, 66, 8, 66, 240, 1, 0, 128, 35, 8, 130, 32, 8, 130, 32, 56, 0, 0, 16, 4, 130, 64, 32, 8, 4, 1, 0, 128, 131, 32, 8, 130, 32, 8, 130, 56, 0, 0, 64, 40, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 3, 121, 81, 102, 1, 0, 0, 16, 4, 193, 19, 69, 81, 244, 0, 0, 0, 0, 0, 128, 19, 5, 65, 228, 0, 0, 0, 0, 65, 144, 23, 69, 81, 228, 1, 0, 0, 0, 0, 128, 19, 125, 65, 228, 0, 0, 0, 192, 72, 130, 240, 8, 130, 32, 0, 0, 0, 0, 0, 128, 19, 69, 145, 7, 69, 14, 0, 16, 4, 65, 51, 69, 81, 20, 1, 0, 0, 0, 16, 128, 65, 16, 4, 225, 0, 0, 0, 0, 32, 0, 131, 32, 8, 146, 36, 6, 0, 16, 4, 65, 82, 12, 69, 18, 1, 0, 0, 96, 16, 4, 65, 16, 4, 225, 0, 0, 0, 0, 0, 192, 82, 85, 85, 21, 1, 0, 0, 0, 0, 64, 51, 69, 81, 20, 1, 0, 0, 0, 0, 128, 19, 69, 81, 228, 0, 0, 0, 0, 0, 192, 19, 69, 209, 19, 4, 1, 0, 0, 0, 128, 23, 69, 145, 7, 65, 16, 0, 0, 0, 64, 51, 5, 65, 16, 0, 0, 0, 0, 0, 128, 19, 25, 72, 228, 0, 0, 0, 0, 8, 194, 35, 8, 130, 196, 0, 0, 0, 0, 0, 64, 20, 69, 81, 102, 1, 0, 0, 0, 0, 64, 20, 69, 138, 66, 0, 0, 0, 0, 0, 64, 20, 85, 85, 165, 0, 0, 0, 0, 0, 64, 164, 16, 132, 18, 1, 0, 0, 0, 0, 64, 20, 69, 153, 5, 69, 14, 0, 0, 0, 192, 135, 16, 66, 240, 1, 0, 0, 70, 16, 4, 49, 16, 4, 65, 96, 0, 0, 64, 16, 4, 65, 16, 4, 65, 0, 0, 192, 64, 16, 4, 129, 17, 4, 65, 12, 0, 0, 32, 85, 9, 0, 0, 0, 0, 0, 0}; | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <framebuffer.h> | ||||
|  | ||||
| int fb_write_pixel_8bit(struct fb *f, unsigned int x, unsigned int y, unsigned int r, unsigned int g, unsigned int b) { | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <list.h> | ||||
|  | ||||
| void init_list(struct dlist_node *n) { | ||||
|   | ||||
							
								
								
									
										20
									
								
								kernel/mm.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								kernel/mm.c
									
									
									
									
									
								
							| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <list.h> | ||||
| #include <mm.h> | ||||
| #include <print.h> | ||||
|   | ||||
							
								
								
									
										20
									
								
								kernel/mmu.c
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								kernel/mmu.c
									
									
									
									
									
								
							| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <print.h> | ||||
| #include <types.h> | ||||
| #include <mm.h> | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <print.h> | ||||
| #include <vargs.h> | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,23 @@ | ||||
| /* | ||||
|     Copyright (C) 2012, Aaron Lindsay <aaron@aclindsay.com> | ||||
|  | ||||
|     This file is part of Aedrix. | ||||
|  | ||||
|     This program is free software; you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|     the Free Software Foundation; either version 2 of the License, or | ||||
|     (at your option) any later version. | ||||
|  | ||||
|     This program is distributed in the hope that it will be useful, | ||||
|     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|     GNU General Public License for more details. | ||||
|  | ||||
|     You should have received a copy of the GNU General Public License along | ||||
|     with this program; if not, write to the Free Software Foundation, Inc., | ||||
|     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||||
|  */ | ||||
|  | ||||
| #include <atags.h> | ||||
| #include <mmu.h> | ||||
| #include <mm.h> | ||||
| @@ -59,7 +79,8 @@ int main(void) { | ||||
| 	//setup MMU | ||||
| 	mmu_reinit(); | ||||
|  | ||||
| 	print_init(&pl011_putc); //initialize the serial console | ||||
| 	//initialize the serial console | ||||
| 	print_init(&pl011_putc); | ||||
|  | ||||
| 	//setup memory | ||||
| 	mm_init(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user