lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since d9f81af3 was d2bb9f8a, checked in by Jakub Vana <jakub.vana@…>, 20 years ago |
|
Basic exception support added for ia64 arch ……
|
-
Property mode
set to
100644
|
|
File size:
303 bytes
|
| Line | |
|---|
| 1 | #include <cpu.h>
|
|---|
| 2 | #include <print.h>
|
|---|
| 3 | #include <panic.h>
|
|---|
| 4 |
|
|---|
| 5 | extern int IVT;
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 | void cpu_arch_init(void)
|
|---|
| 11 | {
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | int *p=&IVT;
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | __asm__ (
|
|---|
| 19 | "mov r15 = %0;;"
|
|---|
| 20 | "mov cr2 = r15;;"
|
|---|
| 21 | :
|
|---|
| 22 | : "r" (p)
|
|---|
| 23 | : "r15"
|
|---|
| 24 | );
|
|---|
| 25 |
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | void gugux_pokus(void);
|
|---|
| 30 | void gugux_pokus(void)
|
|---|
| 31 | {
|
|---|
| 32 | panic("\n\nGUGUX Exception\n\n");
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.