📄 sys_support.s
字号:
/* * TOPPERS/JSP Kernel * Toyohashi Open Platform for Embedded Real-Time Systems/ * Just Standard Profile Kernel * * Copyright (C) 2000-2002 by Embedded and Real-Time Systems Laboratory * Toyohashi Univ. of Technology, JAPAN * * 惧淡螟侯涪荚は·Free Software Foundation によって给山されている * GNU General Public License の Version 2 に淡揭されている掘凤か·笆 * 布の(1)×(4)の掘凤を塔たす眷圭に嘎り·塑ソフトウェア∈塑ソフトウェ * アを猖恃したものを崔むˉ笆布票じ∷を蝗脱ˇ剩澜ˇ猖恃ˇ浩芹邵∈笆布· * 网脱と钙ぶ∷することを痰浸で钓满するˉ * (1) 塑ソフトウェアをソ〖スコ〖ドの妨で网脱する眷圭には·惧淡の螟侯 * 涪山绩·この网脱掘凤および布淡の痰瘦沮惮年が·そのままの妨でソ〖 * スコ〖ド面に崔まれていることˉ * (2) 塑ソフトウェアを浩网脱材墙なバイナリコ〖ド∈リロケ〖タブルオブ * ジェクトファイルやライブラリなど∷の妨で网脱する眷圭には·网脱 * に燃うドキュメント∈网脱荚マニュアルなど∷に·惧淡の螟侯涪山绩· * この网脱掘凤および布淡の痰瘦沮惮年を非很することˉ * (3) 塑ソフトウェアを浩网脱稍材墙なバイナリコ〖ドの妨または怠达に寥 * み哈んだ妨で网脱する眷圭には·肌のいずれかの掘凤を塔たすことˉ * (a) 网脱に燃うドキュメント∈网脱荚マニュアルなど∷に·惧淡の螟侯 * 涪山绩·この网脱掘凤および布淡の痰瘦沮惮年を非很することˉ * (b) 网脱の妨轮を·侍に年める数恕によって·惧淡螟侯涪荚に鼠桂する * ことˉ * (4) 塑ソフトウェアの网脱により木儡弄または粗儡弄に栏じるいかなる禄 * 巢からも·惧淡螟侯涪荚を倘勒することˉ * * 塑ソフトウェアは·痰瘦沮で捏丁されているものであるˉ惧淡螟侯涪荚は· * 塑ソフトウェアに簇して·その努脱材墙拉も崔めて·いかなる瘦沮も乖わ * ないˉまた·塑ソフトウェアの网脱により木儡弄または粗儡弄に栏じたい * かなる禄巢に簇しても·その勒扦を砷わないˉ * * @(#) $Id: sys_support.S,v 1.4 2002/04/10 11:17:16 takayuki Exp $ *//* * タ〖ゲットシステム巴赂モジュ〖ル アセンブリ咐胳婶∈RTE-V850E/MA1-CB脱∷ */#define _MACRO_ONLY#include "jsp_kernel.h"#include "v850asm.inc"#define Set(x,y,z) Lea x, r6; Lea y, r7; st.##z r7, 0[r6]/* * 你レベルのタ〖ゲットシステム巴赂の介袋步 * * スタ〖トアップモジュ〖ルの面で·メモリの介袋步の涟に钙び叫されるˉ */ .text .globl hardware_init_hookhardware_init_hook: /* 瓢侯クロックを50MHzへ恃构 */ stsr psw, r10 addi 0x80, r10, r6 ldsr r6, psw mov 0x7, r6 addi -0x800, r0, r7 st.b r6, 0[r7] st.b r6, 0x22[r7] nop nop nop nop nop ldsr r10, psw Set(BCT0, 0x88b8, h) Set(DWC0, 0x1111, h) Set(VSWC, 0x14, b) Set(BCC, 0xffc0, h) Set(ASC, 0x5555, h) Set(BCP, 0x0, b) Set(CSC0, 0xfcf3, h) Set(CSC1, 0x2c11, h) Set(SCR1, 0x2096, h) Set(RFS1, 0x8017, h) jmp r31 /* 筛洁充哈み借妄とスぺ〖サ〖 */ .macro StandardInterruptEntry name .globl \name\name: jr vector_handler nop;nop;nop;nop;nop;nop .endm .macro ReservedInterruptEntry nop;nop;nop;nop;nop;nop;nop;nop .endm/* * 充哈みハンドラ婶尸の年盗 * とりあえず办舱疥に礁める。 */ .section ".vectors","ax" .align 4 .globl __reset__reset: jr start nop;nop;nop;nop;nop;nop StandardInterruptEntry NMI ReservedInterruptEntry ReservedInterruptEntry StandardInterruptEntry TRAP0 StandardInterruptEntry TRAP1 StandardInterruptEntry DBG ReservedInterruptEntry StandardInterruptEntry INTOV00 StandardInterruptEntry INTOV01 StandardInterruptEntry INTOV02 StandardInterruptEntry INTOV03 StandardInterruptEntry INTTM000 StandardInterruptEntry INTTM001 StandardInterruptEntry INTTM010 StandardInterruptEntry INTTM011 StandardInterruptEntry INTTM020 StandardInterruptEntry INTTM021 StandardInterruptEntry INTTM030 StandardInterruptEntry INTTM031 StandardInterruptEntry INTP100 StandardInterruptEntry INTP101 StandardInterruptEntry INTP102 StandardInterruptEntry INTP103 StandardInterruptEntry INTP110 StandardInterruptEntry INTP111 StandardInterruptEntry INTP112 StandardInterruptEntry INTP113 StandardInterruptEntry INTP120 StandardInterruptEntry INTP121 StandardInterruptEntry INTP122 StandardInterruptEntry INTP123 StandardInterruptEntry INTP130 StandardInterruptEntry INTP131 StandardInterruptEntry INTP132 StandardInterruptEntry INTP133 StandardInterruptEntry INTCMD0 StandardInterruptEntry INTCMD1 StandardInterruptEntry INTCMD2 StandardInterruptEntry INTCMD3 StandardInterruptEntry INTDMA0 StandardInterruptEntry INTDMA1 StandardInterruptEntry INTDMA2 StandardInterruptEntry INTDMA3 StandardInterruptEntry INTCSI0 StandardInterruptEntry INTSER0 StandardInterruptEntry INTSR0 StandardInterruptEntry INTST0 StandardInterruptEntry INTCSI1 StandardInterruptEntry INTSER1 StandardInterruptEntry INTSR1 StandardInterruptEntry INTST1 StandardInterruptEntry INTCSI2 StandardInterruptEntry INTSER2 StandardInterruptEntry INTSR2 StandardInterruptEntry INTST2 StandardInterruptEntry INTAD/* * 删擦脱光拉墙?タイマ * (海搀は删擦脱フリ〖ランニングタイマを侯らずに木儡タイマカウンタをのぞく) */Function _vxget_tim Lea TMD(TIMER_PORT), r7 ld.h 0[r7], r8 st.w r8, 0[r6] mov r0, r10 jmp r31
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -