#include "src/common/types.hpp"#include "src/common/errno.hpp"#include "src/common/error.hpp"#include "src/common/profiler.hpp"#include "src/sandbox.hpp"#include "src/common/println.hpp"Idź do kodu źródłowego tego pliku.
| #define | freeze(x) do { lnDbg ; while(1) asm volatile("cli\nhlt"); } while(0) |
| void | reboot () __attribute__((noreturn)) |
| void | print () |
| void | print (uint32 x) |
| template<typename T> | |
| void | print (T *v) |
| template<> | |
| void | print< const char > (const char *v) |
| template<> | |
| void | print< char > (char *v) |
Definicje | |
| #define | MIN(a, b) |
| #define | MAX(a, b) |
| #define | ABS(a) ((unsigned typeof(a))( (a) > 0 ? (a) : -(a) )) |
| #define | LOWORD(l) ((uint16)(uint32)(l)) |
| #define | HIWORD(l) ((uint16)((((uint32)(l))>>16)&0xFFFF)) |
| #define | ENTER_CRITICAL(fl) do { asm volatile("pushf\npopl %0\ncli":"=g"(fl)); } while(0) |
| #define | LEAVE_CRITICAL(fl) do { asm volatile("pushl %0\npopf"::"g"(fl)); } while(0) |
| #define | null (0) |
| #define | BOCHSHALT |
Funkcje | |
| void | dbPrintInt (uint32 n) |
| void | dbSetRow (uint32 n) |
| char | digitOfUint (uint32 n, uint32 div) |
| #define ABS | ( | a | ) | ((unsigned typeof(a))( (a) > 0 ? (a) : -(a) )) |
| #define BOCHSHALT |
Wartość:
__asm__ __volatile__ ( \ "pushl %ecx\n\t" \ "xor %ecx,%ecx\n" \ "0:\n\t" \ "jecxz 0b\n\t" \ "popl %ecx\n\t" \ )
Definicja w linii 120 pliku shared.hpp.
| #define ENTER_CRITICAL | ( | fl | ) | do { asm volatile("pushf\npopl %0\ncli":"=g"(fl)); } while(0) |
Definicja w linii 33 pliku shared.hpp.
Odwołania w Thread::Timer::add(), Net::Arp::arp_cache_insert(), IPC::Lock::lock_t::lock(), Thread::Timer::remove(), Thread::Timer::TimerThread() i VarieteThread().
| #define freeze | ( | x | ) | do { lnDbg ; while(1) asm volatile("cli\nhlt"); } while(0) |
| #define LEAVE_CRITICAL | ( | fl | ) | do { asm volatile("pushl %0\npopf"::"g"(fl)); } while(0) |
Definicja w linii 34 pliku shared.hpp.
Odwołania w Thread::Timer::add(), IPC::Lock::lock_t::lock(), Thread::Timer::remove(), Thread::Timer::TimerThread() i IPC::Lock::lock_t::ulock().
| #define MAX | ( | a, | |||
| b | ) |
Wartość:
({typeof(a) _a = (a); \
typeof(b) _b = (b); \
_a > _b ? _a : _b;})
Definicja w linii 25 pliku shared.hpp.
Odwołania w Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::checkHt(), Thread::count_prior(), Net::eth_transmit(), Mboot::init(), Net::onFramesTransmitted() i Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::setHeight().
| #define MIN | ( | a, | |||
| b | ) |
Wartość:
({typeof(a) _a = (a); \
typeof(b) _b = (b); \
_a < _b ? _a : _b;})
Definicja w linii 21 pliku shared.hpp.
Odwołania w Thread::count_prior(), Thread::process_t::create_thread(), Net::eth_transmit(), Memory::Heap::heapbox::init(), Memory::Pager::memmove2(), Net::onFramesReceived(), Net::onFramesTransmitted(), print() i Debug::Profiler::stats().
| #define null (0) |
Definicja w linii 98 pliku shared.hpp.
Odwołania w Thread::Timer::add(), Memory::Heap::allocate_heapbox(), Net::Arp::arp_get_ether(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::checkHt(), Net::EthernetFrameDemultiplexingThread(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::exists(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::findcmp(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::findMin(), Memory::Heap::heapbox::freeFunc(), Memory::Heap::heapbox::freeFunc2(), Memory::Heap::heapbox::freeFuncPr(), Memory::Heap::heapbox::freeFuncPr2(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::height(), Net::ICMP::icmp_transmit(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::insert(), Net::IP::ip_onNewArpEntry(), Net::IP::ip_transmit(), Collection::List< Net::outbound_packet >::isEmpty(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::isEmpty(), Memory::Heap::heapbox::kget_info(), Collection::Mem::kmalloc(), Memory::Heap::heapbox::mallocFunc(), Memory::Heap::heapbox::mallocFuncPr(), Memory::Heap::heapbox::morecor(), Net::netbuf_alloc(), Net::pbuf_alloc(), Net::pbuf_free(), Collection::List< Net::outbound_packet >::pop_back(), Collection::List< Net::outbound_packet >::pop_front(), print(), Net::Arp::processArpPacket(), Collection::List< Net::outbound_packet >::push_back(), Collection::List< Net::outbound_packet >::push_front(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::remove(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::remove2(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::removeMin(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::removeMin2(), Memory::Heap::heapbox::resize_used_blocks_table(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::rotleft(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::rotright(), Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::setHeight(), VarieteThread() i Collection::AvlTree< Collection::Tuple2< KeyT, DataT >, tuple2_comparator< KeyT, DataT, cmp > >::write().
| void dbPrintInt | ( | uint32 | n | ) |
wypisuje liczby szesnastkowo coraz nizej bezposrednio piszac do pamieci bez uzywania tty
Definicja w linii 76 pliku shared.cpp.
| void dbSetRow | ( | uint32 | n | ) |
Definicja w linii 86 pliku shared.cpp.
| n | liczba | |
| div | potega szesnastki |
Definicja w linii 69 pliku shared.cpp.
| void print | ( | T * | v | ) | [inline] |
| void print | ( | uint32 | x | ) | [inline] |
| void print | ( | ) | [inline] |
Definicja w linii 50 pliku shared.hpp.
| void print< char > | ( | char * | v | ) | [inline] |
| void print< const char > | ( | const char * | v | ) | [inline] |
1.5.6