Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
system.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 2k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- #ifndef __ASM_ARM_SYSTEM_H
- #define __ASM_ARM_SYSTEM_H
- #ifdef __KERNEL__
- #include <linux/config.h>
- #include <linux/kernel.h>
- /* information about the system we're running on */
- extern unsigned int system_rev;
- extern unsigned int system_serial_low;
- extern unsigned int system_serial_high;
- extern unsigned int mem_fclk_21285;
- /*
- * This tells us if we have an ISA bridge
- * present in a PCI system.
- */
- #ifdef CONFIG_PCI
- extern int have_isa_bridge;
- #else
- #define have_isa_bridge (0)
- #endif
- #include <asm/proc-fns.h>
- #define xchg(ptr,x)
- ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
- #define tas(ptr) (xchg((ptr),1))
- extern asmlinkage void __backtrace(void);
- /*
- * Include processor dependent parts
- */
- #include <asm/proc/system.h>
- #define mb() __asm__ __volatile__ ("" : : : "memory")
- #define rmb() mb()
- #define wmb() mb()
- #define nop() __asm__ __volatile__("movtr0,r0t@ nopnt");
- #define prepare_to_switch() do { } while(0)
- /*
- * switch_to(prev, next) should switch from task `prev' to `next'
- * `prev' will never be the same as `next'.
- * The `mb' is to tell GCC not to cache `current' across this call.
- */
- extern struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *next);
- #define switch_to(prev,next,last)
- do {
- last = __switch_to(prev,next);
- mb();
- } while (0)
- /* For spinlocks etc */
- #define local_irq_save(x) __save_flags_cli(x)
- #define local_irq_restore(x) __restore_flags(x)
- #define local_irq_disable() __cli()
- #define local_irq_enable() __sti()
- #ifdef CONFIG_SMP
- #error SMP not supported
- #define smp_mb() mb()
- #define smp_rmb() rmb()
- #define smp_wmb() wmb()
- #else
- #define smp_mb() barrier()
- #define smp_rmb() barrier()
- #define smp_wmb() barrier()
- #define cli() __cli()
- #define sti() __sti()
- #define clf() __clf()
- #define stf() __stf()
- #define save_flags(x) __save_flags(x)
- #define restore_flags(x) __restore_flags(x)
- #define save_flags_cli(x) __save_flags_cli(x)
- #endif /* CONFIG_SMP */
- #endif /* __KERNEL__ */
- #endif