MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / write_serial_n

Function write_serial_n

Kernel/src/arch/x86_64/serial.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void write_serial_n(const char* s, unsigned n) {
40 unsigned i = 0;
41
42 if(CheckInterrupts())
43 acquireLock(&lock); // Make the serial output readable
44 while (i++ < n){
45 while(is_transmit_empty() == 0);
46 outportb(PORT, *s++);
47 }
48 if(CheckInterrupts())
49 releaseLock(&lock);
50}

Callers 3

WriteNFunction · 0.85
write_serialFunction · 0.85
PageFaultHandlerFunction · 0.85

Calls 3

CheckInterruptsFunction · 0.85
is_transmit_emptyFunction · 0.85
outportbFunction · 0.85

Tested by

no test coverage detected